mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init coursechapter + elements interface
This commit is contained in:
parent
f492baf276
commit
19b7dd650e
16 changed files with 542 additions and 75 deletions
|
|
@ -37,15 +37,12 @@ class CourseElement(BaseModel):
|
|||
element_id: str
|
||||
content: str
|
||||
content_type: str
|
||||
position: int
|
||||
|
||||
|
||||
class CourseChapter(BaseModel):
|
||||
name: str
|
||||
description: str
|
||||
course: str
|
||||
elements: List[CourseElement]
|
||||
position: int
|
||||
|
||||
|
||||
class CourseChapterInDB(CourseChapter):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue