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_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)resident_profile_id→rh_resident_profiles(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_id→rh_alumni(id)created_by→pf_profiles(id)mentee_episode_id→rh_episodes(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)episode_id→rh_episodes(id)excused_approved_by→pf_profiles(id)make_up_session_id→rh_schedule_instances(id)organization_id→pf_organizations(id)schedule_instance_id→rh_schedule_instances(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_id→rh_audit_schedules(id)corrective_action_verified_by→pf_profiles(id)created_by→pf_profiles(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)residence_id→rh_residences(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)residence_id→rh_residences(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_id→pf_organizations(id)residence_id→rh_residences(id)site_id→pf_sites(id)
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_by→pf_profiles(id)created_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)residence_id→rh_residences(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)compliance_requirement_id→rh_compliance_requirements(id)created_by→pf_profiles(id)organization_id→pf_organizations(id)residence_id→rh_residences(id)site_id→pf_sites(id)updated_by→pf_profiles(id)verified_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)residence_id→rh_residences(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)verified_by→pf_profiles(id)
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_by→pf_profiles(id)created_by→pf_profiles(id)discharge_plan_id→rh_discharge_plans(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)created_by→pf_profiles(id)discharge_plan_id→rh_discharge_plans(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)planning_initiated_by→pf_profiles(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)commit_to_recovery_verified_by→pf_profiles(id)created_by→pf_profiles(id)decision_by→pf_profiles(id)episode_id→rh_episodes(id)medication_compliance_verified_by→pf_profiles(id)no_arson_history_verified_by→pf_profiles(id)no_sex_offense_verified_by→pf_profiles(id)no_violence_history_verified_by→pf_profiles(id)organization_id→pf_organizations(id)updated_by→pf_profiles(id)willing_to_follow_rules_verified_by→pf_profiles(id)
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_id→rh_episodes(id)organization_id→pf_organizations(id)
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_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)program_phase_id→rh_program_phases(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)program_id→rh_programs(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_id→rh_beds(id)created_by→pf_profiles(id)organization_id→pf_organizations(id)residence_id→rh_residences(id)resident_profile_id→rh_resident_profiles(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)created_by→pf_profiles(id)follow_up_schedule_id→rh_follow_up_schedules(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)created_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→users(id)grievance_id→rh_grievances(id)organization_id→pf_organizations(id)updated_by→users(id)
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_to→pf_profiles(id)organization_id→pf_organizations(id)site_id→pf_sites(id)
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_id→pf_profiles(id)created_by→pf_profiles(id)follow_up_audit_id→rh_med_storage_audits(id)organization_id→pf_organizations(id)residence_id→rh_residences(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_id→pf_documents(id)created_by→pf_profiles(id)episode_id→rh_episodes(id)milestone_id→rh_phase_milestones(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)verified_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)updated_by→pf_profiles(id)
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_id→fw_forms(id)completed_by→pf_profiles(id)created_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)outcome_checkpoint_id→rh_outcome_checkpoints(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_id→fw_forms(id)created_by→pf_profiles(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_id→fw_forms(id)created_by→pf_profiles(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)outcome_checkpoint_id→rh_outcome_checkpoints(id)outcome_indicator_id→rh_outcome_indicators(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_id→rh_episodes(id)organization_id→pf_organizations(id)site_id→pf_sites(id)
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_by→pf_profiles(id)cancelled_by→pf_profiles(id)created_by→pf_profiles(id)denied_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)program_id→rh_programs(id)requested_by→pf_profiles(id)return_verified_by→pf_profiles(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
passes_delete(DELETE)passes_insert(INSERT)passes_select(SELECT)passes_update(UPDATE)
rh_phase_milestones
RLS: ✅ enabled (7 policies)
Foreign keys:
created_by→pf_profiles(id)dependency_milestone_id→rh_phase_milestones(id)organization_id→pf_organizations(id)program_phase_id→rh_program_phases(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)program_phase_id→rh_program_phases(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)program_id→rh_programs(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_id→fw_forms(id)created_by→pf_profiles(id)exit_form_id→fw_forms(id)intake_form_id→fw_forms(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)discharge_plan_id→rh_discharge_plans(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)signed_by_resident→pf_profiles(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)profile_id→pf_profiles(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)program_id→rh_programs(id)schedule_template_id→rh_schedule_templates(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)program_id→rh_programs(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)residence_id→rh_residences(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_to→pf_profiles(id)completed_by→pf_profiles(id)created_by→pf_profiles(id)investigation_id→rh_significant_event_investigations(id)organization_id→pf_organizations(id)updated_by→pf_profiles(id)verified_by→pf_profiles(id)
actions_delete(DELETE)actions_insert(INSERT)actions_select(SELECT)actions_update(UPDATE)
rh_significant_event_investigations
RLS: ✅ enabled (4 policies)
Foreign keys:
assigned_investigator_id→pf_profiles(id)created_by→pf_profiles(id)organization_id→pf_organizations(id)significant_event_id→rh_significant_events(id)updated_by→pf_profiles(id)
investigations_delete(DELETE)investigations_insert(INSERT)investigations_select(SELECT)investigations_update(UPDATE)
rh_significant_event_types
RLS: ✅ enabled (4 policies)
Foreign keys:
created_by→pf_profiles(id)organization_id→pf_organizations(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)created_by→pf_profiles(id)episode_id→rh_episodes(id)event_type_id→rh_significant_event_types(id)organization_id→pf_organizations(id)reviewed_by→pf_profiles(id)site_id→pf_sites(id)submitted_by→pf_profiles(id)updated_by→pf_profiles(id)
events_delete(DELETE)events_insert(INSERT)events_select(SELECT)events_update(UPDATE)
rh_staff_assignments
RLS: ✅ enabled (4 policies)
Foreign keys:
created_by→pf_profiles(id)organization_id→pf_organizations(id)residence_id→rh_residences(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)organization_id→pf_organizations(id)program_id→rh_programs(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
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_by→pf_profiles(id)confirmation_test_id→rh_uds_tests(id)created_by→pf_profiles(id)episode_id→rh_episodes(id)organization_id→pf_organizations(id)random_schedule_id→rh_uds_random_schedule(id)site_id→pf_sites(id)updated_by→pf_profiles(id)
uds_tests_delete(DELETE)uds_tests_insert(INSERT)uds_tests_select(SELECT)uds_tests_update(UPDATE)