Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
KHY_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
root
2020-06-19 12:35:55 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
3a77a8664c0cb6e1896fbecaff4e2723f358f4de
3a77a866
2 parents
b8ef7386
e3a9aea9
Merge branch 'develop/webserver'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
DB/SQL/create_table_student_request.sql
DB/SQL/create_table_student_request.sql
0 → 100644
View file @
3a77a86
CREATE
TABLE
`student_request`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`lecture_id`
varchar
(
20
)
NOT
NULL
,
`student_id`
varchar
(
10
)
NOT
NULL
,
`student_name`
varchar
(
45
)
DEFAULT
NULL
,
`timestamp`
datetime
DEFAULT
CURRENT_TIMESTAMP
,
`status`
varchar
(
10
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`lecture_id`
(
`lecture_id`
),
KEY
`student_id`
(
`student_id`
),
CONSTRAINT
`student_request_ibfk_3`
FOREIGN
KEY
(
`lecture_id`
)
REFERENCES
`lecture`
(
`lecture_id`
),
CONSTRAINT
`student_request_ibfk_4`
FOREIGN
KEY
(
`student_id`
)
REFERENCES
`student`
(
`student_id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
29
DEFAULT
CHARSET
=
utf8
;
Please
register
or
login
to post a comment