from __future__ import annotations from pydantic import BaseModel class GalleryItemSchema(BaseModel): title: str | None = None image: str photographer: str | None = None location: str | None = None description: str | None = None tags: list = [] is_visible: bool = True class GalleryItemResponse(GalleryItemSchema): id: int sort_order: int = 0 class Config: from_attributes = True class GalleryListResponse(BaseModel): items: list[GalleryItemResponse] total: int