refactor: 회원 / 관리자 테이블 분리에 따른 스키마에서의 createdBy, updatedBy 외래키 제약조건 삭제

This commit is contained in:
이상진 2025-09-13 11:49:51 +09:00
parent 1ddf812d1c
commit ee9d8cd9f0

View File

@ -88,10 +88,7 @@ create table if not exists theme (
created_at timestamp not null, created_at timestamp not null,
created_by bigint not null, created_by bigint not null,
updated_at timestamp not null, updated_at timestamp not null,
updated_by bigint not null, updated_by bigint not null
constraint fk_theme__created_by foreign key (created_by) references members (member_id),
constraint fk_theme__updated_by foreign key (updated_by) references members (member_id)
); );
create table if not exists schedule ( create table if not exists schedule (
@ -106,8 +103,6 @@ create table if not exists schedule (
updated_by bigint not null, updated_by bigint not null,
constraint uk_schedule__date_time_theme_id unique (date, time, theme_id), constraint uk_schedule__date_time_theme_id unique (date, time, theme_id),
constraint fk_schedule__created_by foreign key (created_by) references members (member_id),
constraint fk_schedule__updated_by foreign key (updated_by) references members (member_id),
constraint fk_schedule__theme_id foreign key (theme_id) references theme (id) constraint fk_schedule__theme_id foreign key (theme_id) references theme (id)
); );