Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt

Use this file to discover all available pages before exploring further.

Last Updated: 2026-01-11
Total Tables: 433
Modules: 9

Overview

This directory contains Entity Relationship Diagrams (ERDs) for all Encore Health OS Platform database modules. Each diagram shows table relationships, foreign keys, and RLS policy coverage.

High-Level Architecture

Module ERDs

ModulePrefixTablesERD DocumentDescription
Platform Foundationpf_73ViewCore tenancy, auth, organizations
Human Resourceshr_75ViewEmployees, positions, leave, payroll
Finance & Accountingfa_45ViewGL, invoices, payments, budgets
Forms & Workflowfw_54ViewForms, submissions, automations
Recovery Housingrh_51ViewResidents, beds, episodes, billing
Facilities Managementfm_22ViewAssets, work orders, inventory
Governance & Riskgr_49ViewPolicies, audits, compliance
Leadership OSlo_29ViewMeetings, goals, KPIs
IT Service Managementit_35ViewTickets, SLAs, knowledge base

Cross-Module Dependencies

All modules depend on Platform Foundation (PF) for:
  • Organization context (pf_organizations)
  • User identity (pf_profiles, pf_user_roles)
  • Site/location (pf_sites)
  • Audit tracking (pf_audit_logs)

RLS Policy Coverage Summary

ModuleTablesFull CoveragePartialSpecial
PF736832
HR757041
FA454320
FW544842
RH514920
FM222110
GR494720
LO292810
IT353410
Total433408205
Legend:
  • Full Coverage: 4 policies (SELECT, INSERT, UPDATE, DELETE)
  • Partial: Intentional < 4 policies (audit/version tables)
  • Special: Custom access patterns (deny-all, public read, etc.)