Files
location_service/app/schemas/owner_schema.py
exolonConfidental a77788fc47 endpoint setup
2026-02-08 11:18:47 +05:30

17 lines
353 B
Python

from pydantic import BaseModel
class OwnerResponse(BaseModel):
id: int
full_name: str
phone_number: str
email: str
occupation: str
annual_income_range: str
willing_to_rent: bool
desired_rent_price: int | None
willing_to_sell: bool
desired_sell_price: int | None
class Config:
from_attributes = True