sql_app/schema: fix type error
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
987087704a
commit
64edc98a76
@ -1,4 +1,4 @@
|
|||||||
from typing import Optional
|
from typing import Any, List, Optional
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ class UserCreate(UserBase):
|
|||||||
class User(UserBase):
|
class User(UserBase):
|
||||||
id: int
|
id: int
|
||||||
is_active: bool
|
is_active: bool
|
||||||
authorized_devices: list[IotEntity] = []
|
authorized_devices: List[IotEntity] = []
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
orm_mode = True
|
orm_mode = True
|
||||||
|
Loading…
Reference in New Issue
Block a user