-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsql~
32 lines (25 loc) · 1.13 KB
/
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
-- zenchef.requests definition
CREATE TABLE `requests` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`author` bigint unsigned NOT NULL,
`status` bigint unsigned NOT NULL DEFAULT '1',
`resolved_by` bigint unsigned DEFAULT NULL,
`request_created_at` timestamp NOT NULL,
`vacation_start_date` date NOT NULL,
`vacation_end_date` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- zenchef.status definition
CREATE TABLE `status` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- zenchef.users definition
CREATE TABLE `users` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`firstname` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
`lastname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`vacation_remaining_days` bigint unsigned NOT NULL DEFAULT '30',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;