diff --git a/models.py b/models.py index 1ae7df7..b129425 100644 --- a/models.py +++ b/models.py @@ -5,13 +5,20 @@ from pydantic import BaseModel class User(BaseModel): id: int = None + name: str = None + email: str = None username: str password: str - encryption_key: str = None - salt: str = None created_on: str = datetime.datetime.now(datetime.timezone.utc).isoformat() active: bool = True + +class Key(BaseModel): + user_id: int + encryption_key: str + encryption_key_salt: str + + class UserLogin(BaseModel): username: str password: str