acq.user_request

Cascading Deletes: Deleting rows from this table will cascade to: biblio.record_entry, acq.lineitem.

Deferrable Constraints: The following FK constraints are deferrable — they are checked at transaction end, not statement end: user_request_cancel_reason_fkey.

Columns

Column Type Nullable Default Notes

id PK

integer

No

nextval('acq.user_request_id_seq'::regclass)

usr FK

integer

No

actor.usr(id)

hold

boolean

No

true

pickup_lib FK

integer

No

actor.org_unit(id)

holdable_formats

text

Yes

phone_notify

text

Yes

email_notify

boolean

No

true

lineitem FK

integer

Yes

acq.lineitem(id)

eg_bib FK

bigint

Yes

biblio.record_entry(id)

request_date

timestamp with time zone

No

now()

need_before

timestamp with time zone

Yes

max_fee

text

Yes

request_type FK

integer

No

acq.user_request_type(id)

isxn

text

Yes

upc

text

Yes

title

text

Yes

volume

text

Yes

author

text

Yes

article_title

text

Yes

article_pages

text

Yes

publisher

text

Yes

location

text

Yes

pubdate

text

Yes

mentioned

text

Yes

other_info

text

Yes

cancel_reason FK

integer

Yes

acq.cancel_reason(id)

cancel_time

timestamp with time zone

Yes

Primary Key

(id)

Foreign Keys

Column(s) References On Delete On Update Deferrable Constraint

cancel_reason

acq.cancel_reason(id)

NO ACTION

NO ACTION

DEFERRED

user_request_cancel_reason_fkey

eg_bib

biblio.record_entry(id)

CASCADE

NO ACTION

No

user_request_eg_bib_fkey

lineitem

acq.lineitem(id)

CASCADE

NO ACTION

No

user_request_lineitem_fkey

pickup_lib

actor.org_unit(id)

NO ACTION

NO ACTION

No

user_request_pickup_lib_fkey

request_type

acq.user_request_type(id)

NO ACTION

NO ACTION

No

user_request_request_type_fkey

usr

actor.usr(id)

NO ACTION

NO ACTION

No

user_request_usr_fkey

Indexes

Index Method Definition

user_request_pkey PK

btree

CREATE UNIQUE INDEX user_request_pkey ON acq.user_request USING btree (id)

Referenced By

The following tables have foreign keys pointing to acq.user_request (1 referencing table(s)):

Table Referencing Column(s) Referenced Column(s) Constraint

action.hold_request

acq_request

id

hold_request_acq_request_fkey