Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: (#821) flyway 수정 #822

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
CREATE TABLE tbl_vote (
created_at DATETIME(6) NOT NULL,
voted_at DATETIME(6) NULL,
id BINARY(16) NOT NULL PRIMARY KEY,
selected_option_id BINARY(16) NULL,
selected_student_id BINARY(16) NULL,
student_id BINARY(16) NOT NULL,
voting_topic_id BINARY(16) NOT NULL,
FOREIGN KEY (voting_topic_id) REFERENCES tbl_voting_topic(id),
FOREIGN KEY (student_id) REFERENCES tbl_student(id),
FOREIGN KEY (selected_student_id) REFERENCES tbl_student(id),
FOREIGN KEY (selected_option_id) REFERENCES tbl_voting_option(id)
);

create table tbl_voting_option
(
created_at datetime(6) not null,
id binary(16) not null
primary key,
option_name varchar(255) null,
voting_topic_id binary(16) not null,
foreign key (voting_topic_id) references tbl_voting_topic (id)
);