<!-- Framework scope: Laravel only. Uses Eloquent model conventions,
Laravel Context, and Artisan traits — concepts not portable across
frameworks. Other stacks need a stack-native multi-tenancy skill. -->
multi-tenancy
When to use
Use this skill when working with tenant-specific data, customer database connections, or any code that touches the dual-database architecture.
Two tenancy modes exist: database-per-tenant (this body) and shared-schema
(tenant_id in every tenant table: child foreign keys carry tenant_id, the
parent is UNIQUE (tenant_id, id)) — the full key rules are in