fix: include role in UserRead schema for admin access
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
This commit is contained in:
parent
ff56e4f140
commit
83d9e18497
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ class UserRead(SQLModel):
|
||||||
email: str
|
email: str
|
||||||
is_active: bool
|
is_active: bool
|
||||||
is_superuser: bool
|
is_superuser: bool
|
||||||
|
role: str = "user"
|
||||||
avatar_bg_color: Optional[str] = "#3B82F6"
|
avatar_bg_color: Optional[str] = "#3B82F6"
|
||||||
avatar_text: Optional[str] = None
|
avatar_text: Optional[str] = None
|
||||||
profile_public: bool = True
|
profile_public: bool = True
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue