Open jurmy24 opened 3 hours ago
I'm quite flexible regarding exactly what Literals are allowed (such as teacher, admin, student, etc...). It's more about making sure the validations work with SQLModel as it should and doesn't cause any issues with migrations and whatnot.
Don't know how to do it right now but I want the following validations in the database models in the file
app/database/models.py
:In the User model I want this:
In the Class model I want this:
grade_level INT NOT NULL CHECK (grade_level BETWEEN 1 AND 13),