from typing import List, Optional
from pydantic import BaseModel, Field
from datetime import datetime
from .answer_item_request_schema import AnswerItemSchema


class UserAnswerSchema(BaseModel):
    quiz_id: str
    user_id: str
    session_id: Optional[str] = None
    answered_at: datetime
    answers: List[AnswerItemSchema]
