forked from DonghyeonKang/AramByeol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.sql
executable file
·48 lines (39 loc) · 964 Bytes
/
schema.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
CREATE TABLE `menudata`(
`id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`menu` varchar(50) UNIQUE,
`score` INT(10),
`reviewcount` INT(10)
);
CREATE TABLE `dinner`(
`day` varchar(2) NOT NULL,
`cource` varchar(50),
`menu` varchar(50) NOT NULL
);
CREATE TABLE `lunch`(
`day` varchar(2) NOT NULL,
`cource` varchar(50),
`menu` varchar(50) NOT NULL
);
CREATE TABLE `morning`(
`day` varchar(2) NOT NULL,
`cource` varchar(50),
`menu` varchar(50) NOT NULL
);
CREATE TABLE `week`(
`day` varchar(2) NOT NULL PRIMARY KEY,
`date` varchar(11) NOT NULL
);
CREATE TABLE `users` (
`id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`user_id` varchar(50) NOT NULL,
`user_pw` TEXT NOT NULL
);
CREATE TABLE `review` (
`user_id` varchar(50) NOT NULL,
`menu` varchar(50) NOT NULL,
`score` INT(10) NOT NULL
);
CREATE TABLE `views` (
`views` BIGINT(5)
);
INSERT INTO views(views) VALUE(0);