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: rh_ · Tables: 53 · Source generated: 2026-06-10T02:55:32.169Z

Entity relationships

Tables

rh_alumni

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • resident_profile_idrh_resident_profiles(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_alumni_delete (DELETE)
  • rh_alumni_insert (INSERT)
  • rh_alumni_select (SELECT)
  • rh_alumni_update (UPDATE)

rh_alumni_engagement

RLS: ✅ enabled (4 policies) Foreign keys:
  • alumni_idrh_alumni(id)
  • created_bypf_profiles(id)
  • mentee_episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_alumni_engagement_delete (DELETE)
  • rh_alumni_engagement_insert (INSERT)
  • rh_alumni_engagement_select (SELECT)
  • rh_alumni_engagement_update (UPDATE)

rh_attendance_records

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • excused_approved_bypf_profiles(id)
  • make_up_session_idrh_schedule_instances(id)
  • organization_idpf_organizations(id)
  • schedule_instance_idrh_schedule_instances(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • attendance_records_delete (DELETE)
  • attendance_records_insert (INSERT)
  • attendance_records_select (SELECT)
  • attendance_records_update (UPDATE)

rh_audit_findings

RLS: ✅ enabled (4 policies) Foreign keys:
  • audit_schedule_idrh_audit_schedules(id)
  • corrective_action_verified_bypf_profiles(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_audit_findings_delete (DELETE)
  • rh_audit_findings_insert (INSERT)
  • rh_audit_findings_select (SELECT)
  • rh_audit_findings_update (UPDATE)

rh_audit_schedules

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_audit_schedules_delete (DELETE)
  • rh_audit_schedules_insert (INSERT)
  • rh_audit_schedules_select (SELECT)
  • rh_audit_schedules_update (UPDATE)

rh_beds

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_beds_delete (DELETE)
  • rh_beds_insert (INSERT)
  • rh_beds_select (SELECT)
  • rh_beds_update (UPDATE)

rh_census_snapshots

RLS: ✅ enabled (4 policies) Foreign keys:
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • site_idpf_sites(id)
Policies:
  • rh_census_snapshots_delete (DELETE)
  • rh_census_snapshots_insert (INSERT)
  • rh_census_snapshots_select (SELECT)
  • rh_census_snapshots_update (UPDATE)

rh_chore_assignments

RLS: ✅ enabled (4 policies) Foreign keys:
  • completed_bypf_profiles(id)
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • chore_assignments_delete (DELETE)
  • chore_assignments_insert (INSERT)
  • chore_assignments_select (SELECT)
  • chore_assignments_update (UPDATE)

rh_compliance_checklists

RLS: ✅ enabled (4 policies) Foreign keys:
  • completed_bypf_profiles(id)
  • compliance_requirement_idrh_compliance_requirements(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
  • verified_bypf_profiles(id)
Policies:
  • rh_compliance_checklists_delete (DELETE)
  • rh_compliance_checklists_insert (INSERT)
  • rh_compliance_checklists_select (SELECT)
  • rh_compliance_checklists_update (UPDATE)

rh_compliance_requirements

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_compliance_requirements_delete (DELETE)
  • rh_compliance_requirements_insert (INSERT)
  • rh_compliance_requirements_select (SELECT)
  • rh_compliance_requirements_update (UPDATE)

rh_curfew_checks

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
  • verified_bypf_profiles(id)
Policies:
  • curfew_checks_delete (DELETE)
  • curfew_checks_insert (INSERT)
  • curfew_checks_select (SELECT)
  • curfew_checks_update (UPDATE)

rh_discharge_checklists

RLS: ✅ enabled (4 policies) Foreign keys:
  • completed_bypf_profiles(id)
  • created_bypf_profiles(id)
  • discharge_plan_idrh_discharge_plans(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_discharge_checklists_delete (DELETE)
  • rh_discharge_checklists_insert (INSERT)
  • rh_discharge_checklists_select (SELECT)
  • rh_discharge_checklists_update (UPDATE)

rh_discharge_documents

RLS: ✅ enabled (4 policies) Foreign keys:
  • completed_bypf_profiles(id)
  • created_bypf_profiles(id)
  • discharge_plan_idrh_discharge_plans(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_discharge_documents_delete (DELETE)
  • rh_discharge_documents_insert (INSERT)
  • rh_discharge_documents_select (SELECT)
  • rh_discharge_documents_update (UPDATE)

rh_discharge_plans

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • planning_initiated_bypf_profiles(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_discharge_plans_delete (DELETE)
  • rh_discharge_plans_insert (INSERT)
  • rh_discharge_plans_select (SELECT)
  • rh_discharge_plans_update (UPDATE)

rh_eligibility_checklists

RLS: ✅ enabled (4 policies) Foreign keys:
  • background_check_verified_bypf_profiles(id)
  • commit_to_recovery_verified_bypf_profiles(id)
  • created_bypf_profiles(id)
  • decision_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • medication_compliance_verified_bypf_profiles(id)
  • no_arson_history_verified_bypf_profiles(id)
  • no_sex_offense_verified_bypf_profiles(id)
  • no_violence_history_verified_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
  • willing_to_follow_rules_verified_bypf_profiles(id)
Policies:
  • rh_eligibility_checklists_delete (DELETE)
  • rh_eligibility_checklists_insert (INSERT)
  • rh_eligibility_checklists_select (SELECT)
  • rh_eligibility_checklists_update (UPDATE)

rh_episode_payment_status

RLS: ✅ enabled (4 policies) Foreign keys:
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
Policies:
  • rh_episode_payment_status_delete (DELETE)
  • rh_episode_payment_status_insert (INSERT)
  • rh_episode_payment_status_select (SELECT)
  • rh_episode_payment_status_update (UPDATE)

rh_episode_phases

RLS: ✅ enabled (7 policies) Foreign keys:
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • program_phase_idrh_program_phases(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_episode_phases_delete (DELETE)
  • rh_episode_phases_insert (INSERT)
  • rh_episode_phases_org_delete (DELETE)
  • rh_episode_phases_org_insert (INSERT)
  • rh_episode_phases_org_update (UPDATE)
  • rh_episode_phases_select (SELECT)
  • rh_episode_phases_update (UPDATE)

rh_episode_programs

RLS: ✅ enabled (7 policies) Foreign keys:
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • program_idrh_programs(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_episode_programs_delete (DELETE)
  • rh_episode_programs_insert (INSERT)
  • rh_episode_programs_org_delete (DELETE)
  • rh_episode_programs_org_insert (INSERT)
  • rh_episode_programs_org_update (UPDATE)
  • rh_episode_programs_select (SELECT)
  • rh_episode_programs_update (UPDATE)

rh_episodes

RLS: ✅ enabled (4 policies) Foreign keys:
  • bed_idrh_beds(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • resident_profile_idrh_resident_profiles(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_episodes_delete (DELETE)
  • rh_episodes_insert (INSERT)
  • rh_episodes_select (SELECT)
  • rh_episodes_update (UPDATE)

rh_follow_up_contacts

RLS: ✅ enabled (4 policies) Foreign keys:
  • contacted_bypf_profiles(id)
  • created_bypf_profiles(id)
  • follow_up_schedule_idrh_follow_up_schedules(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_follow_up_contacts_delete (DELETE)
  • rh_follow_up_contacts_insert (INSERT)
  • rh_follow_up_contacts_select (SELECT)
  • rh_follow_up_contacts_update (UPDATE)

rh_follow_up_schedules

RLS: ✅ enabled (4 policies) Foreign keys:
  • completed_bypf_profiles(id)
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_follow_up_schedules_delete (DELETE)
  • rh_follow_up_schedules_insert (INSERT)
  • rh_follow_up_schedules_select (SELECT)
  • rh_follow_up_schedules_update (UPDATE)

rh_grievance_attachments

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_byusers(id)
  • grievance_idrh_grievances(id)
  • organization_idpf_organizations(id)
  • updated_byusers(id)
Policies:
  • rh_grievance_attachments_row_delete (DELETE)
  • rh_grievance_attachments_row_insert (INSERT)
  • rh_grievance_attachments_row_select (SELECT)
  • rh_grievance_attachments_row_update (UPDATE)

rh_grievances

RH-09: Resident grievance records with state machine (received->under_review->resolved|escalated->closed). RLS: ✅ enabled (4 policies) Foreign keys:
  • assigned_topf_profiles(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
Policies:
  • rh_grievances_delete (DELETE)
  • rh_grievances_insert (INSERT)
  • rh_grievances_select (SELECT)
  • rh_grievances_update (UPDATE)

rh_med_storage_audits

RLS: ✅ enabled (4 policies) Foreign keys:
  • auditor_idpf_profiles(id)
  • created_bypf_profiles(id)
  • follow_up_audit_idrh_med_storage_audits(id)
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • med_audits_delete (DELETE)
  • med_audits_insert (INSERT)
  • med_audits_select (SELECT)
  • med_audits_update (UPDATE)

rh_milestone_completions

RLS: ✅ enabled (6 policies) Foreign keys:
  • completion_evidence_document_idpf_documents(id)
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • milestone_idrh_phase_milestones(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
  • verified_bypf_profiles(id)
Policies:
  • rh_milestone_completions_delete (DELETE)
  • rh_milestone_completions_insert (INSERT)
  • rh_milestone_completions_org_delete (DELETE)
  • rh_milestone_completions_org_update (UPDATE)
  • rh_milestone_completions_select (SELECT)
  • rh_milestone_completions_update (UPDATE)

rh_module_settings

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_module_settings_delete (DELETE)
  • rh_module_settings_insert (INSERT)
  • rh_module_settings_select (SELECT)
  • rh_module_settings_update (UPDATE)

rh_outcome_assessments

RLS: ✅ enabled (4 policies) Foreign keys:
  • assessment_form_idfw_forms(id)
  • completed_bypf_profiles(id)
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • outcome_checkpoint_idrh_outcome_checkpoints(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_outcome_assessments_delete (DELETE)
  • rh_outcome_assessments_insert (INSERT)
  • rh_outcome_assessments_select (SELECT)
  • rh_outcome_assessments_update (UPDATE)

rh_outcome_checkpoints

RLS: ✅ enabled (4 policies) Foreign keys:
  • assessment_form_idfw_forms(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_outcome_checkpoints_delete (DELETE)
  • rh_outcome_checkpoints_insert (INSERT)
  • rh_outcome_checkpoints_select (SELECT)
  • rh_outcome_checkpoints_update (UPDATE)

rh_outcome_indicators

RLS: ✅ enabled (4 policies) Foreign keys:
  • assessment_form_idfw_forms(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_outcome_indicators_delete (DELETE)
  • rh_outcome_indicators_insert (INSERT)
  • rh_outcome_indicators_select (SELECT)
  • rh_outcome_indicators_update (UPDATE)

rh_outcome_measurements

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • outcome_checkpoint_idrh_outcome_checkpoints(id)
  • outcome_indicator_idrh_outcome_indicators(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_outcome_measurements_delete (DELETE)
  • rh_outcome_measurements_insert (INSERT)
  • rh_outcome_measurements_select (SELECT)
  • rh_outcome_measurements_update (UPDATE)

rh_participation_metrics

RLS: ✅ enabled (4 policies) Foreign keys:
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
Policies:
  • participation_metrics_delete (DELETE)
  • participation_metrics_insert (INSERT)
  • participation_metrics_select (SELECT)
  • participation_metrics_update (UPDATE)

rh_passes

RLS: ✅ enabled (4 policies) Foreign keys:
  • approved_bypf_profiles(id)
  • cancelled_bypf_profiles(id)
  • created_bypf_profiles(id)
  • denied_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • program_idrh_programs(id)
  • requested_bypf_profiles(id)
  • return_verified_bypf_profiles(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • passes_delete (DELETE)
  • passes_insert (INSERT)
  • passes_select (SELECT)
  • passes_update (UPDATE)

rh_phase_milestones

RLS: ✅ enabled (7 policies) Foreign keys:
  • created_bypf_profiles(id)
  • dependency_milestone_idrh_phase_milestones(id)
  • organization_idpf_organizations(id)
  • program_phase_idrh_program_phases(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_phase_milestones_delete (DELETE)
  • rh_phase_milestones_insert (INSERT)
  • rh_phase_milestones_org_delete (DELETE)
  • rh_phase_milestones_org_insert (INSERT)
  • rh_phase_milestones_org_update (UPDATE)
  • rh_phase_milestones_select (SELECT)
  • rh_phase_milestones_update (UPDATE)

rh_phase_privileges

RLS: ✅ enabled (7 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • program_phase_idrh_program_phases(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_phase_privileges_delete (DELETE)
  • rh_phase_privileges_insert (INSERT)
  • rh_phase_privileges_org_delete (DELETE)
  • rh_phase_privileges_org_insert (INSERT)
  • rh_phase_privileges_org_update (UPDATE)
  • rh_phase_privileges_select (SELECT)
  • rh_phase_privileges_update (UPDATE)

rh_program_phases

RLS: ✅ enabled (7 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • program_idrh_programs(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_program_phases_delete (DELETE)
  • rh_program_phases_insert (INSERT)
  • rh_program_phases_org_delete (DELETE)
  • rh_program_phases_org_insert (INSERT)
  • rh_program_phases_org_update (UPDATE)
  • rh_program_phases_select (SELECT)
  • rh_program_phases_update (UPDATE)

rh_programs

RLS: ✅ enabled (7 policies) Foreign keys:
  • assessment_form_idfw_forms(id)
  • created_bypf_profiles(id)
  • exit_form_idfw_forms(id)
  • intake_form_idfw_forms(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_programs_delete (DELETE)
  • rh_programs_insert (INSERT)
  • rh_programs_org_delete (DELETE)
  • rh_programs_org_insert (INSERT)
  • rh_programs_org_update (UPDATE)
  • rh_programs_select (SELECT)
  • rh_programs_update (UPDATE)

rh_referrals

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • discharge_plan_idrh_discharge_plans(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_referrals_delete (DELETE)
  • rh_referrals_insert (INSERT)
  • rh_referrals_select (SELECT)
  • rh_referrals_update (UPDATE)

rh_report_definitions

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_report_definitions_delete (DELETE)
  • rh_report_definitions_insert (INSERT)
  • rh_report_definitions_select (SELECT)
  • rh_report_definitions_update (UPDATE)

rh_residences

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_residences_delete (DELETE)
  • rh_residences_insert (INSERT)
  • rh_residences_select (SELECT)
  • rh_residences_update (UPDATE)

rh_resident_agreements

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • signed_by_residentpf_profiles(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_resident_agreements_delete (DELETE)
  • rh_resident_agreements_insert (INSERT)
  • rh_resident_agreements_select (SELECT)
  • rh_resident_agreements_update (UPDATE)

rh_resident_profiles

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • profile_idpf_profiles(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_resident_profiles_delete (DELETE)
  • rh_resident_profiles_insert (INSERT)
  • rh_resident_profiles_select (SELECT)
  • rh_resident_profiles_update (UPDATE)

rh_schedule_instances

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • program_idrh_programs(id)
  • schedule_template_idrh_schedule_templates(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • schedule_instances_delete (DELETE)
  • schedule_instances_insert (INSERT)
  • schedule_instances_select (SELECT)
  • schedule_instances_update (UPDATE)

rh_schedule_templates

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • program_idrh_programs(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • schedule_templates_delete (DELETE)
  • schedule_templates_insert (INSERT)
  • schedule_templates_select (SELECT)
  • schedule_templates_update (UPDATE)

rh_shift_notes

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_shift_notes_delete (DELETE)
  • rh_shift_notes_insert (INSERT)
  • rh_shift_notes_select (SELECT)
  • rh_shift_notes_update (UPDATE)

rh_significant_event_actions

RLS: ✅ enabled (4 policies) Foreign keys:
  • assigned_topf_profiles(id)
  • completed_bypf_profiles(id)
  • created_bypf_profiles(id)
  • investigation_idrh_significant_event_investigations(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
  • verified_bypf_profiles(id)
Policies:
  • actions_delete (DELETE)
  • actions_insert (INSERT)
  • actions_select (SELECT)
  • actions_update (UPDATE)

rh_significant_event_investigations

RLS: ✅ enabled (4 policies) Foreign keys:
  • assigned_investigator_idpf_profiles(id)
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • significant_event_idrh_significant_events(id)
  • updated_bypf_profiles(id)
Policies:
  • investigations_delete (DELETE)
  • investigations_insert (INSERT)
  • investigations_select (SELECT)
  • investigations_update (UPDATE)

rh_significant_event_types

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • updated_bypf_profiles(id)
Policies:
  • event_types_delete (DELETE)
  • event_types_insert (INSERT)
  • event_types_select (SELECT)
  • event_types_update (UPDATE)

rh_significant_events

RLS: ✅ enabled (4 policies) Foreign keys:
  • closed_bypf_profiles(id)
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • event_type_idrh_significant_event_types(id)
  • organization_idpf_organizations(id)
  • reviewed_bypf_profiles(id)
  • site_idpf_sites(id)
  • submitted_bypf_profiles(id)
  • updated_bypf_profiles(id)
Policies:
  • events_delete (DELETE)
  • events_insert (INSERT)
  • events_select (SELECT)
  • events_update (UPDATE)

rh_staff_assignments

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • residence_idrh_residences(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_staff_assignments_delete (DELETE)
  • rh_staff_assignments_insert (INSERT)
  • rh_staff_assignments_select (SELECT)
  • rh_staff_assignments_update (UPDATE)

rh_staff_trainings

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • rh_staff_trainings_delete (DELETE)
  • rh_staff_trainings_insert (INSERT)
  • rh_staff_trainings_select (SELECT)
  • rh_staff_trainings_update (UPDATE)

rh_transport_requests

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • transport_requests_delete (DELETE)
  • transport_requests_insert (INSERT)
  • transport_requests_select (SELECT)
  • transport_requests_update (UPDATE)

rh_uds_random_schedule

RLS: ✅ enabled (4 policies) Foreign keys:
  • created_bypf_profiles(id)
  • organization_idpf_organizations(id)
  • program_idrh_programs(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • uds_schedule_delete (DELETE)
  • uds_schedule_insert (INSERT)
  • uds_schedule_select (SELECT)
  • uds_schedule_update (UPDATE)

rh_uds_tests

RLS: ✅ enabled (4 policies) Foreign keys:
  • collected_bypf_profiles(id)
  • confirmation_test_idrh_uds_tests(id)
  • created_bypf_profiles(id)
  • episode_idrh_episodes(id)
  • organization_idpf_organizations(id)
  • random_schedule_idrh_uds_random_schedule(id)
  • site_idpf_sites(id)
  • updated_bypf_profiles(id)
Policies:
  • uds_tests_delete (DELETE)
  • uds_tests_insert (INSERT)
  • uds_tests_select (SELECT)
  • uds_tests_update (UPDATE)