acq.lineitem_detail
|
Cascading Deletes: Deleting rows from this table will cascade to: acq.lineitem. |
|
Deferrable Constraints: The following FK constraints are deferrable — they are checked at transaction end, not statement end: |
|
Trigger Side Effects: Writing to this table automatically triggers writes to other tables:
|
Columns
| Column | Type | Nullable | Default | Notes |
|---|---|---|---|---|
id PK |
|
No |
nextval('acq.lineitem_detail_id_seq'::regclass) |
|
lineitem FK |
|
No |
||
fund FK |
|
Yes |
||
fund_debit FK |
|
Yes |
||
eg_copy_id |
|
Yes |
||
barcode |
|
Yes |
||
cn_label |
|
Yes |
||
note |
|
Yes |
||
collection_code |
|
Yes |
||
circ_modifier FK |
|
Yes |
||
owning_lib FK |
|
Yes |
||
location FK |
|
Yes |
||
recv_time |
|
Yes |
||
receiver FK |
|
Yes |
||
cancel_reason FK |
|
Yes |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
SET NULL |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
CASCADE |
NO ACTION |
DEFERRED |
|
|
|
SET NULL |
NO ACTION |
DEFERRED |
|
|
|
SET NULL |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
|
btree |
|
|
btree |
|
Triggers
| Trigger | Timing | Event | Level | Function |
|---|---|---|---|---|
|
AFTER |
DELETE OR UPDATE |
ROW |
Trigger Bodies
audit_acq_lineitem_detail_update_trigger
Function: acq.audit_acq_lineitem_detail_func()
Timing: AFTER DELETE OR UPDATE ROW
BEGIN
INSERT INTO acq.acq_lineitem_detail_history
SELECT nextval('acq.acq_lineitem_detail_pkey_seq'),
now(),
SUBSTR(TG_OP,1,1),
OLD.*;
RETURN NULL;
END;