mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init chapters, coursechapters. fix courses
This commit is contained in:
parent
eca819b896
commit
4fcc8aa77c
8 changed files with 151 additions and 36 deletions
|
|
@ -1,6 +1,8 @@
|
|||
from typing import Optional
|
||||
from typing import List, Optional
|
||||
from sqlmodel import Field, SQLModel
|
||||
|
||||
from src.db.chapters import ChapterRead
|
||||
|
||||
|
||||
class CourseBase(SQLModel):
|
||||
name: str
|
||||
|
|
@ -41,3 +43,13 @@ class CourseRead(CourseBase):
|
|||
creation_date: str
|
||||
update_date: str
|
||||
pass
|
||||
|
||||
|
||||
class FullCourseRead(CourseBase):
|
||||
id: int
|
||||
course_uuid: str
|
||||
creation_date: str
|
||||
update_date: str
|
||||
# Chapters, Activities
|
||||
chapters: List[ChapterRead]
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue