Skip to content

Commit

Permalink
Merge pull request #14 from ctc-uci/11-create-clients-table
Browse files Browse the repository at this point in the history
feat: create clients table
  • Loading branch information
theNatePi authored Dec 1, 2024
2 parents 07addb8 + 8a0af88 commit 98e5cf4
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 98e5cf4

Please sign in to comment.