2024-02-26 00:13:39 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS report_collection (
|
|
|
|
id INTEGER PRIMARY KEY,
|
2024-02-27 08:05:07 +01:00
|
|
|
owner_id INTEGER NOT NULL,
|
2024-02-26 00:12:13 +01:00
|
|
|
project_id INTEGER NOT NULL,
|
2024-02-26 00:13:39 +01:00
|
|
|
date DATE NOT NULL,
|
|
|
|
signed_by INTEGER, -- NULL if not signed
|
2024-02-27 08:05:07 +01:00
|
|
|
FOREIGN KEY (owner_id) REFERENCES users (id)
|
2024-02-26 00:13:39 +01:00
|
|
|
FOREIGN KEY (signed_by) REFERENCES users (id)
|
2024-02-26 00:12:13 +01:00
|
|
|
);
|