Hi
I am about to work on a project. I thought it would be a good idea to submit the structure of my tables to you so you can tell me how to improve some things. There are 6 tables. I don't explain what each one of them do since it seems pretty clear. However, if you had any questions don't hesitate to ask me to clarify anything.
Thanks a lot for your time
Code:# # Table structure for table `categories` # CREATE TABLE `categories` ( `catID` smallint(11) unsigned NOT NULL auto_increment, `position` smallint(6) NOT NULL default '0', `name` varchar(30) NOT NULL default '', PRIMARY KEY (`catID`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; # # Dumping data for table `categories` # # -------------------------------------------------------- # # Table structure for table `faq` # CREATE TABLE `faq` ( `faqID` smallint(5) unsigned NOT NULL auto_increment, `title` varchar(50) NOT NULL default '', `text` text NOT NULL, `position` smallint(6) unsigned NOT NULL default '0', PRIMARY KEY (`faqID`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; # # Dumping data for table `faq` # # -------------------------------------------------------- # # Table structure for table `texts` # CREATE TABLE `texts` ( `textsID` mediumint(8) unsigned NOT NULL auto_increment, `title` mediumtext NOT NULL, `text` varchar(255) NOT NULL default '', `category` smallint(5) unsigned NOT NULL default '0', `postedDate` int(10) unsigned NOT NULL default '0', `readNumber` mediumint(8) unsigned NOT NULL default '0', `newAdmin` tinyint(3) unsigned NOT NULL default '0', `userID` mediumint(8) unsigned NOT NULL default '0', PRIMARY KEY (`textsID`), KEY `text` (`text`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; # # Dumping data for table `texts` # # -------------------------------------------------------- # # Table structure for table `textshighlights` # CREATE TABLE `textshighlights` ( `textshighlightsID` mediumint(8) unsigned NOT NULL auto_increment, `textID` mediumint(8) unsigned NOT NULL default '0', `highlighterID` mediumint(8) unsigned NOT NULL default '0', `highlightDate` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`textshighlightsID`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; # # Dumping data for table `textshighlights` # # -------------------------------------------------------- # # Table structure for table `users` # CREATE TABLE `users` ( `userID` int(11) unsigned NOT NULL auto_increment, `username` varchar(25) NOT NULL default '', `password` varchar(25) NOT NULL default '', `permission` tinyint(3) unsigned NOT NULL default '0', `registrationDate` int(10) unsigned NOT NULL default '0', `lastLogin` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`userID`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; # # Dumping data for table `users` # # -------------------------------------------------------- # # Table structure for table `usershighlights` # CREATE TABLE `usershighlights` ( `usershighlightsID` mediumint(8) unsigned NOT NULL auto_increment, `userID` mediumint(8) unsigned NOT NULL default '0', `highlighterID` mediumint(8) unsigned NOT NULL default '0', `highlightDate` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`usershighlightsID`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; # # Dumping data for table `usershighlights` #








Bookmarks