2 -- Table structure for table `sc_bookmarks`
5 CREATE TABLE `sc_bookmarks` (
6 `bId` int(11) NOT NULL auto_increment,
7 `uId` int(11) NOT NULL default '0',
8 `bIp` varchar(40) default NULL,
9 `bStatus` tinyint(1) NOT NULL default '0',
10 `bDatetime` datetime NOT NULL default '0000-00-00 00:00:00',
11 `bModified` datetime NOT NULL default '0000-00-00 00:00:00',
12 `bTitle` varchar(255) NOT NULL default '',
13 `bAddress` text NOT NULL,
14 `bDescription` varchar(1000) default NULL,
15 `bHash` varchar(32) NOT NULL default '',
17 KEY `sc_bookmarks_usd` (`uId`,`bStatus`,`bDatetime`),
18 KEY `sc_bookmarks_hui` (`bHash`,`uId`,`bId`),
19 KEY `sc_bookmarks_du` (`bDatetime`,`uId`)
22 -- --------------------------------------------------------
25 -- Table structure for table `sc_tags`
28 CREATE TABLE `sc_tags` (
29 `id` int(11) NOT NULL auto_increment,
30 `bId` int(11) NOT NULL default '0',
31 `tag` varchar(32) NOT NULL default '',
33 UNIQUE KEY `sc_tags_tag_bId` (`tag`,`bId`),
34 KEY `sc_tags_bId` (`bId`)
37 -- --------------------------------------------------------
40 -- Table structure for table `scUsers`
43 CREATE TABLE `sc_users` (
44 `uId` int(11) NOT NULL auto_increment,
45 `username` varchar(25) NOT NULL default '',
46 `password` varchar(40) NOT NULL default '',
47 `uDatetime` datetime NOT NULL default '0000-00-00 00:00:00',
48 `uModified` datetime NOT NULL default '0000-00-00 00:00:00',
49 `name` varchar(50) default NULL,
50 `email` varchar(50) NOT NULL default '',
51 `homepage` varchar(255) default NULL,
56 -- --------------------------------------------------------
59 -- Table structure for table `sc_watched`
62 CREATE TABLE `sc_watched` (
63 `wId` int(11) NOT NULL auto_increment,
64 `uId` int(11) NOT NULL default '0',
65 `watched` int(11) NOT NULL default '0',
67 KEY `sc_watched_uId` (`uId`)