feat: add auth to jobs endpoint

This commit is contained in:
Cullen Watson
2023-07-09 15:15:39 -05:00
committed by Cullen
parent dd0047a5bb
commit 19d11d1996
11 changed files with 164 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
from pydantic import BaseModel
class User(BaseModel):
username: str
full_name: str
email: str
disabled: bool
class UserInDB(User):
hashed_password: str
class TokenData(BaseModel):
username: str
class Token(BaseModel):
access_token: str
token_type: str