Spaces:
Sleeping
Sleeping
shri-jai
commited on
Commit
·
baafdf4
1
Parent(s):
f4478f7
fix: user table backpopulates
Browse files- README.md +1 -1
- src/core/models.py +1 -0
README.md
CHANGED
|
@@ -8,4 +8,4 @@ pinned: false
|
|
| 8 |
short_description: Yuvabe App Backend
|
| 9 |
---
|
| 10 |
|
| 11 |
-
Check out
|
|
|
|
| 8 |
short_description: Yuvabe App Backend
|
| 9 |
---
|
| 10 |
|
| 11 |
+
Check out our deployment at : https://huggingface.co/spaces/yuvabe-ai/yuvabe-app-backend
|
src/core/models.py
CHANGED
|
@@ -32,6 +32,7 @@ class Users(SQLModel, table=True):
|
|
| 32 |
profile_picture: Optional[str] = None
|
| 33 |
created_at: datetime = Field(default_factory=datetime.now)
|
| 34 |
asset: List["Assets"] = Relationship(back_populates="user")
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
class Teams(SQLModel, table=True):
|
|
|
|
| 32 |
profile_picture: Optional[str] = None
|
| 33 |
created_at: datetime = Field(default_factory=datetime.now)
|
| 34 |
asset: List["Assets"] = Relationship(back_populates="user")
|
| 35 |
+
water_logs: List["WaterLogs"] = Relationship(back_populates="user")
|
| 36 |
|
| 37 |
|
| 38 |
class Teams(SQLModel, table=True):
|