Skip to content

Commit

Permalink
Created invoices table
Browse files Browse the repository at this point in the history
  • Loading branch information
brelieu05 committed Nov 26, 2024
1 parent 5eb27c4 commit bbe21a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/db/schema/invoices.sql
Original file line number Diff line number Diff line change
@@ -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'

);

0 comments on commit bbe21a8

Please sign in to comment.