14 lines
372 B
MySQL
14 lines
372 B
MySQL
|
CREATE TABLE weekly_reports (
|
||
|
user_id INTEGER,
|
||
|
project_id INTEGER,
|
||
|
week INTEGER,
|
||
|
development_time INTEGER,
|
||
|
meeting_time INTEGER,
|
||
|
admin_time INTEGER,
|
||
|
own_work_time INTEGER,
|
||
|
study_time INTEGER,
|
||
|
testing_time INTEGER,
|
||
|
FOREIGN KEY (user_id) REFERENCES users(id),
|
||
|
FOREIGN KEY (project_id) REFERENCES projects(id)
|
||
|
PRIMARY KEY (user_id, project_id, week)
|
||
|
)
|