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.
2 parents 07addb8 + 8a0af88 commit 98e5cf4Copy full SHA for 98e5cf4
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