Device.approved
This commit is contained in:
parent
667fcba559
commit
f6032829cd
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue