asset.copy_location
|
Soft Deletes: This table uses a |
|
Data-Modifying Triggers: This table has BEFORE ROW trigger(s) that modify row data before write. Values you INSERT or UPDATE may differ from what is actually stored. See the Triggers section below. |
|
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('asset.copy_location_id_seq'::regclass) |
|
name |
|
No |
||
owning_lib FK |
|
No |
||
holdable |
|
No |
true |
|
hold_verify |
|
No |
false |
|
opac_visible |
|
No |
true |
|
circulate |
|
No |
true |
|
label_prefix |
|
Yes |
||
label_suffix |
|
Yes |
||
checkin_alert |
|
No |
false |
|
deleted SOFT-DEL |
|
No |
false |
|
url |
|
Yes |
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 |
UPDATE |
ROW |
Trigger Bodies
acpl_validate_edit
Function: asset.copy_location_validate_edit()
Timing: BEFORE UPDATE ROW
|
This trigger modifies the row before it is written (returns a modified |
BEGIN
IF OLD.id = 1 THEN
IF OLD.owning_lib != NEW.owning_lib OR NEW.deleted THEN
RAISE EXCEPTION 'Copy location 1 cannot be moved or deleted';
END IF;
END IF;
RETURN NEW;
END;
Referenced By
The following tables have foreign keys pointing to asset.copy_location (12 referencing table(s)):
| Table | Referencing Column(s) | Referenced Column(s) | Constraint |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|