stufflog graphql server
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.

30 lines
793 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE issue (
  4. issue_id CHAR(32) NOT NULL PRIMARY KEY,
  5. project_id CHAR(16) NOT NULL,
  6. owner_id CHAR(32) NOT NULL,
  7. assignee_id CHAR(32) NOT NULL,
  8. status_stage INTEGER NOT NULL,
  9. status_name CHAR(32) NOT NULL,
  10. created_time TIMESTAMP NOT NULL,
  11. updated_time TIMESTAMP NOT NULL,
  12. due_time TIMESTAMP NOT NULL,
  13. name VARCHAR(255) NOT NULL,
  14. title VARCHAR(255) NOT NULL,
  15. description TEXT NOT NULL,
  16. FULLTEXT(name, title, description),
  17. INDEX(owner_id),
  18. INDEX(assignee_id),
  19. INDEX(project_id, status_stage, status_name),
  20. INDEX(project_id),
  21. INDEX(created_time),
  22. INDEX(updated_time)
  23. );
  24. -- +goose StatementEnd
  25. -- +goose Down
  26. -- +goose StatementBegin
  27. DROP TABLE issue;
  28. -- +goose StatementEnd