TTime/backend/internal/database/migrations/0040_time_report_collections.sql

9 lines
295 B
MySQL
Raw Normal View History

2024-02-26 00:13:39 +01:00
CREATE TABLE IF NOT EXISTS report_collection (
id INTEGER PRIMARY KEY,
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
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
);