Skip to content

Commit

Permalink
Implemented client database
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony+Kaitlin committed Nov 23, 2024
1 parent f6cfeb6 commit 839d2d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/db/schema/clients.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TYPE client_role AS ENUM ('payee', 'instructor');

CREATE TABLE clients (
id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('client_id_seq'),
event_id INT REFERENCES events(id) NOT NULL,
role client_role NOT NULL,
name VARCHAR(256) NOT NULL,
email VARCHAR(256) NOT NULL
);

0 comments on commit 839d2d3

Please sign in to comment.