16 lines
246 B
Python
16 lines
246 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class LectureEntity(BaseModel):
|
|
id: Optional[int] = None
|
|
text: str
|
|
image: Optional[str]
|
|
number: int
|
|
|
|
step_id: int
|
|
|
|
class Config:
|
|
from_attributes = True
|