Quote:
Originally Posted by cinq
Here's what I am using for mine ( well not exactly, i changed it quite a bit, but this should present the gist of the table structures. )
|
Appreciate it, but I'm done. The list above reflects what I did, not intened to do.
In case you're interested, here's what the tables look like...
PHP Code:
CREATE TABLE `vbgarage_users` (
`userid` int(10) unsigned NOT NULL default '0',
`year` varchar(50) NOT NULL default '',
`make` varchar(50) NOT NULL default '',
`model` varchar(50) NOT NULL default '',
`text` mediumtext NOT NULL,
`lastactivity` int(10) unsigned NOT NULL default '0',
`garageid` int(10) unsigned NOT NULL auto_increment,
PRIMARY KEY (`garageid`),
KEY `userid` (`userid`)
) TYPE=MyISAM
CREATE TABLE `vbgarage_images` (
`vbgarageid` smallint(6) unsigned NOT NULL auto_increment,
`userid` int(10) unsigned NOT NULL default '0',
`id` smallint(6) unsigned NOT NULL default '0',
`name` varchar(50) NOT NULL default '',
`data` longblob NOT NULL,
`type` varchar(50) NOT NULL default '',
`thumb` longblob NOT NULL,
PRIMARY KEY (`vbgarageid`),
KEY `id` (`id`),
KEY `userid` (`userid`)
) TYPE=MyISAM
CREATE TABLE `vbgarage_comments` (
`id` int(10) unsigned NOT NULL auto_increment,
`vbgarageid` int(10) unsigned NOT NULL default '0',
`username` varchar(50) NOT NULL default '',
`pagetext` mediumtext NOT NULL,
`dateline` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `vbgarageid` (`vbgarageid`)
) TYPE=MyISAM