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


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