From bbe21a8cda48532850f36c765c422856149a0b4a Mon Sep 17 00:00:00 2001 From: Brendan Lieu Date: Mon, 25 Nov 2024 17:14:05 -0800 Subject: [PATCH] Created invoices table --- server/db/schema/invoices.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server/db/schema/invoices.sql diff --git a/server/db/schema/invoices.sql b/server/db/schema/invoices.sql new file mode 100644 index 0000000..9f07190 --- /dev/null +++ b/server/db/schema/invoices.sql @@ -0,0 +1,9 @@ +CREATE TABLE invoices ( + id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('invoice_id_seq'), + event_id INT NOT NULL REFERENCES events(id), + start_date DATE NOT NULL, + end_date DATE NOT NULL, + is_sent BOOL NOT NULL DEFAULT False, + payment_status payment NOT NULL DEFAULT 'none' + +); \ No newline at end of file