Module Map
The SecurAtlas database is organized into domain-specific modules. Each module owns a set of tables, views, and RPC functions.Tenants & Partners
12+ tables
Controls
6+ tables
Frameworks
4+ tables
Evidence
8+ tables
Integrations
10+ tables
Policies
5+ tables
Assessments
6+ tables
Billing
5+ tables
Risk
4+ tables
Tenants and Partners
The multi-tenancy foundation. MSP partners manage multiple tenants; solo organizations are single-tenant.| Table | Purpose |
|---|---|
accounts | MakerKit base account table |
tenants | Extended tenant profile (industry, size, settings) |
partners | MSP partner organizations |
tenant_memberships | User-to-tenant role assignments |
partner_memberships | User-to-partner role assignments |
partner_tenant_links | Which partner manages which tenant |
profiles | User profiles linked to auth.users |
invitations | Pending invites to tenants/partners |
Controls
270+ unified controls mapped across multiple compliance frameworks.Frameworks
Six or more compliance frameworks (SOC 2, ISO 27001, NIST CSF, HIPAA, GDPR, CIS Controls).| Table | Purpose |
|---|---|
compliance_frameworks | Framework definitions |
framework_requirements | Individual requirements per framework |
control_framework_map | Links unified_controls to requirements |
tenant_framework_selections | Which frameworks a tenant has enabled |
v_framework_readiness view computes per-framework compliance percentage for a tenant.
Evidence
Evidence items are uploaded manually or auto-collected from integrations.Integrations
Provider-agnostic integration engine for pulling data from cloud services.| Table | Purpose |
|---|---|
integration_providers | Provider registry (Azure AD, Google Workspace, AWS) |
integration_provider_display | UI metadata (icons, descriptions) |
integration_connections | OAuth connections per tenant |
integration_entities | Synced objects (users, groups, policies) |
integration_findings | Detected issues from synced data |
integration_sync_jobs | Job queue with status tracking |
integration_sync_log | Detailed sync execution logs |
The
v_integration_hub view aggregates connection status, entity counts, and finding counts per provider per tenant.Policies
Policy document management with version control and employee acknowledgment tracking.Assessments
Self-assessment questionnaires that can convert into full tenant onboarding.| Table | Purpose |
|---|---|
assessment_templates | Questionnaire templates |
assessment_template_questions | Questions within templates |
assessments | In-progress or completed assessments |
assessment_responses | Individual question answers |
assessment_results | Computed scores and recommendations |
Billing
Stripe-backed subscription management for tenants and partners.v_partner_billing view summarizes billing status across all tenants managed by a partner.
Risk
Risk scoring and trending over time.| Table | Purpose |
|---|---|
tenant_risk_snapshots | Point-in-time risk scores |
v_tenant_top_risk_drivers | View: top factors driving risk |
risk_categories | Category definitions for breakdown |
Key Views Summary
| View | Purpose |
|---|---|
v_controls_overview | Controls + framework mappings + evidence counts |
v_framework_readiness | Per-framework compliance percentage |
v_partner_billing | Partner-level billing aggregation |
v_integration_hub | Integration status dashboard |
v_tenant_top_risk_drivers | Top risk factors per tenant |