aboutsummaryrefslogtreecommitdiff
path: root/api/schemas/auth_schemas.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/schemas/auth_schemas.py')
-rw-r--r--api/schemas/auth_schemas.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/api/schemas/auth_schemas.py b/api/schemas/auth_schemas.py
new file mode 100644
index 0000000..48745ee
--- /dev/null
+++ b/api/schemas/auth_schemas.py
@@ -0,0 +1,15 @@
+from pydantic import BaseModel
+
+
+class Token(BaseModel):
+ access_token: str
+ token_type: str
+
+
+class User(BaseModel):
+ username: str
+ id: int
+
+
+class UserInDB(User):
+ hashed_password: str