fix foreign keys

This commit is contained in:
Jacob Windsor
2025-02-19 16:21:39 +01:00
parent 47724059bd
commit ed6c49a1b7
5 changed files with 9 additions and 13 deletions
+6 -6
View File
@@ -1,9 +1,9 @@
from pydantic import BaseModel
from pydantic import BaseModel, Field
class HouseCreateRequest(BaseModel):
address: str
city: str
country: str
price: float
description: str
address: str = Field(..., min_length=1, max_length=255, description="House address", examples=["123 Main St"])
city: str = Field(..., description="City where the house is located", examples=["Springfield"])
country: str = Field(..., description="Country where the house is located", examples=["USA"])
price: float = Field(..., description="Price of the house", examples=[250000.00])
description: str = Field(..., description="Description of the house", examples=["A beautiful 3-bedroom house"])