Mistake in migration scripts

This commit is contained in:
Imbus 2024-02-26 00:13:39 +01:00
parent 3ba446be5b
commit 033402ffaf

View file

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS user_roles (
user_id INTEGER NOT NULL,
CREATE TABLE IF NOT EXISTS report_collection (
id INTEGER PRIMARY KEY,
project_id INTEGER NOT NULL,
role STRING NOT NULL,
FOREIGN KEY (user_id) REFERENCES users (id)
FOREIGN KEY (project_id) REFERENCES projects (id)
date DATE NOT NULL,
signed_by INTEGER, -- NULL if not signed
FOREIGN KEY (signed_by) REFERENCES users (id)
);