email wiring
This commit is contained in:
parent
ee23b71f0f
commit
42cd937f0a
12 changed files with 494 additions and 45 deletions
|
|
@ -57,6 +57,7 @@ class OrgMemberCreate(BaseModel):
|
|||
last_name: str = Field(min_length=1, max_length=80)
|
||||
email: EmailStr
|
||||
invitation_email: EmailStr | None = None
|
||||
section_id: UUID | None = None
|
||||
org_role: Literal["user", "admin"] = "user"
|
||||
send_invitation: bool = True
|
||||
force_password_change: bool = False
|
||||
|
|
@ -73,7 +74,21 @@ class OrgMemberRead(BaseModel):
|
|||
member_status: str
|
||||
must_change_password: bool = False
|
||||
is_domain_owner: bool = False
|
||||
groups: list[str] = Field(default_factory=list)
|
||||
section_id: UUID | None = None
|
||||
section_name: str | None = None
|
||||
invitation_sent: bool = False
|
||||
created_at: datetime
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class OrgSectionCreate(BaseModel):
|
||||
name: str = Field(min_length=1, max_length=120)
|
||||
|
||||
|
||||
class OrgSectionRead(BaseModel):
|
||||
id: UUID
|
||||
name: str
|
||||
created_at: datetime
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue