-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.sql
25 lines (22 loc) · 816 Bytes
/
db.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
-- todo4.activities definition
CREATE TABLE `activities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`email` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- todo4.todos definition
CREATE TABLE `todos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`activity_group_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT '1',
`priority` enum('very-low','low','normal','high','very-high') NOT NULL DEFAULT 'very-high',
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;