mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
wip: courses
This commit is contained in:
parent
afa8e4ea98
commit
ee07f49139
8 changed files with 334 additions and 378 deletions
|
|
@ -36,6 +36,10 @@ class UserRead(UserBase):
|
|||
class PublicUser(UserRead):
|
||||
pass
|
||||
|
||||
class AnonymousUser(UserRead):
|
||||
id: str = "anonymous"
|
||||
username: str = "anonymous"
|
||||
|
||||
class User(UserBase, table=True):
|
||||
id: Optional[int] = Field(default=None, primary_key=True)
|
||||
password: str = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue