from typing import Optional, List, Union
from pydantic import BaseModel


class QuestionItemEntity(BaseModel):
    index: int
    question: str
    target_answer: Union[str, bool, int]
    duration: int
    type: str
    options: Optional[List[str]] = None
