feat: convert to self-hosted version

This commit is contained in:
Jayden Pyles
2024-07-06 22:40:47 -05:00
parent 8808b493e6
commit 2bfc751d01
24 changed files with 1073 additions and 222 deletions

30
api/backend/schemas.py Normal file
View File

@@ -0,0 +1,30 @@
# STL
from typing import Optional
# PDM
from pydantic import EmailStr, BaseModel
class Token(BaseModel):
access_token: str
token_type: str
class TokenData(BaseModel):
email: Optional[str] = None
class User(BaseModel):
email: EmailStr
full_name: Optional[str] = None
disabled: Optional[bool] = None
class UserInDB(User):
hashed_password: str
class UserCreate(BaseModel):
email: EmailStr
password: str
full_name: Optional[str] = None