9 lines
No EOL
295 B
SQL
9 lines
No EOL
295 B
SQL
CREATE TABLE IF NOT EXISTS report_collection (
|
|
id INTEGER PRIMARY KEY,
|
|
owner_id INTEGER NOT NULL,
|
|
project_id INTEGER NOT NULL,
|
|
date DATE NOT NULL,
|
|
signed_by INTEGER, -- NULL if not signed
|
|
FOREIGN KEY (owner_id) REFERENCES users (id)
|
|
FOREIGN KEY (signed_by) REFERENCES users (id)
|
|
); |