18 lines
378 B
SQL
18 lines
378 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE scope_member (
|
|
`scope_id` INT NOT NULL,
|
|
`user_id` CHAR(36) NOT NULL,
|
|
`name` VARCHAR(63) NOT NULL,
|
|
`owner` BOOLEAN NOT NULL,
|
|
|
|
PRIMARY KEY (`scope_id`, `user_id`),
|
|
UNIQUE (`scope_id`, `name`)
|
|
);
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE IF EXISTS scope_member;
|
|
-- +goose StatementEnd
|