from typing import List, Optional
from pydantic import BaseModel, Field
from datetime import datetime
from .quiz_item_schema import QuestionItemSchema


class QuizCreateSchema(BaseModel):
    title: str
    description: Optional[str] = None
    is_public: bool = False
    subject_id: str
    author_id: Optional[str] = None
    question_listings: Optional[List[QuestionItemSchema]] = []
