from typing import List, Optional
from pydantic import BaseModel
from datetime import datetime
from .question_item_schema import QuestionItemSchema


class QuizGetSchema(BaseModel):
    id: str
    author_id: str
    subject_id: str
    subject_alias: str
    title: str
    description: Optional[str] = None
    is_public: bool = False
    date: str
    time: str
    total_quiz: int = 0
    limit_duration: int = 0
    question_listings: List[QuestionItemSchema] = []
