From 21cc7ff8a393769cfbc81dc07fe822f64482cb07 Mon Sep 17 00:00:00 2001 From: dDogge <> Date: Sun, 17 Mar 2024 15:34:48 +0100 Subject: [PATCH] Added signed_by attribute to weekly_report SQL table --- backend/internal/database/migrations/0035_weekly_report.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/internal/database/migrations/0035_weekly_report.sql b/backend/internal/database/migrations/0035_weekly_report.sql index 0e29b97..47610b5 100644 --- a/backend/internal/database/migrations/0035_weekly_report.sql +++ b/backend/internal/database/migrations/0035_weekly_report.sql @@ -8,7 +8,9 @@ CREATE TABLE weekly_reports ( own_work_time INTEGER, study_time INTEGER, testing_time INTEGER, + signed_by INTEGER, FOREIGN KEY (user_id) REFERENCES users(id), - FOREIGN KEY (project_id) REFERENCES projects(id) + FOREIGN KEY (project_id) REFERENCES projects(id), + FOREIGN KEY (signed_by) REFERENCES users(id), PRIMARY KEY (user_id, project_id, week) ) \ No newline at end of file