From 926bd613a8bf9651c105b98c44d7f9d6e8378039 Mon Sep 17 00:00:00 2001 From: gourav Date: Fri, 21 Jun 2024 10:12:02 +0530 Subject: [PATCH] Created model for Key --- models.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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