Device.approved

This commit is contained in:
Jörn-Michael Miehe 2022-03-30 10:23:24 +00:00
parent 667fcba559
commit f6032829cd

View file

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