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.

15 lines
308 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE session (
  4. session_id CHAR(32) NOT NULL PRIMARY KEY,
  5. user_id CHAR(32) NOT NULL,
  6. expiry_time TIMESTAMP NOT NULL,
  7. INDEX(expiry_time)
  8. );
  9. -- +goose StatementEnd
  10. -- +goose Down
  11. -- +goose StatementBegin
  12. DROP TABLE session;
  13. -- +goose StatementEnd