Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('sentence_type_id_seq'::regclass) |
|
|
|||||
| sentence_type_uuid | uuid | 2147483647 | null |
|
|
Description: The id of the sentence type. Source System: Remand & Sentencing |
|||||
| description | varchar | 2147483647 | null |
|
|
Description: The text description of the sentence type. Source System: Remand & Sentencing |
|||||
| min_age_inclusive | int4 | 10 | √ | null |
|
|
Description: This field is used by the RaS UI to determine the sentence types that are applicable based on the age of an offender. Source System: Remand & Sentencing |
||||
| max_age_exclusive | int4 | 10 | √ | null |
|
|
Description: This field is used by the RaS UI to determine the sentence types that are applicable based on the age of an offender. Source System: Remand & Sentencing |
||||
| min_date_inclusive | date | 13 | √ | null |
|
|
Description: This field is used by the RaS UI to determine the sentence types that are applicable based on the conviction date. Source System: Remand & Sentencing |
||||
| max_date_exclusive | date | 13 | √ | null |
|
|
Description: This field is used by the RaS UI to determine the sentence types that are applicable based on the conviction date. Source System: Remand & Sentencing |
||||
| classification | varchar | 2147483647 | null |
|
|
Description: Defines the class of sentence in order to inform the behaviour to the RaS UI. Source System: Remand & Sentencing |
|||||
| hint_text | varchar | 2147483647 | √ | null |
|
|
Description: Provides further context. Source System: Remand & Sentencing |
||||
| nomis_cja_code | varchar | 2147483647 | 'UNKNOWN'::character varying |
|
|
Description: The equivalent NOMIS CJA code. CJA code refers to the Act/Code that the sentence type is active under. Four Sentencing Acts/Codes exist – 1967, 1991, 2003, and 2020. |
|||||
| nomis_sentence_calc_type | varchar | 2147483647 | 'UNKNOWN'::character varying |
|
|
Description: The equivalent NOMS calculation type for the given sentence. This will be used in the bidirectional sync between NOMIS and RaS. Source System: Remand & Sentencing |
|||||
| display_order | int4 | 10 | 0 |
|
|
Description: The order for the sentence types to be displayed on the UI. Source System: Remand & Sentencing |
|||||
| status | varchar | 2147483647 | 'ACTIVE'::character varying |
|
|
||||||
| min_offence_date_inclusive | date | 13 | √ | null |
|
|
|||||
| max_offence_date_exclusive | date | 13 | √ | null |
|
|
|||||
| is_recallable | bool | 1 | √ | true |
|
|
Indicates whether sentences of this type are recallable |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| sentence_type_pkey | Primary key | Asc | id |
| sentence_type_uuid_unique | Must be unique | Asc | sentence_type_uuid |