Jun 26 MT-1 phase

This commit is contained in:
2026-06-26 16:37:44 -04:00
parent fc39491891
commit 07cf2e5816
9 changed files with 300 additions and 55 deletions
+19
View File
@@ -0,0 +1,19 @@
"""
app/tenancy/context.py
----------------------
Lightweight, detached descriptor for the resolved tenant. Populated by the
resolver while a control-plane session is open, then carried on `g.tenant`
for the lifetime of the request. Holds no live ORM object — safe to use after
the control session closes.
"""
from dataclasses import dataclass
@dataclass(frozen=True)
class TenantContext:
id: int
slug: str
name: str
plan_id: int
db_uri: str