feat: file_store 생성 SQL
This commit is contained in:
@@ -40,8 +40,10 @@ public class BookVersion extends BaseEntity {
|
||||
@Enumerated(EnumType.STRING)
|
||||
private LengthPreset lengthPreset;
|
||||
|
||||
@Column(name = "book_s3_key")
|
||||
private String bookS3Key;
|
||||
|
||||
@Column(name = "audio_s3_key")
|
||||
private String audioS3Key;
|
||||
|
||||
private String language = "en-Us";
|
||||
|
||||
@@ -2,4 +2,6 @@ databaseChangeLog:
|
||||
- includeAll:
|
||||
path: db/sql/account/251203
|
||||
- includeAll:
|
||||
path: db/sql/book/251215
|
||||
path: db/sql/book/251215
|
||||
- includeAll:
|
||||
path: db/sql/filestore/251221
|
||||
@@ -0,0 +1,18 @@
|
||||
-- liquibase formatted sql
|
||||
-- changeset ijeongmin:1_create_file_store.sql
|
||||
create table file_store
|
||||
(
|
||||
id bigint not null auto_increment primary key,
|
||||
object_key varchar(500) null comment 's3 식별 키 UUID',
|
||||
original_file_name varchar(255) null comment '저장된 파일 명',
|
||||
content_type varchar(100) null,
|
||||
size_bytes bigint not null,
|
||||
|
||||
created_at timestamp not null default current_timestamp,
|
||||
updated_at timestamp not null default current_timestamp on update current_timestamp,
|
||||
deleted boolean not null default false,
|
||||
deleted_at timestamp null,
|
||||
|
||||
key idx_file_store_deleted (deleted),
|
||||
key idx_object_key (object_key)
|
||||
);
|
||||
Reference in New Issue
Block a user