2023-02-18 16:20:26 -07:00
|
|
|
create table room (
|
2023-02-18 00:51:28 -07:00
|
|
|
id serial primary key not null,
|
|
|
|
name varchar(32) not null,
|
|
|
|
section_id char not null,
|
|
|
|
mode char not null,
|
|
|
|
episode char not null,
|
2023-02-18 16:20:26 -07:00
|
|
|
difficulty char not null
|
|
|
|
);
|
2023-02-18 00:51:28 -07:00
|
|
|
|
|
|
|
create table room_note (
|
|
|
|
room integer references room (id) not null,
|
|
|
|
note jsonb not null,
|
|
|
|
created_at timestamptz default current_timestamp not null
|
|
|
|
);
|