feat: init coursechapter + elements interface

This commit is contained in:
swve 2022-10-22 23:03:36 +02:00
parent f492baf276
commit 19b7dd650e
16 changed files with 542 additions and 75 deletions

View file

@ -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):