Room per User and KalenderTag
This commit is contained in:
10
src/main/resources/db/migration/V0003__room.sql
Normal file
10
src/main/resources/db/migration/V0003__room.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
create table room (
|
||||
id bigint not null primary key,
|
||||
name varchar not null unique
|
||||
);
|
||||
|
||||
alter table users add column room_id bigint references room;
|
||||
alter table kalendertag add column room_id bigint references room;
|
||||
|
||||
alter table kalendertag drop constraint kalendertag_day_key;
|
||||
|
||||
Reference in New Issue
Block a user