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.

20 lines
469 B

4 years ago
  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE task (
  4. task_id CHAR(16) PRIMARY KEY,
  5. user_id CHAR(36) NOT NULL,
  6. item_id CHAR(16) NOT NULL,
  7. project_id CHAR(16) NOT NULL,
  8. item_amount INT NOT NULL,
  9. name TEXT NOT NULL,
  10. description TEXT NOT NULL,
  11. created_time TIMESTAMP NOT NULL,
  12. active BOOLEAN NOT NULL,
  13. end_time TIMESTAMP
  14. );
  15. -- +goose StatementEnd
  16. -- +goose Down
  17. -- +goose StatementBegin
  18. DROP TABLE task;
  19. -- +goose StatementEnd