forked from calmery/Mizuderu
-
Notifications
You must be signed in to change notification settings - Fork 16
/
water.sql
45 lines (41 loc) · 1.27 KB
/
water.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
-- Create syntax for TABLE 'info'
CREATE TABLE `info` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`time` int(11) DEFAULT NULL,
`locate` varchar(64) DEFAULT NULL,
`flg` int(1) DEFAULT NULL,
`comment` text,
`address` text,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Add index for time column
ALTER TABLE info ADD INDEX index_time(time);
-- Create syntax for TABLE 'logs'
CREATE TABLE `logs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`post_text` text,
`post_date` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Create syntax for TABLE 'news'
CREATE TABLE `news` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`url` varchar(255) DEFAULT NULL,
`comment` text,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Create syntax for TABLE 'rousui'
CREATE TABLE `rousui` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`time` int(20) DEFAULT NULL,
`locate` varchar(64) DEFAULT NULL,
`image_url` varchar(255) DEFAULT NULL,
`flg` int(1) DEFAULT NULL,
`comment` text,
`address` text,
`status` int(1) DEFAULT '0',
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;