Users can now be invited to an org by email. "Email" for now is "print to stdout" Resolves #12
This commit is contained in:
parent
1012947b67
commit
62c43ce883
5 changed files with 173 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ Pydantic models for the user module
|
|||
"""
|
||||
|
||||
from typing import Optional
|
||||
from pydantic import Field
|
||||
from pydantic import Field, EmailStr
|
||||
|
||||
from src.schemas import CustomBaseModel
|
||||
|
||||
|
|
@ -55,3 +55,12 @@ class UserResponse(CustomBaseModel):
|
|||
class OrgResponse(CustomBaseModel):
|
||||
org_id: int
|
||||
name: str
|
||||
|
||||
|
||||
class UserPostInvitationRequest(CustomBaseModel):
|
||||
organisation_id: int
|
||||
user_email: EmailStr
|
||||
|
||||
|
||||
class UserPostInvitationAcceptRequest(CustomBaseModel):
|
||||
jwt: str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue