Added models/User.py

main
Jan Beníček 2024-06-10 08:39:55 +02:00
parent 3aea594f00
commit 5368d4a94a
1 changed files with 17 additions and 0 deletions

17
src/models/User.py Normal file
View 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]