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

  1. drop table room_note;
  2. drop table room;
  3. create table room (
  4. id serial primary key not null,
  5. name varchar(32) not null,
  6. section_id "char" not null,
  7. mode "char" not null,
  8. episode "char" not null,
  9. difficulty "char" not null
  10. );
  11. create table room_note (
  12. room integer references room (id) not null,
  13. note jsonb not null,
  14. created_at timestamptz default current_timestamp not null
  15. );