Skip to main content
Generated by npm run db:docs:generate — DO NOT EDIT BY HAND. Change the schema via a migration, then regenerate.
Core: lo_ · Tables: 29 · Source generated: 2026-06-10T02:55:32.169Z

Entity relationships

Tables

lo_accountability_chart

RLS: ✅ enabled (5 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_accountability_chart_delete (DELETE)
  • lo_accountability_chart_insert (INSERT)
  • lo_accountability_chart_org_access (SELECT)
  • lo_accountability_chart_select (SELECT)
  • lo_accountability_chart_update (UPDATE)

lo_assessment_recipients

RLS: ✅ enabled (4 policies) Foreign keys:
  • organization_idpf_organizations(id)
  • recipient_idpf_profiles(id)
  • schedule_idlo_assessment_schedules(id)
Policies:
  • lo_assessment_recipients_delete (DELETE)
  • lo_assessment_recipients_insert (INSERT)
  • lo_assessment_recipients_select (SELECT)
  • lo_assessment_recipients_update (UPDATE)

lo_assessment_responses

RLS: ✅ enabled (4 policies) Foreign keys:
  • organization_idpf_organizations(id)
  • respondent_idpf_profiles(id)
  • schedule_idlo_assessment_schedules(id)
Policies:
  • lo_assessment_responses_delete (DELETE)
  • lo_assessment_responses_insert (INSERT)
  • lo_assessment_responses_select (SELECT)
  • lo_assessment_responses_update (UPDATE)

lo_assessment_schedules

RLS: ✅ enabled (4 policies) Foreign keys:
  • assessment_idlo_assessments(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_assessment_schedules_delete (DELETE)
  • lo_assessment_schedules_insert (INSERT)
  • lo_assessment_schedules_select (SELECT)
  • lo_assessment_schedules_update (UPDATE)

lo_assessments

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • form_idfw_forms(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_assessments_delete (DELETE)
  • lo_assessments_insert (INSERT)
  • lo_assessments_select (SELECT)
  • lo_assessments_update (UPDATE)

lo_feedback

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • one_on_one_idlo_one_on_ones(id)
  • organization_idpf_organizations(id)
  • provider_idpf_profiles(id)
  • recipient_idpf_profiles(id)
  • role_idlo_role_definitions(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_feedback_delete (DELETE)
  • lo_feedback_insert (INSERT)
  • lo_feedback_select (SELECT)
  • lo_feedback_update (UPDATE)

lo_gwc_assessments

RLS: ✅ enabled (5 policies) Foreign keys:
  • assessed_bypf_profiles(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • seat_assignment_idlo_seat_assignments(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_gwc_assessments_delete (DELETE)
  • lo_gwc_assessments_insert (INSERT)
  • lo_gwc_assessments_org_access (SELECT)
  • lo_gwc_assessments_select (SELECT)
  • lo_gwc_assessments_update (UPDATE)

lo_issue_discussions

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • issue_idlo_issues(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_issue_discussions_delete (DELETE)
  • lo_issue_discussions_insert (INSERT)
  • lo_issue_discussions_select (SELECT)
  • lo_issue_discussions_update (UPDATE)

lo_issues

RLS: ✅ enabled (4 policies) Foreign keys:
  • assigned_bypf_profiles(id)
  • assigned_topf_profiles(id)
  • created_bypf_profiles(id)
  • meeting_idlo_meetings(id)
  • organization_idpf_organizations(id)
  • resolved_bypf_profiles(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_issues_delete (DELETE)
  • lo_issues_insert (INSERT)
  • lo_issues_select (SELECT)
  • lo_issues_update (UPDATE)

lo_knowledge_article_versions

RLS: ✅ enabled (2 policies) Foreign keys:
  • article_idlo_knowledge_articles(id)
  • created_bypf_profiles(id)
  • updated_byusers(id)
Policies:
  • lo_knowledge_article_versions_insert (INSERT)
  • lo_knowledge_article_versions_select (SELECT)

lo_knowledge_articles

RLS: ✅ enabled (4 policies) Foreign keys:
  • category_idlo_knowledge_categories(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_knowledge_articles_delete (DELETE)
  • lo_knowledge_articles_insert (INSERT)
  • lo_knowledge_articles_select (SELECT)
  • lo_knowledge_articles_update (UPDATE)

lo_knowledge_categories

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • parent_idlo_knowledge_categories(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_knowledge_categories_delete (DELETE)
  • lo_knowledge_categories_insert (INSERT)
  • lo_knowledge_categories_select (SELECT)
  • lo_knowledge_categories_update (UPDATE)

lo_meeting_action_items

RLS: ✅ enabled (4 policies) Foreign keys:
  • assigned_topf_profiles(id)
  • created_bypf_profiles(id)
  • meeting_idlo_meetings(id)
  • organization_idpf_organizations(id)
  • todo_idlo_todos(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_meeting_action_items_delete (DELETE)
  • lo_meeting_action_items_insert (INSERT)
  • lo_meeting_action_items_select (SELECT)
  • lo_meeting_action_items_update (UPDATE)

lo_meeting_attendees

RLS: ✅ enabled (4 policies) Foreign keys:
  • attendee_idpf_profiles(id)
  • created_bypf_profiles(id)
  • meeting_idlo_meetings(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_meeting_attendees_delete (DELETE)
  • lo_meeting_attendees_insert (INSERT)
  • lo_meeting_attendees_select (SELECT)
  • lo_meeting_attendees_update (UPDATE)

lo_meetings

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_meetings_delete (DELETE)
  • lo_meetings_insert (INSERT)
  • lo_meetings_select (SELECT)
  • lo_meetings_update (UPDATE)

lo_module_settings

RLS: ✅ enabled (5 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_module_settings_delete (DELETE)
  • lo_module_settings_insert (INSERT)
  • lo_module_settings_org_access (SELECT)
  • lo_module_settings_select (SELECT)
  • lo_module_settings_update (UPDATE)

lo_one_on_ones

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • employee_idpf_profiles(id)
  • manager_idpf_profiles(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_one_on_ones_delete (DELETE)
  • lo_one_on_ones_insert (INSERT)
  • lo_one_on_ones_select (SELECT)
  • lo_one_on_ones_update (UPDATE)

lo_quarterly_rocks

RLS: ✅ enabled (6 policies) Foreign keys:
  • created_bypf_profiles(id)
  • executive_sponsor_idpf_profiles(id)
  • organization_idpf_organizations(id)
  • owner_idpf_profiles(id)
  • reviewed_bypf_profiles(id)
  • strategic_goal_idlo_strategic_goals(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_quarterly_rocks_delete (DELETE)
  • lo_quarterly_rocks_insert (INSERT)
  • lo_quarterly_rocks_org_view (SELECT)
  • lo_quarterly_rocks_select (SELECT)
  • lo_quarterly_rocks_update (UPDATE)
  • lo_rocks_org_access (SELECT)

lo_rock_assignments

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • profile_idpf_profiles(id)
  • rock_idlo_quarterly_rocks(id)
  • updated_byusers(id)
Policies:
  • lo_rock_assignments_delete (DELETE)
  • lo_rock_assignments_insert (INSERT)
  • lo_rock_assignments_select (SELECT)
  • lo_rock_assignments_update (UPDATE)

lo_rock_milestones

RLS: ✅ enabled (5 policies) Foreign keys:
  • assignee_idpf_profiles(id)
  • created_bypf_profiles(id)
  • depends_on_action_idlo_rock_milestones(id)
  • organization_idpf_organizations(id)
  • rock_idlo_quarterly_rocks(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_rock_milestones_access (SELECT)
  • lo_rock_milestones_delete (DELETE)
  • lo_rock_milestones_insert (INSERT)
  • lo_rock_milestones_select (SELECT)
  • lo_rock_milestones_update (UPDATE)

lo_role_definitions

RLS: ✅ enabled (5 policies) Foreign keys:
  • accountability_chart_idlo_accountability_chart(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • parent_role_idlo_role_definitions(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_role_definitions_delete (DELETE)
  • lo_role_definitions_insert (INSERT)
  • lo_role_definitions_org_access (SELECT)
  • lo_role_definitions_select (SELECT)
  • lo_role_definitions_update (UPDATE)

lo_scorecard_metrics

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • role_idlo_role_definitions(id)
  • strategic_goal_idlo_strategic_goals(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_scorecard_metrics_delete (DELETE)
  • lo_scorecard_metrics_insert (INSERT)
  • lo_scorecard_metrics_select (SELECT)
  • lo_scorecard_metrics_update (UPDATE)

lo_scorecard_values

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • metric_idlo_scorecard_metrics(id)
  • organization_idpf_organizations(id)
  • scorecard_idlo_scorecards(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_scorecard_values_delete (DELETE)
  • lo_scorecard_values_insert (INSERT)
  • lo_scorecard_values_select (SELECT)
  • lo_scorecard_values_update (UPDATE)

lo_scorecards

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • role_idlo_role_definitions(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_scorecards_delete (DELETE)
  • lo_scorecards_insert (INSERT)
  • lo_scorecards_select (SELECT)
  • lo_scorecards_update (UPDATE)

lo_seat_assignments

RLS: ✅ enabled (5 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • profile_idpf_profiles(id)
  • role_idlo_role_definitions(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_seat_assignments_delete (DELETE)
  • lo_seat_assignments_insert (INSERT)
  • lo_seat_assignments_org_access (SELECT)
  • lo_seat_assignments_select (SELECT)
  • lo_seat_assignments_update (UPDATE)

lo_strategic_goals

RLS: ✅ enabled (5 policies) Foreign keys:
  • created_bypf_profiles(id)
  • executive_sponsor_idpf_profiles(id)
  • organization_idpf_organizations(id)
  • owner_idpf_profiles(id)
  • updated_bypf_profiles(id)
  • vision_document_idlo_vision_documents(id)
Policies:
  • lo_strategic_goals_delete (DELETE)
  • lo_strategic_goals_insert (INSERT)
  • lo_strategic_goals_org_access (SELECT)
  • lo_strategic_goals_select (SELECT)
  • lo_strategic_goals_update (UPDATE)

lo_todo_comments

@deprecated Use pf_task_comments instead. This table is read-only and retained for backward compatibility. See PF-29. RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • todo_idlo_todos(id)
Policies:
  • lo_todo_comments_delete (DELETE)
  • lo_todo_comments_insert (INSERT)
  • lo_todo_comments_select (SELECT)
  • lo_todo_comments_update (UPDATE)

lo_todos

@deprecated Use pf_tasks instead. This table is read-only and retained for backward compatibility. See PF-29. RLS: ✅ enabled (4 policies) Foreign keys:
  • assigned_bypf_profiles(id)
  • assigned_topf_profiles(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • rock_idlo_quarterly_rocks(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_todos_delete (DELETE)
  • lo_todos_insert (INSERT)
  • lo_todos_select (SELECT)
  • lo_todos_update (UPDATE)

lo_vision_documents

RLS: ✅ enabled (6 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • lo_vision_docs_org_access (SELECT)
  • lo_vision_documents_delete (DELETE)
  • lo_vision_documents_insert (INSERT)
  • lo_vision_documents_org_view (SELECT)
  • lo_vision_documents_select (SELECT)
  • lo_vision_documents_update (UPDATE)