"""Attachment schemas.""" from datetime import datetime from pydantic import BaseModel class AttachmentRead(BaseModel): """Attachment read schema.""" id: int booking_id: int filename: str size: int content_type: str uploaded_by: int uploader_name: str created_at: datetime class Config: """Pydantic config.""" from_attributes = True