mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: implement authorization with roles
This commit is contained in:
parent
0595bfdb3f
commit
7738316200
19 changed files with 596 additions and 170 deletions
|
|
@ -32,12 +32,14 @@ class UserUpdatePassword(SQLModel):
|
|||
|
||||
class UserRead(UserBase):
|
||||
id: int
|
||||
user_uuid: str
|
||||
|
||||
class PublicUser(UserRead):
|
||||
pass
|
||||
|
||||
class AnonymousUser(SQLModel):
|
||||
id: str = "anonymous"
|
||||
id: int = 0
|
||||
user_uuid: str = "user_anonymous"
|
||||
username: str = "anonymous"
|
||||
|
||||
class User(UserBase, table=True):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue