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.

16 lines
364 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE project_permission (
  4. project_id CHAR(16) NOT NULL,
  5. user_id CHAR(32) NOT NULL,
  6. access_level INTEGER NOT NULL DEFAULT (0),
  7. PRIMARY KEY (project_id, user_id),
  8. INDEX (user_id)
  9. );
  10. -- +goose StatementEnd
  11. -- +goose Down
  12. -- +goose StatementBegin
  13. DROP TABLE project_permission
  14. -- +goose StatementEnd