diff --git a/src/test/resources/init.sql b/src/test/resources/init.sql index 417dcee..b4bdb46 100644 --- a/src/test/resources/init.sql +++ b/src/test/resources/init.sql @@ -62,21 +62,18 @@ create table discussion created_date varchar(255) not null, title varchar(20) not null, user_id bigint null, - primary key (id), - foreign key (user_id) references users (id) + primary key (id) ); create table comment ( - id bigint generated by default as identity, + id Long generated by default as identity, comment text, created_date varchar(255) not null, modified_date varchar(255) null, - discussion_id bigint null, - user_id bigint null, - primary key (id), - foreign key (user_id) references users (id), - foreign key (discussion_id) references discussion (id) + discussion_id Long null, + user_id Long null, + primary key (id) ); create table suggestion @@ -89,9 +86,7 @@ create table suggestion title varchar(20) not null, restaurant_id bigint null, user_id bigint null, - primary key (id), - foreign key (restaurant_id) references restaurant (id), - foreign key (user_id) references users (id) + primary key (id) ); create table role @@ -107,7 +102,5 @@ create table user_role created timestamp null, role_id bigint null, user_id bigint null, - primary key (user_role_id), - foreign key (user_id) references users (id), - foreign key (role_id) references role (id) + primary key (user_role_id) ); \ No newline at end of file