pf_Table Count: 72
Last Updated: 2026-01-10
Overview
Platform Foundation provides the core infrastructure for multi-tenancy, authentication, authorization, notifications, documents, and shared services across all modules.Table Categories
1. Core Multi-Tenancy (4 tables)
Key Relationships:
2. Authorization & Roles (7 tables)
Usage Pattern:
3. Notifications (6 tables)
Key Fields:
notification_type: ‘email’, ‘in_app’, ‘push’, ‘sms’priority: ‘low’, ‘normal’, ‘high’, ‘urgent’status: ‘pending’, ‘sent’, ‘delivered’, ‘failed’
4. Documents & Signatures (6 tables)
Storage Integration:
5. AI Integration (3 tables)
Usage Tracking:
- Tracks tokens used per conversation
- Cost allocation by organization
- Model performance metrics
6. Wizards & Guided Workflows (5 tables)
7. Dashboards (4 tables)
8. Reports (6 tables)
9. Custom Objects (8 tables)
10. Field Configuration (6 tables)
11. Picklists (2 tables)
Usage:
12. Integrations (6 tables)
13. Settings & Audit (5 tables)
14. Tasks & Invitations (3 tables)
Common Query Patterns
Get User’s Organizations
Check User Permissions
Get Active Notifications
RLS Policies
All PF tables have RLS enabled with policies based on:organization_idfor tenant isolationuser_idfor personal data- Role-based access via
pf_user_has_org_access()helper function
Module Settings
pf_module_settings contains 25 columns for platform configuration: