Loggest thy stuff
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
378 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE scope_member (
  4. `scope_id` INT NOT NULL,
  5. `user_id` CHAR(36) NOT NULL,
  6. `name` VARCHAR(63) NOT NULL,
  7. `owner` BOOLEAN NOT NULL,
  8. PRIMARY KEY (`scope_id`, `user_id`),
  9. UNIQUE (`scope_id`, `name`)
  10. );
  11. -- +goose StatementEnd
  12. -- +goose Down
  13. -- +goose StatementBegin
  14. DROP TABLE IF EXISTS scope_member;
  15. -- +goose StatementEnd