diff --git a/backend/build.gradle b/backend/build.gradle index 7d88203..3b6b515 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -85,6 +85,10 @@ dependencies { // validation implementation 'org.springframework.boot:spring-boot-starter-validation' + // mysql + implementation platform("com.google.cloud:spring-cloud-gcp-dependencies:5.3.0") + implementation "com.google.cloud:spring-cloud-gcp-starter-sql-mysql:5.3.0" + compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' @@ -96,6 +100,7 @@ dependencies { //developmentOnly 'org.springframework.boot:spring-boot-devtools' // h2 runtimeOnly 'com.h2database:h2' + runtimeOnly 'com.mysql:mysql-connector-j' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } diff --git a/backend/secret b/backend/secret index 8996f33..e338a60 160000 --- a/backend/secret +++ b/backend/secret @@ -1 +1 @@ -Subproject commit 8996f33f771fe1991be49d68056cec068d2b147e +Subproject commit e338a6022206617fd6166987af9cd06357ad02e1 diff --git a/backend/src/main/java/in/backend/core/interview/entity/InterviewEntity.java b/backend/src/main/java/in/backend/core/interview/entity/InterviewEntity.java index 94a04cd..5ab6239 100644 --- a/backend/src/main/java/in/backend/core/interview/entity/InterviewEntity.java +++ b/backend/src/main/java/in/backend/core/interview/entity/InterviewEntity.java @@ -22,7 +22,7 @@ @Getter @Entity -@Table(name = "interview") +@Table(name = "interviews") @NoArgsConstructor(access = AccessLevel.PROTECTED) public class InterviewEntity extends BaseEntity { @@ -42,7 +42,7 @@ public class InterviewEntity extends BaseEntity { /** * 현재 진행 중인 면접 질문 번호 */ - @Column(nullable = false) + @Column(nullable = false, name = "interview_index") private int index; /** * 인터뷰 면접 질문의 수