9 lines
208 B
Python
9 lines
208 B
Python
from sqlmodel import SQLModel, Field
|
|
from uuid import uuid4
|
|
|
|
class Owner(SQLModel, table=True):
|
|
id: int = Field(default_factory=uuid4, primary_key=True)
|
|
name: str
|
|
email: str
|
|
# TODO add houses
|