- feat(025): favoritos locais com FavoritesContext, HeartButton, PublicFavoritesPage
- feat(026): central de contatos admin (leads/contatos unificados)
- feat(027): configuração da página de contato via admin
- feat(028): trabalhe conosco - candidaturas com upload e admin
- feat(029): UX área do cliente - visitas, comparação, perfil
- feat(030): navbar UX - menu mobile, ThemeToggle, useFavorites
- feat(031): hero light/dark - imagens separadas por tema, upload, preview, seed
- feat(032): performance homepage - Promise.all parallel fetches, sessionStorage cache,
preload hero image, loading=lazy nos cards, useInView hook, will-change carrossel,
keyframes em index.css, AgentsCarousel e HomeScrollScene via props
- fix: light mode HomeScrollScene - gradiente, cores de texto, scroll hint
migrations: g1h2i3j4k5l6 (source em leads), h1i2j3k4l5m6 (contact_config),
i1j2k3l4m5n6 (job_applications), j2k3l4m5n6o7 (hero theme images)
63 lines
1.3 KiB
Python
63 lines
1.3 KiB
Python
from __future__ import annotations
|
|
|
|
from datetime import datetime
|
|
from decimal import Decimal
|
|
from uuid import UUID
|
|
from typing import Literal
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from app.schemas.catalog import (
|
|
AmenityOut,
|
|
ImobiliariaOut,
|
|
PropertyTypeOut,
|
|
CityOut,
|
|
NeighborhoodOut,
|
|
)
|
|
|
|
|
|
class PropertyPhotoOut(BaseModel):
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
url: str
|
|
alt_text: str
|
|
display_order: int
|
|
|
|
|
|
class PropertyOut(BaseModel):
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
id: UUID
|
|
title: str
|
|
slug: str
|
|
code: str | None = None
|
|
price: Decimal
|
|
condo_fee: Decimal | None
|
|
iptu_anual: Decimal | None = None
|
|
type: Literal["venda", "aluguel"]
|
|
subtype: PropertyTypeOut | None
|
|
bedrooms: int
|
|
bathrooms: int
|
|
parking_spots: int
|
|
area_m2: int
|
|
city: CityOut | None
|
|
neighborhood: NeighborhoodOut | None
|
|
imobiliaria: ImobiliariaOut | None = None
|
|
is_featured: bool
|
|
created_at: datetime | None = None
|
|
photos: list[PropertyPhotoOut]
|
|
amenities: list[AmenityOut] = []
|
|
|
|
|
|
class PaginatedPropertiesOut(BaseModel):
|
|
items: list[PropertyOut]
|
|
total: int
|
|
page: int
|
|
per_page: int
|
|
pages: int
|
|
|
|
|
|
class PropertyDetailOut(PropertyOut):
|
|
address: str | None = None
|
|
code: str | None = None
|
|
description: str | None = None
|