createdb.sql 380 B

1234567891011121314151617
  1. create table admins (
  2. id integer primary key,
  3. admin_id bigint,
  4. channel_id bigint,
  5. channel_title varchar(255),
  6. unique (admin_id, channel_id)
  7. );
  8. create table announcements (
  9. id integer primary key,
  10. event_date date not null,
  11. channel_id bigint,
  12. post_text text,
  13. posted_by bigint,
  14. created_at timestamp default current_timestamp not null,
  15. );