Merge branch 'extended-cookie'
[scuttle] / tables.sql
1 -- 
2 -- Table structure for table `sc_bookmarks`
3 -- 
4
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 '',
16   PRIMARY KEY  (`bId`),
17   KEY `sc_bookmarks_usd` (`uId`,`bStatus`,`bDatetime`),
18   KEY `sc_bookmarks_hui` (`bHash`,`uId`,`bId`),
19   KEY `sc_bookmarks_du` (`bDatetime`,`uId`)
20 );
21
22 -- --------------------------------------------------------
23
24 -- 
25 -- Table structure for table `sc_tags`
26 -- 
27
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 '',
32   PRIMARY KEY  (`id`),
33   UNIQUE KEY `sc_tags_tag_bId` (`tag`,`bId`),
34   KEY `sc_tags_bId` (`bId`)
35 );
36
37 -- --------------------------------------------------------
38
39 -- 
40 -- Table structure for table `scUsers`
41 -- 
42
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,
52   `uContent` text,
53   PRIMARY KEY  (`uId`)
54 );
55
56 -- --------------------------------------------------------
57
58 -- 
59 -- Table structure for table `sc_watched`
60 -- 
61
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',
66   PRIMARY KEY  (`wId`),
67   KEY `sc_watched_uId` (`uId`)
68 );

Benjamin Mako Hill || Want to submit a patch?