Database Properties
Database Type: PostgreSQL - 15.14 (Debian 15.14-1.pgdg13+1)
Schema public
standard public schema
Tables
| Table / View | Children | Parents | Columns | Rows | Type | Comments |
|---|---|---|---|---|---|---|
| appointment_delivery_address | 0 | 1 | 6 | 0 | Table | appointment location address if the appointment delivery type is ‘IN_PERSON_MEETING_OTHER’ |
| action_plan_session_appointment_pre_v1_78 | 0 | 0 | 2 | 0 | Table | backup no longer in use; for up-to-date session appointment links, see |
| draft_referral | 6 | 1 | 38 | 0 | Table | adding unallocated com related details |
| referral | 10 | 7 | 27 | 0 | Table | referral details |
| cancellation_reason | 1 | 0 | 2 | 10 | Table | reference data early end/cancellation reasons |
| flyway_schema_history | 0 | 0 | 10 | 254 | Table | |
| dynamic_framework_contract | 2 | 4 | 14 | 0 | Table | stores the scope of the commissioned rehabilitative services contracts |
| referral_location | 0 | 1 | 18 | 0 | Table | adding unallocated com related details |
| batch_job_execution_context | 0 | 1 | 3 | 0 | Table | |
| appointment | 4 | 7 | 40 | 0 | Table | person-on-probation appointment details (all kinds, assessments and delivery) |
| referral_selected_service_category | 4 | 2 | 2 | 0 | Table | selected service categories for each referral |
| supplier_assessment | 1 | 1 | 2 | 0 | Table | supplier assessment details for a referral |
| end_of_service_report_outcome | 0 | 2 | 5 | 0 | Table | outcome progress recorded in end of service reports |
| desired_outcome_filter_rule_match_data | 0 | 1 | 2 | 166 | Table | stored the data that should be matched against when filtering. |
| supplier_assessment_appointment | 0 | 2 | 2 | 0 | Table | links between supplier assessments and their appointments for a referral |
| changelog | 0 | 2 | 8 | 0 | Table | details about any amendments to an existing referral |
| service_provider | 3 | 0 | 2 | 0 | Table | service provider details |
| draft_oasys_risk_information | 0 | 2 | 11 | 0 | Table | holds draft OASYS risk information only for a DraftReferral. Discarded after referral is sent. |
| referral_details | 1 | 2 | 12 | 0 | Table | details about a referral that can change that are not used to determine state |
| referral_assignments | 0 | 3 | 5 | 0 | Table | snapshots of referral assignments |
| nps_region | 2 | 0 | 2 | 12 | Table | reference data National Probation Service (NPS) region details |
| batch_job_execution | 3 | 1 | 11 | 0 | Table | |
| contract_type | 2 | 0 | 3 | 35 | Table | contract (service) types available for commissioned rehabilitative services |
| service_category | 4 | 0 | 3 | 37 | Table | reference data intervention service categories, which relate to service user needs |
| desired_outcome | 3 | 1 | 4 | 330 | Table | reference data desired outcomes available for each intervention service category |
| delivery_session_appointment | 0 | 2 | 2 | 0 | Table | links between sessions and appointments for a referral |
| referral_complexity_level_ids | 0 | 3 | 3 | 0 | Table | selected complexity levels for each referral |
| action_plan_activity | 0 | 1 | 4 | 0 | Table | service user’s action plan activity details |
| referral_desired_outcome | 0 | 4 | 3 | 0 | Table | desired outcome details |
| batch_job_execution_params | 0 | 1 | 5 | 0 | Table | |
| delivery_session | 1 | 1 | 3 | 0 | Table | session details for a referral |
| contract_type_service_category | 0 | 2 | 2 | 52 | Table | configuration of selectable service categories for each contract type |
| referral_service_user_data | 0 | 1 | 10 | 0 | Table | referral service user details |
| probation_practitioner_details | 0 | 1 | 15 | 0 | Table | storing the probation practitioner details for a particular referral |
| intervention | 1 | 1 | 6 | 0 | Table | intervention details |
| batch_step_execution | 1 | 1 | 19 | 0 | Table | |
| batch_step_execution_context | 0 | 1 | 3 | 0 | Table | |
| withdrawal_reason | 1 | 0 | 3 | 13 | Table | details about different withdrawal reason codes, description and grouping |
| complexity_level | 0 | 1 | 5 | 98 | Table | details about the complexity levels of the service category |
| desired_outcome_filter_rule | 1 | 1 | 4 | 17 | Table | stores rules about when a desired outcome should be filtered out. |
| action_plan | 1 | 4 | 9 | 0 | Table | service user’s action plan details |
| auth_user | 18 | 0 | 4 | 1 | Table | details about the user from hmpps-auth |
| dynamic_framework_contract_sub_contractor | 0 | 2 | 2 | 0 | Table | sub-contractors for each commissioned rehabilitative services contract |
| relevant_sentence_end_dataload | 2 | 0 | 2 | 0 | Table | temporary table allowing loading of records for endOfSentence date implementation |
| end_of_service_report | 1 | 3 | 7 | 0 | Table | end of service reports |
| pcc_region | 1 | 1 | 3 | 42 | Table | reference data Police and Crime Commissioner (PCC) region details |
| appointment_delivery | 1 | 1 | 4 | 0 | Table | appointment delivery details |
| case_note | 0 | 2 | 6 | 0 | Table | case note provided by officer for a referral |
| batch_job_instance | 1 | 0 | 4 | 0 | Table | |
| metadata | 0 | 0 | 4 | 428 | Table | defines metadata about the schema |
| referral_summary | 0 | 1 | 28 | 0 | View | referral summary |