models/users_db.py¶
models.users_db ¶
User database
PolicySignedDB ¶
Bases: DBBase
PolicySigned Collection
Source code in models/users_db.py
index ¶
save ¶
Save the signed data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
uid |
str
|
user id |
required |
_type |
PolicyType
|
Ploicy type |
required |
TobeVolunteerDB ¶
Bases: DBBase
TobeVolunteer Collection
Source code in models/users_db.py
UsersDB ¶
Bases: DBBase
UsersDB Collection
Source code in models/users_db.py
add ¶
index ¶
new
staticmethod
¶
New user account
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mail |
str
|
Mail address. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Return the user base object and the |
TODO
mail
bind to login oauth account. Maybe need alias
for
some case like one user have more mail account to register.