16 行
289 B
Python
16 行
289 B
Python
from __future__ import annotations
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class CoursesConfigSchema(BaseModel):
|
|
modules: list = []
|
|
age_groups: list = []
|
|
faqs: list = []
|
|
|
|
|
|
class CoursesConfigResponse(CoursesConfigSchema):
|
|
id: int
|
|
|
|
class Config:
|
|
from_attributes = True
|