Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2014104149
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Graduate
2020-11-18 18:22:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce8a289019ac758f2d445beed157dc46072ea27c
ce8a2890
1 parent
cc99ac31
Update DB schema
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
DB/SQL/create_database_attendance.sql
DB/SQL/create_database_attendance.sql
View file @
ce8a289
CREATE
DATABASE
attendance
DEFAULT
CHARACTER
SET
UTF8
;
use
attendance
;
CREATE
TABLE
student
(
student_id
VARCHAR
(
10
)
NOT
NULL
,
student_name
VARCHAR
(
50
)
NOT
NULL
,
PRIMARY
KEY
(
student_id
)
);
CREATE
TABLE
student_embedding
(
student_id
VARCHAR
(
10
)
NOT
NULL
,
embedding_date
DATE
NOT
NULL
,
embedding
BLOB
NOT
NULL
,
FOREIGN
KEY
(
student_id
)
REFERENCES
student
(
student_id
)
);
CREATE
TABLE
lecture
(
lecture_id
VARCHAR
(
20
)
NOT
NULL
,
lecture_name
VARCHAR
(
50
),
...
...
@@ -38,17 +52,4 @@ lecture_room VARCHAR(50) NOT NULL,
lecture_start_time
TIME
NOT
NULL
,
lecture_end_time
TIME
NOT
NULL
,
FOREIGN
KEY
(
lecture_id
)
REFERENCES
lecture
(
lecture_id
)
);
CREATE
TABLE
student
(
student_id
VARCHAR
(
10
)
NOT
NULL
,
student_name
VARCHAR
(
50
)
NOT
NULL
,
PRIMARY
KEY
(
student_id
)
);
CREATE
TABLE
student_embedding
(
student_id
VARCHAR
(
10
)
NOT
NULL
,
embedding_date
DATE
NOT
NULL
,
embedding
BLOB
NOT
NULL
,
FOREIGN
KEY
(
student_id
)
REFERENCES
student
(
student_id
)
);
\ No newline at end of file
...
...
Please
register
or
login
to post a comment