Added models/User.py
This commit is contained in:
parent
3aea594f00
commit
5368d4a94a
1 changed files with 17 additions and 0 deletions
17
src/models/User.py
Normal file
17
src/models/User.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class UserContact(BaseModel):
|
||||
service: str
|
||||
data: str
|
||||
visible: bool
|
||||
|
||||
|
||||
class User(BaseModel):
|
||||
username: str
|
||||
first_name: str
|
||||
last_name: str
|
||||
main_email: str
|
||||
password: str
|
||||
visible_name: str
|
||||
contacts: list[UserContact]
|
Loading…
Add table
Reference in a new issue