Source code for beaker.data_model.organization
from datetime import datetime
from typing import Optional
from .account import Account
from .base import BaseModel, StrEnum
__all__ = ["Organization", "OrganizationRole", "OrganizationMember"]
[docs]class Organization(BaseModel):
id: str
name: str
description: str
created: datetime
display_name: str
pronouns: Optional[str] = None
[docs]class OrganizationMember(BaseModel):
role: OrganizationRole
organization: Organization
user: Account