-- +goose Up
-- +goose StatementBegin
CREATE TABLE project_permission (
    project_id CHAR(16) NOT NULL,
    user_id CHAR(32) NOT NULL,
    access_level INTEGER NOT NULL DEFAULT (0),

    PRIMARY KEY (project_id, user_id),
    INDEX (user_id)
);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
DROP TABLE project_permission
-- +goose StatementEnd
