11 lines
258 B
Python
11 lines
258 B
Python
from sqlmodel import SQLModel, Field
|
|
from uuid import uuid4, UUID
|
|
|
|
class House(SQLModel, table=True):
|
|
id: UUID = Field(primary_key=True, default_factory=uuid4),
|
|
address: str
|
|
city: str
|
|
country: str
|
|
price: float
|
|
description: str = None
|