acq.cancel_reason
|
Deferrable Constraints: The following FK constraints are deferrable — they are checked at transaction end, not statement end: |
Columns
| Column | Type | Nullable | Default | Notes |
|---|---|---|---|---|
id PK |
|
No |
nextval('acq.cancel_reason_id_seq'::regclass) |
|
org_unit FK |
|
No |
||
label |
|
No |
||
description |
|
No |
||
keep_debits |
|
No |
false |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
|
btree |
|
Triggers
| Trigger | Timing | Event | Level | Function |
|---|---|---|---|---|
|
BEFORE |
DELETE |
ROW |
Trigger Bodies
acq_no_deleted_reserved_cancel_reasons
Function: evergreen.protect_reserved_rows_from_delete()
Timing: BEFORE DELETE ROW
BEGIN
IF OLD.id < TG_ARGV[0]::INT THEN
RAISE EXCEPTION 'Cannot delete row with reserved ID %', OLD.id;
END IF;
RETURN OLD;
END
Referenced By
The following tables have foreign keys pointing to acq.cancel_reason (4 referencing table(s)):
| Table | Referencing Column(s) | Referenced Column(s) | Constraint |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|