admin mode
This commit is contained in:
@@ -68,6 +68,21 @@ class StudentSkillMastery(Base):
|
||||
skill = relationship("Skill")
|
||||
|
||||
|
||||
class StudentProgramAssignment(Base):
|
||||
__tablename__ = "student_program_assignments"
|
||||
__table_args__ = (UniqueConstraint("student_id", name="uq_student_program_assignment"),)
|
||||
|
||||
id: Mapped[int] = mapped_column(Integer, primary_key=True)
|
||||
student_id: Mapped[int] = mapped_column(ForeignKey("students.id"), index=True)
|
||||
lesson_id: Mapped[str] = mapped_column(String(500), index=True)
|
||||
title: Mapped[str] = mapped_column(String(255))
|
||||
subject: Mapped[str] = mapped_column(String(100))
|
||||
grade: Mapped[str] = mapped_column(String(50), index=True)
|
||||
updated_at: Mapped[datetime] = mapped_column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
|
||||
|
||||
student = relationship("Student")
|
||||
|
||||
|
||||
class AssessmentAttempt(Base):
|
||||
__tablename__ = "assessment_attempts"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user