Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Participant roles should be enumerated values #19

Open
ttfkam opened this issue Sep 15, 2015 · 0 comments
Open

Participant roles should be enumerated values #19

ttfkam opened this issue Sep 15, 2015 · 0 comments

Comments

@ttfkam
Copy link
Contributor

ttfkam commented Sep 15, 2015

Episode statuses should be an enumerated type within the database. This will prevent typos from creeping into the DB and allow for the UI to be populated with enum values from the DB rather than hard coded in the app layer. Also takes up less disk space and can be queried faster.

e.g.

CREATE TYPE gs_role AS ENUM ('new', 'waiting', 'pending', 'live');

ALTER TABLE participants
ALTER COLUMN role TYPE gs_role;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant