GraphQL API and utilities for the rpdata project
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
492 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE story (
  4. id TEXT NOT NULL PRIMARY KEY,
  5. author TEXT NOT NULL,
  6. name TEXT NOT NULL,
  7. category TEXT NOT NULL,
  8. open BOOLEAN NOT NULL,
  9. listed BOOLEAN NOT NULL,
  10. sort_by_fictional_date BOOLEAN NOT NULL,
  11. created_date TIMESTAMP NOT NULL,
  12. fictional_date TIMESTAMP NOT NULL,
  13. updated_date TIMESTAMP NOT NULL
  14. );
  15. -- +goose StatementEnd
  16. -- +goose Down
  17. -- +goose StatementBegin
  18. DROP TABLE story;
  19. -- +goose StatementEnd