We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eb27c4 commit 1f35398Copy full SHA for 1f35398
server/db/schema/clients.sql
@@ -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