2024-03-17 20:04:29 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS weekly_reports (
|
2024-03-17 17:47:31 +01:00
|
|
|
report_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
|
|
user_id INTEGER NOT NULL,
|
|
|
|
project_id INTEGER NOT NULL,
|
|
|
|
week INTEGER NOT NULL,
|
2024-03-16 22:47:19 +01:00
|
|
|
development_time INTEGER,
|
|
|
|
meeting_time INTEGER,
|
|
|
|
admin_time INTEGER,
|
|
|
|
own_work_time INTEGER,
|
|
|
|
study_time INTEGER,
|
|
|
|
testing_time INTEGER,
|
2024-03-17 15:34:48 +01:00
|
|
|
signed_by INTEGER,
|
2024-03-16 22:47:19 +01:00
|
|
|
FOREIGN KEY (user_id) REFERENCES users(id),
|
2024-03-17 15:34:48 +01:00
|
|
|
FOREIGN KEY (project_id) REFERENCES projects(id),
|
2024-03-17 17:47:31 +01:00
|
|
|
FOREIGN KEY (signed_by) REFERENCES users(id)
|
|
|
|
);
|