Add DTOs for owner

This commit is contained in:
Jacob Windsor
2025-02-19 15:22:02 +01:00
parent 6f5a2f422e
commit 8c2f5acccf
6 changed files with 57 additions and 6 deletions
+1 -1
View File
@@ -8,4 +8,4 @@ class House(SQLModel, table=True):
country: str = Field()
price: float = Field()
description: str = Field()
owner_id: UUID = Field(foreign_key="user.id") # TODO consider using owner.id
owner_id: UUID = Field(foreign_key="owner.id")