Added models/User.py
parent
3aea594f00
commit
5368d4a94a
|
@ -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…
Reference in New Issue