2024-02-26 00:12:13 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS user_roles (
|
|
|
|
user_id INTEGER NOT NULL,
|
|
|
|
project_id INTEGER NOT NULL,
|
2024-02-27 08:05:07 +01:00
|
|
|
role STRING NOT NULL, -- 'admin' or 'member'
|
2024-02-26 00:12:13 +01:00
|
|
|
FOREIGN KEY (user_id) REFERENCES users (id)
|
|
|
|
FOREIGN KEY (project_id) REFERENCES projects (id)
|
|
|
|
);
|