Last Updated: 2025-12-31 This section documents the data models for each core to ensure proper integration patterns are followed.
LO Core: Leadership Operating System Data Model
Status: ✅ Implemented (LO-01 through LO-09)Tables
Key Design Decisions
-
User References:
lo_seat_assignments.profile_idreferencespf_profiles.id(NOThr_employees.id)- Reason: Not all users in seats are employees; allows external board members, advisors, etc.
-
RLS Pattern: All tables use
lo_has_org_access()SECURITY DEFINER function- Prevents infinite recursion when checking
pf_user_role_assignments
- Prevents infinite recursion when checking
-
Vision-to-Role Alignment:
lo_role_definitions.vision_alignmentandstrategic_goal_ids[]- Links roles to strategic goals for accountability
-
Validation Triggers: Use triggers instead of CHECK constraints
lo_validate_meeting()- meeting_type and status validationlo_validate_meeting_attendee()- attendee status validationlo_validate_issue()- issue priority and status validationlo_validate_one_on_one()- 1-on-1 status validationlo_validate_feedback()- feedback type and GWC category validationlo_validate_assessment()- assessment type validationlo_validate_assessment_schedule()- schedule status and scope validationlo_validate_assessment_response()- response status validation
RLS Security Functions
Integration Points
Consumes:pf_profiles- User identity and display namespf_organizations- Multi-tenant contextpf_user_role_assignments- RBAC (via SECURITY DEFINER function)fw_forms- Assessment forms (LO-09)
rock_completed- When rock is completed ✅todo_created- When task is created ✅todo_completed- When task is completed ✅todo_overdue- When task becomes overdue ✅scorecard_updated- When scorecard is updated ✅metric_threshold_breached- When metric breaches threshold ✅meeting_scheduled- When meeting is scheduled ✅meeting_completed- When meeting is completed ✅action_item_created- When action item created ✅issue_identified- When issue is identified ✅issue_resolved- When issue is resolved ✅assessment_distributed- When assessment is distributed ✅assessment_completed- When assessment is completed ✅
- LO-03: Rocks assigned to roles
- LO-04: To-dos from action items
- LO-05: Scorecards owned by roles
- LO-06: Meetings with agenda items
- LO-07: Issues linked to meetings
- LO-08: Feedback linked to roles
one_on_one_scheduled- When 1-on-1 is scheduledfeedback_submitted- When feedback is providedvision_updated- When vision is updatedstrategic_goal_created- When strategic goal is createdrock_created- When rock is createdrole_assigned- When person assigned to roleaccountability_chart_updated- When accountability chart structure changesknowledge_article_created- When knowledge article is createdprocess_updated- When process is updated
Related Documentation
- Platform Integration Layers - Platform layer integrations
- Event Contracts - Event-based integrations
- API Contracts - API-based integrations
- Cross-Core Integrations - Integration matrix
Next Review: 2026-03-03 (Quarterly)