generated from pricelees/issue-pr-template
refactor: 회원 / 관리자 테이블 분리에 따른 스키마에서의 createdBy, updatedBy 외래키 제약조건 삭제
This commit is contained in:
parent
1ddf812d1c
commit
ee9d8cd9f0
@ -88,10 +88,7 @@ create table if not exists theme (
|
||||
created_at timestamp not null,
|
||||
created_by bigint not null,
|
||||
updated_at timestamp 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)
|
||||
updated_by bigint not null
|
||||
);
|
||||
|
||||
create table if not exists schedule (
|
||||
@ -106,8 +103,6 @@ create table if not exists schedule (
|
||||
updated_by bigint not null,
|
||||
|
||||
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)
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user