Initial commit
This commit is contained in:
commit
376a7a9fe5
71 changed files with 2326 additions and 0 deletions
28
src/user/schemas.py
Normal file
28
src/user/schemas.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
"""
|
||||
Pydantic models for user module
|
||||
|
||||
Models:
|
||||
- List: Description
|
||||
- Models: Description
|
||||
"""
|
||||
from src.schemas import CustomBaseModel
|
||||
from pydantic import Field
|
||||
|
||||
|
||||
class OIDCUser(CustomBaseModel):
|
||||
first_name: str
|
||||
last_name: str
|
||||
email: str
|
||||
oidc_id: str
|
||||
|
||||
|
||||
class UserResponse(CustomBaseModel):
|
||||
first_name: str
|
||||
last_name: str
|
||||
email: str
|
||||
|
||||
|
||||
class OrgResponse(CustomBaseModel):
|
||||
org_id: int
|
||||
name: str
|
||||
is_admin: bool
|
||||
Loading…
Add table
Add a link
Reference in a new issue