Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | √ | null |
|
|
referral unique identifier |
|||
| sent_at | timestamptz | 35,6 | √ | null |
|
|
when the referral was sent |
|||
| sent_by | text | 2147483647 | √ | null |
|
|
referral sent by |
|||
| reference_number | text | 2147483647 | √ | null |
|
|
referral number |
|||
| crn | text | 2147483647 | √ | null |
|
|
service user crn |
|||
| created_by | text | 2147483647 | √ | null |
|
|
id of the person creating the referral |
|||
| assigned_to_id | text | 2147483647 | √ | null |
|
|
referral assigend to id |
|||
| assigned_auth_source | text | 2147483647 | √ | null |
|
|
auth source of the assigned person |
|||
| assigned_user_name | text | 2147483647 | √ | null |
|
|
name of the assigned person |
|||
| sent_auth_source | text | 2147483647 | √ | null |
|
|
source of the sent person |
|||
| sent_user_name | text | 2147483647 | √ | null |
|
|
name of the sent person |
|||
| service_user_first_name | text | 2147483647 | √ | null |
|
|
first name of the service user |
|||
| service_user_last_name | text | 2147483647 | √ | null |
|
|
last name of the service user |
|||
| service_provider_id | varchar | 30 | √ | null |
|
|
service provider id |
|||
| service_provider_name | text | 2147483647 | √ | null |
|
|
service provider name |
|||
| intervention_title | text | 2147483647 | √ | null |
|
|
intervention title |
|||
| concluded_at | timestamptz | 35,6 | √ | null |
|
|
referral concluded at |
|||
| expected_release_date | date | 13 | √ | null |
|
|
referral expected release date |
|||
| is_referral_releasing_in12weeks | bool | 1 | √ | null |
|
|
is referral releasing in 12 weeks |
|||
| referral_type | person_current_location_type | 2147483647 | √ | null |
|
|
referral type |
|||
| prison_id | text | 2147483647 | √ | null |
|
|
prison id where referral is in |
|||
| probation_office | text | 2147483647 | √ | null |
|
|
probation office where referral is in |
|||
| pdu | text | 2147483647 | √ | null |
|
|
pdu where referral is in |
|||
| ndelius_pdu | text | 2147483647 | √ | null |
|
|
pdu stored in delius |
|||
| contract_id | uuid | 2147483647 | √ | null |
|
|
dynamic framework contract id |
|||
| end_requested_at | timestamptz | 35,6 | √ | null |
|
|
referral end requested at |
|||
| eosr_id | uuid | 2147483647 | √ | null |
|
|
referral end of service id |
|||
| appointment_id | uuid | 2147483647 | √ | null |
|
|
supplier assessment appointment id |


