recall_sentence

-1 rows


Description

Description: Holds recall information at a child level, where the recall information affects a specific sentence. NOMIS Equivalent Entity: offender_sentences Domain: Court results including person sentences

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id serial 10 nextval('recall_sentence_id_seq'::regclass)

Description: The unique id of the specific recall sentence. Source System: Record a Recall

recall_sentence_uuid uuid 2147483647 null

Description: The unique id of the specific recall sentence which is displayed on the UI. Source System: Record a Recall

recall_id int4 10 null
recall.id fk_recall_sentence_to_recall R

Description: The overarching recall that this specific sentence is being recalled under. Source System: Record a Recall

sentence_id int4 10 null
sentence.id fk_recall_sentence_to_sentence R

Description: The id of the specific sentence that is being recalled. Individual sentences can be recalled multiple times. Source System: Record a Recall

legacy_data jsonb 2147483647 null

Description: Legacy JSON to hold details for recall sentences. This is used for the bidirectional sync between NOMIS and DPS. Source System: Record a Recall

created_at timestamptz 35,6 null

Description: The timestamp of when the recall sentence was created. Source System: Record a Recall

created_by_username varchar 2147483647 null

Description: The username that initially created the recall sentence. Source System: Record a Recall

created_prison varchar 2147483647 null
pre_recall_sentence_status varchar 2147483647 null

Indexes

Constraint Name Type Sort Column(s)
recall_sentence_pkey Primary key Asc id
idx_recall_sentence_recall_id Performance Asc recall_id
idx_recall_sentence_sentence_id Performance Asc sentence_id

Relationships