Add tenant-aware user-engine behavior
This commit is contained in:
parent
c1b02b8bba
commit
2f9272f39d
8 changed files with 533 additions and 20 deletions
|
|
@ -23,6 +23,7 @@ from user_engine.domain.models import (
|
|||
ProfileValue,
|
||||
ProjectionType,
|
||||
Sensitivity,
|
||||
TenantAccount,
|
||||
User,
|
||||
Visibility,
|
||||
new_id,
|
||||
|
|
@ -52,6 +53,7 @@ __all__ = [
|
|||
"ProfileValue",
|
||||
"ProjectionType",
|
||||
"Sensitivity",
|
||||
"TenantAccount",
|
||||
"User",
|
||||
"Visibility",
|
||||
"new_id",
|
||||
|
|
|
|||
|
|
@ -137,6 +137,14 @@ class Account:
|
|||
created_at: datetime = field(default_factory=utc_now)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class TenantAccount:
|
||||
user_id: str
|
||||
tenant: str
|
||||
status: AccountStatus = AccountStatus.ACTIVE
|
||||
created_at: datetime = field(default_factory=utc_now)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class ExternalIdentity:
|
||||
identity_id: str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue