Constraints

77 Foreign Key Constraints

Constraint Name Child Column Parent Column Delete Rule
reservation_transit_copy_reservation_fkey
reservation_transit_copy.reservation
reservation.id
Null on delete
artc_tc_fkey
reservation_transit_copy.target_copy
resource.id
Cascade on delete
emergency_closing_reservation_emergency_closing_fkey
emergency_closing_reservation.emergency_closing
emergency_closing.id
Cascade on delete
emergency_closing_reservation_reservation_fkey
emergency_closing_reservation.reservation
reservation.id
Cascade on delete
hold_request_acq_request_fkey
hold_request.acq_request
user_request.id
Restrict delete
hold_request_current_shelf_lib_fkey
hold_request.current_shelf_lib
org_unit.id
Restrict delete
hold_request_usr_fkey
hold_request.usr
usr.id
Restrict delete
hold_request_fulfillment_staff_fkey
hold_request.fulfillment_staff
usr.id
Restrict delete
hold_request_requestor_fkey
hold_request.requestor
usr.id
Restrict delete
hold_request_request_lib_fkey
hold_request.request_lib
org_unit.id
Restrict delete
hold_request_sms_carrier_fkey
hold_request.sms_carrier
sms_carrier.id
Restrict delete
hold_request_hold_type_fkey
hold_request.hold_type
hold_type.hold_type
Restrict delete
hold_request_pickup_lib_fkey
hold_request.pickup_lib
org_unit.id
Restrict delete
hold_request_fulfillment_lib_fkey
hold_request.fulfillment_lib
org_unit.id
Restrict delete
hold_request_cancel_cause_fkey
hold_request.cancel_cause
hold_request_cancel_cause.id
Null on delete
hold_request_selection_ou_fkey
hold_request.selection_ou
org_unit.id
Restrict delete
hold_request_note_hold_fkey
hold_request_note.hold
hold_request.id
Cascade on delete
non_cat_in_house_use_staff_fkey
non_cat_in_house_use.staff
usr.id
Restrict delete
non_cat_in_house_use_workstation_fkey
non_cat_in_house_use.workstation
workstation.id
Restrict delete
non_cat_in_house_use_item_type_fkey
non_cat_in_house_use.item_type
non_cataloged_type.id
Restrict delete
non_cat_in_house_use_org_unit_fkey
non_cat_in_house_use.org_unit
org_unit.id
Restrict delete
emergency_closing_hold_hold_fkey
emergency_closing_hold.hold
hold_request.id
Cascade on delete
emergency_closing_hold_emergency_closing_fkey
emergency_closing_hold.emergency_closing
emergency_closing.id
Cascade on delete
emergency_closing_creator_fkey
emergency_closing.creator
usr.id
Cascade on delete
usr_circ_history_source_circ_fkey
usr_circ_history.source_circ
circulation.id
Null on delete
usr_circ_history_usr_fkey
usr_circ_history.usr
usr.id
Restrict delete
survey_question_survey_fkey
survey_question.survey
survey.id
Restrict delete
circulation_limit_group_map_circ_fkey
circulation_limit_group_map.circ
circulation.id
Cascade on delete
circulation_limit_group_map_limit_group_fkey
circulation_limit_group_map.limit_group
circ_limit_group.id
Cascade on delete
hold_transit_copy_hold_fkey
hold_transit_copy.hold
hold_request.id
Null on delete
survey_response_question_fkey
survey_response.question
survey_question.id
Restrict delete
survey_response_answer_fkey
survey_response.answer
survey_answer.id
Restrict delete
survey_response_survey_fkey
survey_response.survey
survey.id
Restrict delete
emergency_closing_circulation_emergency_closing_fkey
emergency_closing_circulation.emergency_closing
emergency_closing.id
Cascade on delete
emergency_closing_circulation_circulation_fkey
emergency_closing_circulation.circulation
circulation.id
Cascade on delete
action_circulation_usr_fkey
circulation.usr
usr.id
Restrict delete
action_circulation_circ_lib_fkey
circulation.circ_lib
org_unit.id
Null on delete
circulation_parent_circ_fkey
circulation.parent_circ
circulation.id
Restrict delete
circulation_copy_location_fkey
circulation.copy_location
copy_location.id
Restrict delete
circulation_checkin_workstation_fkey
circulation.checkin_workstation
workstation.id
Null on delete
circulation_workstation_fkey
circulation.workstation
workstation.id
Null on delete
hold_notification_hold_fkey
hold_notification.hold
hold_request.id
Cascade on delete
hold_notification_notify_staff_fkey
hold_notification.notify_staff
usr.id
Restrict delete
transit_copy_source_fkey
transit_copy.source
org_unit.id
Restrict delete
transit_copy_copy_status_fkey
transit_copy.copy_status
copy_status.id
Restrict delete
transit_copy_prev_hop_fkey
transit_copy.prev_hop
transit_copy.id
Restrict delete
transit_copy_dest_fkey
transit_copy.dest
org_unit.id
Restrict delete
transit_copy_prev_dest_fkey
transit_copy.prev_dest
org_unit.id
Restrict delete
batch_hold_event_map_hold_fkey
batch_hold_event_map.hold
hold_request.id
Cascade on delete
batch_hold_event_map_batch_hold_event_fkey
batch_hold_event_map.batch_hold_event
batch_hold_event.id
Cascade on delete
survey_answer_question_fkey
survey_answer.question
survey_question.id
Restrict delete
fieldset_group_creator_fkey
fieldset_group.creator
usr.id
Cascade on delete
fieldset_group_rollback_group_fkey
fieldset_group.rollback_group
fieldset_group.id
Cascade on delete
fieldset_group_owning_lib_fkey
fieldset_group.owning_lib
org_unit.id
Cascade on delete
survey_owner_fkey
survey.owner
org_unit.id
Restrict delete
fieldset_owner_fkey
fieldset.owner
usr.id
Restrict delete
fieldset_fieldset_group_fkey
fieldset.fieldset_group
fieldset_group.id
Cascade on delete
fieldset_owning_lib_fkey
fieldset.owning_lib
org_unit.id
Restrict delete
fieldset_stored_query_fkey
fieldset.stored_query
stored_query.id
Restrict delete
in_house_use_staff_fkey
in_house_use.staff
usr.id
Restrict delete
in_house_use_org_unit_fkey
in_house_use.org_unit
org_unit.id
Restrict delete
in_house_use_workstation_fkey
in_house_use.workstation
workstation.id
Restrict delete
curbside_org_fkey
curbside.org
org_unit.id
Cascade on delete
curbside_delivery_staff_fkey
curbside.delivery_staff
usr.id
Cascade on delete
curbside_stage_staff_fkey
curbside.stage_staff
usr.id
Cascade on delete
curbside_patron_fkey
curbside.patron
usr.id
Cascade on delete
batch_hold_event_bucket_fkey
batch_hold_event.bucket
user_bucket.id
Cascade on delete
batch_hold_event_staff_fkey
batch_hold_event.staff
usr.id
Cascade on delete
fieldset_col_val_fieldset_fkey
fieldset_col_val.fieldset
fieldset.id
Cascade on delete
hold_copy_map_hold_fkey
hold_copy_map.hold
hold_request.id
Cascade on delete
ingest_queue_who_fkey
ingest_queue.who
usr.id
Null on delete
non_cataloged_circulation_patron_fkey
non_cataloged_circulation.patron
usr.id
Restrict delete
non_cataloged_circulation_staff_fkey
non_cataloged_circulation.staff
usr.id
Restrict delete
non_cataloged_circulation_circ_lib_fkey
non_cataloged_circulation.circ_lib
org_unit.id
Restrict delete
non_cataloged_circulation_item_type_fkey
non_cataloged_circulation.item_type
non_cataloged_type.id
Restrict delete
ingest_queue_entry_queue_fkey
ingest_queue_entry.queue
ingest_queue.id
Cascade on delete
ingest_queue_entry_override_by_fkey
ingest_queue_entry.override_by
ingest_queue_entry.id
Null on delete

Check Constraints

Table Constraint Name Constraint
hold_request sms_check (((sms_notify IS NULL) OR (sms_carrier IS NOT NULL)))
circulation circulation_stop_fines_check ((stop_fines = ANY (ARRAY['CHECKIN'::text, 'CLAIMSRETURNED'::text, 'LOST'::text, 'MAXFINES'::text, 'RENEW'::text, 'LONGOVERDUE'::text, 'CLAIMSNEVERCHECKEDOUT'::text])))
fieldset fieldset_one_or_the_other ((((stored_query IS NOT NULL) AND (pkey_value IS NULL)) OR ((pkey_value IS NOT NULL) AND (stored_query IS NULL))))
fieldset valid_status ((status = ANY (ARRAY['PENDING'::text, 'APPLIED'::text, 'ERROR'::text])))