CREATE TABLE IF NOT EXISTS report_collection ( id INTEGER PRIMARY KEY, project_id INTEGER NOT NULL, date DATE NOT NULL, signed_by INTEGER, -- NULL if not signed FOREIGN KEY (signed_by) REFERENCES users (id) );