What problem does it solve?
This Skill audits multi-tenant data isolation, checking for tenant model fit, missing or unenforced tenant scoping, and cross-tenant leak risks.
Core Features & Use Cases
- Tenant Model Fit: Assess whether the tenant model (shared rows vs schema vs database) aligns with the isolation requirements.
- Tenant Scoping: Verify that tenant-owned tables have appropriate scoping columns and constraints.
- Indexing and Keys: Check that indexes and primary keys lead with
tenant_id for proper pruning.
- Cross-Tenant Constraints: Ensure uniqueness or foreign key constraints do not allow cross-tenant data leakage.
- Use Case: For a company with a multi-tenant database, this Skill can identify potential data leaks and performance issues, helping maintain data integrity and system performance.
Quick Start
Run the db-multitenancy skill to audit your multi-tenant database schema.