Spaces:
Build error
Build error
Update utils/enrollment.py
Browse files1234511 unmodified lines17181920212223from typing import Optionalfrom utils.enums.grade import Gradefrom .student import Student11 unmodified linesgrade (str): The grade assigned to the student for the course. Default if NO_GRADE with enum value of None if no grade has been assigned yet."""id: int = Field(primary_key=True)student_id: str = Field(foreign_key="student.id")course_id: str = Field(foreign_key="course.id")grade: str = Field(default=Grade.A_PLUS)12345611 unmodified lines18192021222324252627282930from typing import Optionalfrom utils.enums.grade import Gradeimport uuidfrom .student import Student11 unmodified linesgrade (str): The grade assigned to the student for the course. Default if NO_GRADE with enum value of None if no grade has been assigned yet."""id: str = Field(default_factory=lambda: str(uuid.uuid4()),primary_key=True,index=True,nullable=False,sa_column_kwargs={"unique": True})student_id: str = Field(foreign_key="student.id")course_id: str = Field(foreign_key="course.id")grade: str = Field(default=Grade.A_PLUS)
utils/enrollment.py+8-1