You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
394 B
17 lines
394 B
drop table room_note;
|
|
drop table room;
|
|
|
|
create table room (
|
|
id serial primary key not null,
|
|
name varchar(32) not null,
|
|
section_id "char" not null,
|
|
mode "char" not null,
|
|
episode "char" not null,
|
|
difficulty "char" not null
|
|
);
|
|
|
|
create table room_note (
|
|
room integer references room (id) not null,
|
|
note jsonb not null,
|
|
created_at timestamptz default current_timestamp not null
|
|
);
|