diff --git a/api/kiwi_vpn_api/db_new/device.py b/api/kiwi_vpn_api/db_new/device.py index 1357ab3..f260cbc 100644 --- a/api/kiwi_vpn_api/db_new/device.py +++ b/api/kiwi_vpn_api/db_new/device.py @@ -31,6 +31,8 @@ class Device(DeviceBase, table=True): id: int | None = Field(primary_key=True) owner_name: str | None = Field(foreign_key="user.name") + # no idea, but "User" (in quotes) doesn't work here + # might be a future problem? owner: User = Relationship( back_populates="devices", )