asset.copy_alert
|
Cascading Deletes: Deleting rows from this table will cascade to: config.copy_alert_type. |
Columns
| Column | Type | Nullable | Default | Notes |
|---|---|---|---|---|
id PK |
|
No |
nextval('asset.copy_alert_id_seq'::regclass) |
|
alert_type FK |
|
No |
||
copy |
|
No |
||
temp |
|
No |
false |
|
create_time |
|
No |
now() |
|
create_staff FK |
|
No |
||
note |
|
Yes |
||
ack_time |
|
Yes |
||
ack_staff FK |
|
Yes |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
SET NULL |
NO ACTION |
No |
|
|
|
CASCADE |
NO ACTION |
No |
|
|
|
SET NULL |
NO ACTION |
No |
|
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
Triggers
| Trigger | Timing | Event | Level | Function |
|---|---|---|---|---|
|
AFTER |
INSERT OR UPDATE |
ROW |
Trigger Bodies
inherit_asset_copy_alert_copy_fkey
Function: evergreen.asset_copy_alert_copy_inh_fkey()
Timing: AFTER INSERT OR UPDATE ROW
BEGIN
PERFORM 1 FROM asset.copy WHERE id = NEW.copy;
IF NOT FOUND THEN
RAISE foreign_key_violation USING MESSAGE = FORMAT(
$$Referenced asset.copy id not found, copy:%s$$, NEW.copy
);
END IF;
RETURN NEW;
END;