fix foreign keys
This commit is contained in:
@@ -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"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user