diff --git a/src/main/resources/schema/schema-h2.sql b/src/main/resources/schema/schema-h2.sql index 978bbae1..ec8ab571 100644 --- a/src/main/resources/schema/schema-h2.sql +++ b/src/main/resources/schema/schema-h2.sql @@ -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) );