diff --git a/backend/migrations/0040_time_report_collections.sql b/backend/migrations/0040_time_report_collections.sql index 054593b..7dbe6bd 100644 --- a/backend/migrations/0040_time_report_collections.sql +++ b/backend/migrations/0040_time_report_collections.sql @@ -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) ); \ No newline at end of file