diff --git a/server/db/schema/clients.sql b/server/db/schema/clients.sql new file mode 100644 index 0000000..ebf242c --- /dev/null +++ b/server/db/schema/clients.sql @@ -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 +); \ No newline at end of file