-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.sql
64 lines (57 loc) · 1.86 KB
/
database.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CREATE TABLE `docs` (
`id` int(11) unsigned NOT NULL auto_increment,
`date` int(11) unsigned NOT NULL default '0',
`cid` int(11) unsigned NOT NULL default '0',
`title` varchar(250) NOT NULL default '',
`doc` text,
PRIMARY KEY (`id`),
KEY `cid` (`cid`)
) TYPE=MyISAM;
CREATE TABLE `cats` (
`id` int(11) unsigned NOT NULL auto_increment,
`title` varchar(250) NOT NULL default '',
`notes` varchar(250) NOT NULL default '',
`img` varchar(250) NOT NULL default '',
`count` int(11) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
CREATE TABLE `downloads` (
`id` int(11) unsigned NOT NULL auto_increment,
`date` int(11) unsigned NOT NULL default '0',
`cid` int(11) unsigned NOT NULL default '0',
`title` varchar(250) NOT NULL default '',
`desc` varchar(250) NOT NULL default '',
`image` varchar(250) NOT NULL default '',
`url` varchar(250) NOT NULL default '',
`notes` text,
`views` int(11) unsigned NOT NULL default '0',
`downloads` int(11) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `cid` (`cid`),
KEY `views` (`views`),
KEY `date` (`date`),
KEY `downloads` (`downloads`)
) TYPE=MyISAM;
CREATE TABLE `messages` (
`id` int(11) unsigned NOT NULL auto_increment,
`name` varchar(250) NOT NULL default '',
`email` varchar(250) NOT NULL default '',
`message` text,
PRIMARY KEY (`id`)
) TYPE=MyISAM;
CREATE TABLE `news` (
`id` int(11) unsigned NOT NULL auto_increment,
`date` int(11) unsigned NOT NULL default '0',
`title` varchar(250) NOT NULL default '',
`cutted` text,
`news` text,
`views` int(11) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `views` (`views`),
KEY `date` (`date`)
) TYPE=MyISAM;
CREATE TABLE `regimage` (
`imagehash` varchar(32) NOT NULL default '',
`imagestring` varchar(8) NOT NULL default '',
`dateline` bigint(30) NOT NULL default '0'
) TYPE=MyISAM;