Skip to content

Commit 0980a2f

Browse files
authored
Merge pull request #17 from ctc-uci/8-create-invoices-table
Created invoices table
2 parents 4fe2025 + bbe21a8 commit 0980a2f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

server/db/schema/invoices.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CREATE TABLE invoices (
2+
id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('invoice_id_seq'),
3+
event_id INT NOT NULL REFERENCES events(id),
4+
start_date DATE NOT NULL,
5+
end_date DATE NOT NULL,
6+
is_sent BOOL NOT NULL DEFAULT False,
7+
payment_status payment NOT NULL DEFAULT 'none'
8+
9+
);

0 commit comments

Comments
 (0)