diff --git a/api/kiwi_vpn_api/db/device.py b/api/kiwi_vpn_api/db/device.py index c1dbe4e..3af9860 100644 --- a/api/kiwi_vpn_api/db/device.py +++ b/api/kiwi_vpn_api/db/device.py @@ -37,6 +37,7 @@ class DeviceRead(DeviceBase): Representation of a device read via the API """ + approved: bool owner_name: str | None @@ -51,6 +52,7 @@ class Device(DeviceBase, table=True): ),) id: int | None = Field(primary_key=True) + approved: bool = Field(default=False) owner_name: str | None = Field(foreign_key="user.name") # no idea, but "User" (in quotes) doesn't work here