pique/migrations/2024-05-31-204416_permissions/up.sql

12 lines
252 B
MySQL
Raw Normal View History

2024-06-01 00:10:22 +00:00
CREATE TABLE IF NOT EXISTS project_memberships(
id INTEGER PRIMARY KEY NOT NULL UNIQUE,
user_id UUID_TEXT NOT NULL,
project_id UUID_TEXT NOT NULL,
role TEXT NOT NULL,
created TIMESTAMP NOT NULL,
updated TIMESTAMP NOT NULL
);