from pydantic import BaseModel, Field
from datetime import datetime
from typing import Optional

class {{ class_name }}Create(BaseModel):
    example: str = Field(..., min_length=3, max_length=100)

class {{ class_name }}Response(BaseModel):
    id: int

    created_at: datetime

    class Config:
        from_attributes = True

class {{ class_name }}Update(BaseModel):
    example: Optional[str] = None