mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-07-22 08:48:39 +00:00
21 lines
No EOL
522 B
Python
21 lines
No EOL
522 B
Python
from sqlmodel import Field, SQLModel
|
|
from sqlalchemy import Column
|
|
from sqlalchemy.dialects.postgresql import UUID
|
|
import uuid
|
|
|
|
class BaseModel(SQLModel):
|
|
id: uuid.UUID = Field(
|
|
default_factory=uuid.uuid4,
|
|
sa_column=Column(UUID(as_uuid=True), primary_key=True)
|
|
)
|
|
|
|
|
|
class SubmissionInfoFromDeal(BaseModel):
|
|
deal_id: str
|
|
deal_name: str
|
|
work_type: str
|
|
needs_trickle_ventilation: bool
|
|
post_sap_score: int
|
|
existing_wall_insulation: str
|
|
no_of_wet_rooms: int
|
|
installer: str |