Add tenant-aware user-engine behavior

This commit is contained in:
tegwick 2026-05-22 21:28:40 +02:00
parent c1b02b8bba
commit 2f9272f39d
8 changed files with 533 additions and 20 deletions

View file

@ -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",

View file

@ -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