69 Foreign Key Constraints
Constraint Name | Child Column | Parent Column | Delete Rule | ||||
---|---|---|---|---|---|---|---|
fk_appointment_delivery_address_to_appointment_delivery |
|
|
Restrict delete | ||||
fk_ended_by_id |
|
|
Restrict delete | ||||
fk_cancellation_reason_code |
|
|
Restrict delete | ||||
fk_withdrawal_reason_code |
|
|
Restrict delete | ||||
fk_sent_by_id |
|
|
Restrict delete | ||||
fk_intervention_id |
|
|
Restrict delete | ||||
fk_created_by_id |
|
|
Restrict delete | ||||
fk_referral_desired_outcome_service_category_id |
|
|
Restrict delete | ||||
fk__referral_desired_outcome__desired_outcome |
|
|
Restrict delete | ||||
fk__referral_desired_outcome__referral |
|
|
Restrict delete | ||||
job_exec_params_fk |
|
|
Restrict delete | ||||
fk__dynamic_framework_contract__service_provider_id |
|
|
Restrict delete | ||||
fk__contract_type__contract_type_id |
|
|
Restrict delete | ||||
fk__dynamic_framework_contract__nps_region_id |
|
|
Restrict delete | ||||
fk__dynamic_framework_contract__pcc_region_id |
|
|
Restrict delete | ||||
fk_delivery_session_referral |
|
|
Restrict delete | ||||
fk_referral_location_referral_id |
|
|
Restrict delete | ||||
job_exec_ctx_fk |
|
|
Restrict delete | ||||
fk_attendance_submitted_by_id |
|
|
Restrict delete | ||||
fk_feedback_submitted_by |
|
|
Restrict delete | ||||
fk_appt_to_created_by |
|
|
Restrict delete | ||||
fk_attendance_behaviour_submitted_by_id |
|
|
Restrict delete | ||||
fk_superseded_by_appoinment_id |
|
|
Cascade on delete | ||||
fk__appointment__referral |
|
|
Restrict delete | ||||
fk_session_feedback_submitted_by_id |
|
|
Restrict delete | ||||
fk_service_category_id |
|
|
Restrict delete | ||||
fk_referral_id |
|
|
Restrict delete | ||||
fk_contract_type |
|
|
Restrict delete | ||||
fk_service_category_id |
|
|
Restrict delete | ||||
fk_supplier_assessment_referral |
|
|
Restrict delete | ||||
fk_end_of_service_report_id |
|
|
Restrict delete | ||||
fk_desired_outcome_id |
|
|
Restrict delete | ||||
fk_probation_practitioner_details_referral_id |
|
|
Restrict delete | ||||
fk_referral_id |
|
|
Restrict delete | ||||
fk__intervention__dynamic_framework_contract_id |
|
|
Restrict delete | ||||
fk_supplier_assessment_appointments_appointment_id |
|
|
Restrict delete | ||||
fk_supplier_assessment_supplier_assessment |
|
|
Restrict delete | ||||
job_exec_step_fk |
|
|
Restrict delete | ||||
step_exec_ctx_fk |
|
|
Restrict delete | ||||
changelog_referral_id_fkey |
|
|
Restrict delete | ||||
changelog_changed_by_id_fkey |
|
|
Restrict delete | ||||
fk_case_note_updated_by_id |
|
|
Restrict delete | ||||
fk_draft_oasys_risk_information_referral_id |
|
|
Restrict delete | ||||
fk_service_category_id |
|
|
Restrict delete | ||||
fk_referral_details_referral_id |
|
|
Restrict delete | ||||
referral_details_superseded_by_id_fkey |
|
|
Restrict delete | ||||
fk_action_plan_approved_by |
|
|
Restrict delete | ||||
fk_submitted_by_id |
|
|
Restrict delete | ||||
fk_created_by_id |
|
|
Restrict delete | ||||
fk_referral_id |
|
|
Restrict delete | ||||
fk_assigned_to_id_auth_user |
|
|
Restrict delete | ||||
fk_assigned_by_id_auth_user |
|
|
Restrict delete | ||||
fk_referral_id |
|
|
Restrict delete | ||||
fk_contract_id |
|
|
Restrict delete | ||||
fk_subcontractor_id |
|
|
Restrict delete | ||||
job_inst_exec_fk |
|
|
Restrict delete | ||||
fk__pcc_region__nps_region_id |
|
|
Restrict delete | ||||
fk_submitted_by_id |
|
|
Restrict delete | ||||
fk_created_by_id |
|
|
Restrict delete | ||||
fk_referral_id |
|
|
Restrict delete | ||||
fk_appointment_delivery_to_appointment |
|
|
Restrict delete | ||||
fk_case_note_referral_id |
|
|
Restrict delete | ||||
fk_case_note_sent_by_id |
|
|
Restrict delete | ||||
fk__desired_outcome__service_category |
|
|
Restrict delete | ||||
fk_delivery_session_appointment_delivery_session |
|
|
Restrict delete | ||||
fk_delivery_session_appointment_appointment |
|
|
Restrict delete | ||||
fk_referral_complexity_level_ids_complexity_level_ids_key |
|
|
Restrict delete | ||||
fk_referral_complexity_level_ids_referral_id |
|
|
Restrict delete | ||||
fk_action_plan_id |
|
|
Restrict delete |
Check Constraints
Table | Constraint Name | Constraint |
---|---|---|
appointment | superseded_has_superseded_by_appoinment_id | ((NOT ((superseded_by_appointment_id IS NULL) AND (superseded = true)))) |