fuck_microsoft_access/migrations/2026-01-13-101555-0000_invoices/up.sql
2026-01-13 13:36:57 +02:00

8 lines
254 B
SQL

CREATE TABLE IF NOT EXISTS invoices (
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
client_id BIGINT NOT NULL,
amount REAL NOT NULL, -- f32
CONSTRAINT fk_client_id FOREIGN KEY (client_id) REFERENCES clients(id) ON DELETE CASCADE
)