Skip to content

Commit 3a797da

Browse files
committed
chore: flyway 설정 추가
1 parent e4da88b commit 3a797da

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
create table if not exists interview_items
2+
(
3+
remain_tail_question_count int not null,
4+
score int null,
5+
time_to_answer int null,
6+
created_at datetime(6) null,
7+
id bigint auto_increment
8+
primary key,
9+
interview_id bigint not null,
10+
member_id bigint not null,
11+
question_id bigint not null,
12+
updated_at datetime(6) null,
13+
content varchar(2000) null,
14+
feedback_content varchar(2000) null,
15+
question_content varchar(255) not null,
16+
tail_question varchar(255) null,
17+
answer_state enum ('COMPLETE', 'INIT', 'PASS') null
18+
);
19+
20+
create table if not exists interviews
21+
(
22+
interview_index int not null,
23+
size int not null,
24+
tail_question_depth int null,
25+
time_to_answer int null,
26+
time_to_think int null,
27+
created_at datetime(6) null,
28+
id bigint auto_increment
29+
primary key,
30+
member_id bigint not null,
31+
updated_at datetime(6) null,
32+
title varchar(255) not null,
33+
interview_state enum ('DONE', 'PROGRESS') null
34+
);
35+
36+
create table if not exists members
37+
(
38+
id bigint auto_increment
39+
primary key,
40+
avatar_url varchar(255) null,
41+
nickname varchar(255) not null,
42+
provider_id varchar(255) null
43+
);
44+
45+
create table if not exists question_sets
46+
(
47+
default_tail_question_depth int null,
48+
default_time_to_answer int null,
49+
default_time_to_think int null,
50+
admin_id bigint not null,
51+
created_at datetime(6) null,
52+
id bigint auto_increment
53+
primary key,
54+
updated_at datetime(6) null,
55+
description varchar(255) null,
56+
thumbnail_url varchar(255) null,
57+
title varchar(255) not null
58+
);
59+
60+
create table if not exists questions
61+
(
62+
sequence int not null,
63+
created_at datetime(6) null,
64+
id bigint auto_increment primary key,
65+
question_set_id bigint not null,
66+
updated_at datetime(6) null,
67+
content varchar(255) not null,
68+
reference_links varchar(255) null,
69+
constraint FKkpkuc627fwg4g9prwdfb0mj2l
70+
foreign key (question_set_id) references question_sets (id)
71+
);
72+
73+
create table if not exists refresh_tokens
74+
(
75+
id bigint not null
76+
primary key,
77+
token varchar(700) null
78+
);
79+
80+
create table if not exists tail_questions
81+
(
82+
score int null,
83+
time_to_answer int null,
84+
id bigint auto_increment
85+
primary key,
86+
interview_id bigint not null,
87+
interview_question_id bigint not null,
88+
member_id bigint not null,
89+
content varchar(2000) null,
90+
feedback_content varchar(2000) null,
91+
question varchar(255) not null,
92+
tail_question varchar(255) null,
93+
answer_state enum ('COMPLETE', 'INIT', 'PASS') null
94+
);
95+

0 commit comments

Comments
 (0)