Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대철
/
CafeRecommend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김대철
2021-06-07 03:26:53 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
9431acb2a61c32e0bd9b18d790531e1d7d620d91
9431acb2
2 parents
55995d87
f56bec1a
Merge branch 'database'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
sql/table.sql
sql/table.sql
0 → 100644
View file @
9431acb
CREATE
TABLE
USER
(
ID
int
(
10
)
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
,
EMAIL
varchar
(
64
)
NOT
NULL
UNIQUE
,
NICKNAME
varchar
(
32
)
NOT
NULL
UNIQUE
,
AGE
int
(
16
),
GENDER
varchar
(
32
)
);
CREATE
TABLE
REVIEW
(
ID
int
(
10
)
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
,
CAFE_ID
int
(
10
)
NOT
NULL
,
PRICE
int
(
10
)
NOT
NULL
,
KINDNESS
int
(
10
)
NOT
NULL
,
NOISE
int
(
10
)
NOT
NULL
,
ACCESSIBILITY
int
(
10
)
NOT
NULL
);
CREATE
TABLE
PREFERENCE
(
ID
int
(
10
)
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
,
NICKNAME
varchar
(
32
)
NOT
NULL
UNIQUE
,
PRICE
int
(
10
)
NOT
NULL
,
KINDNESS
int
(
10
)
NOT
NULL
,
NOISE
int
(
10
)
NOT
NULL
,
ACCESSIBILITY
int
(
10
)
NOT
NULL
,
FOREIGN
KEY
(
NICKNAME
)
REFERENCES
USER
(
NICKNAME
)
ON
DELETE
CASCADE
);
\ No newline at end of file
Please
register
or
login
to post a comment