forked from funsim/cpp_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_scheme.sql
25 lines (23 loc) · 859 Bytes
/
db_scheme.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
CREATE TABLE IF NOT EXISTS `glasnost` (
`id` int NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`date` datetime NOT NULL,
`destination` varchar(128) NOT NULL,
`source` varchar(128) NOT NULL,
`file_id` int NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ndt` (
`id` int NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`date` datetime NOT NULL,
`destination` varchar(128) NOT NULL,
`source` varchar(128) NOT NULL,
`file_id` int NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `files` (
`id` int NOT NULL AUTO_INCREMENT,
`filename` varchar(256) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;