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