generated from pricelees/issue-pr-template
refactor: schedule 스키마에 store_id FK 지정
This commit is contained in:
parent
8a9ec2e216
commit
910b19c83a
@ -126,6 +126,7 @@ create table if not exists schedule (
|
|||||||
updated_by bigint not null,
|
updated_by bigint not null,
|
||||||
|
|
||||||
constraint uk_schedule__store_id_date_time_theme_id unique (store_id, date, time, theme_id),
|
constraint uk_schedule__store_id_date_time_theme_id unique (store_id, date, time, theme_id),
|
||||||
|
constraint fk_schedule__store_id foreign key (store_id) references store (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)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user