Skip to content

Commit 1f35398

Browse files
committed
created clients table SQL
1 parent 5eb27c4 commit 1f35398

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

server/db/schema/clients.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CREATE TYPE client_role AS ENUM ('payee', 'instructor');
2+
3+
CREATE TABLE clients (
4+
id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('client_id_seq'),
5+
event_id INT REFERENCES events(id) NOT NULL,
6+
role client_role NOT NULL,
7+
name VARCHAR(256) NOT NULL,
8+
email VARCHAR(256) NOT NULL
9+
);

0 commit comments

Comments
 (0)