The backend for PuffPastry, a DAO platform.
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.

преди 2 месеца
1234567891011121314151617
  1. -- Your SQL goes here
  2. create table comments (
  3. id bigserial primary key,
  4. content text not null,
  5. parent bigint references comments (id) on delete cascade,
  6. telegram_handle text not null,
  7. issue_id int not null references issues (id),
  8. created_at timestamp
  9. );
  10. create table comment_votes (
  11. id bigserial primary key,
  12. positive boolean,
  13. comment_id bigint not null references comments(id),
  14. user_id bigint not null,
  15. unique (comment_id, user_id)
  16. )