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.

17 lines
335 B

5 years ago
  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE log (
  4. log_id CHAR(24) NOT NULL PRIMARY KEY,
  5. user_id CHAR(32) NOT NULL,
  6. date TIMESTAMP NOT NULL,
  7. description TEXT NOT NULL,
  8. INDEX (user_id),
  9. INDEX (date)
  10. );
  11. -- +goose StatementEnd
  12. -- +goose Down
  13. -- +goose StatementBegin
  14. DROP TABLE log;
  15. -- +goose StatementEnd