MCPcopy
hub / github.com/learnhouse/learnhouse / CourseChapter

Class CourseChapter

apps/api/src/db/courses/course_chapters.py:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class CourseChapter(SQLModel, table=True):
7 id: Optional[int] = Field(default=None, primary_key=True)
8 order: int
9 course_id: int = Field(
10 sa_column=Column(Integer, ForeignKey("course.id", ondelete="CASCADE"), index=True)
11 )
12 chapter_id: int = Field(
13 sa_column=Column(Integer, ForeignKey("chapter.id", ondelete="CASCADE"), index=True)
14 )
15 org_id: int = Field(
16 sa_column=Column(Integer, ForeignKey("organization.id", ondelete="CASCADE"))
17 )
18 creation_date: str
19 update_date: str

Calls 1

FieldFunction · 0.50