Open oliverjam opened 4 years ago
Something I just thought of during your presentation: Postgres supports a data type called "enum". This is like a list of allowed possible values. You could use that for your type value to ensure it can only be "breakfast", "lunch", "dinner" etc
type
https://www.postgresql.org/docs/9.1/datatype-enum.html
Something I just thought of during your presentation: Postgres supports a data type called "enum". This is like a list of allowed possible values. You could use that for your
type
value to ensure it can only be "breakfast", "lunch", "dinner" etchttps://www.postgresql.org/docs/9.1/datatype-enum.html