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
Graduate
2020-06-09 16:43:59 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f82506d1073b2b8e4f67b8e7be990f630847642d
f82506d1
1 parent
82b2f64a
Modify table lecture_students
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
DB/SQL/create_table_lecture.sql
DB/SQL/create_table_lecture.sql
View file @
f82506d
...
...
@@ -7,7 +7,7 @@ PRIMARY KEY(lecture_id)
CREATE
TABLE
lecture_students
(
lecture_id
VARCHAR
(
20
)
NOT
NULL
,
student_id
VARCHAR
(
10
)
NOT
NULL
,
student_id
VARCHAR
(
10
)
UNIQUE
,
FOREIGN
KEY
(
lecture_id
)
REFERENCES
lecture
(
lecture_id
),
FOREIGN
KEY
(
student_id
)
REFERENCES
student
(
student_id
)
);
...
...
@@ -16,15 +16,14 @@ CREATE TABLE student_attendance(
lecture_id
VARCHAR
(
20
)
NOT
NULL
,
student_id
VARCHAR
(
10
)
NOT
NULL
,
status
VARCHAR
(
10
)
NOT
NULL
,
timestamp
DATETIME
DEFAULT
CURRENT_TIMESTAMP
,
attendance_time
DATETIME
DEFAULT
CURRENT_TIMESTAMP
,
FOREIGN
KEY
(
lecture_id
)
REFERENCES
lecture
(
lecture_id
),
FOREIGN
KEY
(
student_id
)
REFERENCES
student
(
student_id
)
);
CREATE
TABLE
undefined_image
(
lecture_id
VARCHAR
(
20
)
NOT
NULL
,
date
DATE
NOT
NULL
,
image
BLOB
NOT
NULL
,
image
MEDIUMBLOB
NOT
NULL
,
width
SMALLINT
NOT
NULL
,
height
SMALLINT
NOT
NULL
,
timestamp
DATETIME
DEFAULT
CURRENT_TIMESTAMP
,
...
...
Please
register
or
login
to post a comment