Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"start": "yarn tsx concurrently.ts",
"prepare": "husky install",
"lint": "eslint",
"format": "npx prettier --write ."
"format": "npx prettier --write .",
"postinstall": "cd client && npx patch-package"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": "yarn run eslint"
Expand Down
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
);