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.

20 lines
466 B

5 years ago
  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE activity (
  4. activity_id CHAR(16) PRIMARY KEY,
  5. project_id CHAR(16) NOT NULL,
  6. name VARCHAR(255) NOT NULL,
  7. countable BOOLEAN NOT NULL,
  8. unit_is_time BOOLEAN NOT NULL,
  9. unit_name VARCHAR(255) NOT NULL,
  10. unit_value FLOAT NOT NULL,
  11. base_value FLOAT NOT NULL,
  12. INDEX(Project_id)
  13. );
  14. -- +goose StatementEnd
  15. -- +goose Down
  16. -- +goose StatementBegin
  17. DROP TABLE activity;
  18. -- +goose StatementEnd