createdb.sql 590 B

1234567891011121314151617181920212223242526272829
  1. create table users(
  2. id integer primary key,
  3. firstname varchar(255),
  4. lastname varchar(255),
  5. login varchar(255)
  6. );
  7. create table meetings(
  8. id integer primary key,
  9. description text,
  10. meeting_datetime datetime,
  11. participants text,
  12. leader_id integer,
  13. meeting_link varchar(255),
  14. chat_id integer,
  15. FOREIGN KEY(leader_id) REFERENCES users(id)
  16. );
  17. create table notifications(
  18. id integer primary key,
  19. when_notify varchar(255),
  20. meeting_id integer,
  21. chat_id integer,
  22. message text,
  23. FOREIGN KEY(meeting_id) REFERENCES meetings(id)
  24. );