feat: get org response mirrors get user orgs structure
All checks were successful
ci / lint_and_test (push) Successful in 13s
All checks were successful
ci / lint_and_test (push) Successful in 13s
This commit is contained in:
parent
939abaefe9
commit
3b82025abb
5 changed files with 52 additions and 46 deletions
|
|
@ -5,27 +5,10 @@ Pydantic models for the user module
|
|||
from typing import Optional
|
||||
from pydantic import EmailStr
|
||||
|
||||
from src.organisation.constants import Status
|
||||
from src.organisation.schemas import Questionnaire
|
||||
from src.organisation.schemas import OrgSchema
|
||||
from src.schemas import CustomBaseModel, OrgIDMixin
|
||||
|
||||
|
||||
class ContactModel(CustomBaseModel):
|
||||
id: int
|
||||
email: Optional[EmailStr] = None
|
||||
|
||||
|
||||
class OrgSchema(OrgIDMixin):
|
||||
name: str
|
||||
status: Status
|
||||
root_user_email: EmailStr
|
||||
intake_questionnaire: Optional[Questionnaire] = None
|
||||
|
||||
billing_contact: ContactModel
|
||||
owner_contact: ContactModel
|
||||
security_contact: ContactModel
|
||||
|
||||
|
||||
class OIDCClaims(CustomBaseModel):
|
||||
exp: int
|
||||
iat: int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue