15 lines
231 B
Python
15 lines
231 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class AnswerOptionEntity(BaseModel):
|
|
id: Optional[int] = None
|
|
text: str
|
|
is_correct: bool
|
|
|
|
task_id: int
|
|
|
|
class Config:
|
|
from_attributes = True
|