Skip to content

Commit

Permalink
feat: flyway 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
xxeol2 committed Oct 4, 2023
1 parent 7b4a210 commit fff1325
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import com.festago.common.exception.BadRequestException;
import com.festago.common.exception.ErrorCode;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
Expand All @@ -26,6 +28,7 @@ public class EntryAlert extends BaseTimeEntity {
private LocalDateTime entryTime;

@NotNull
@Enumerated(value = EnumType.STRING)
private AlertStatus status = AlertStatus.PENDING;

protected EntryAlert() {
Expand Down
3 changes: 3 additions & 0 deletions backend/src/main/resources/db/migration/V6__entry_alert.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
create table if not exists entry_alert
(
id bigint not null auto_increment,
created_at datetime(6),
updated_at datetime(6),
entry_time datetime(6) not null,
stage_id bigint not null,
status varchar(255) not null,
primary key (id)
) engine innodb
default charset = utf8mb4
Expand Down

0 comments on commit fff1325

Please sign in to comment.