From f6032829cdfefea4d15a891e0577f9b84a9d528f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 30 Mar 2022 10:23:24 +0000 Subject: [PATCH] Device.approved --- api/kiwi_vpn_api/db/device.py | 2 ++ 1 file changed, 2 insertions(+) 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