actor.usr_address
|
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('actor.usr_address_id_seq'::regclass) |
|
valid |
|
No |
true |
|
within_city_limits |
|
No |
true |
|
address_type |
|
No |
'MAILING'::text |
|
usr FK |
|
No |
||
street1 |
|
No |
||
street2 |
|
Yes |
||
city |
|
No |
||
county |
|
Yes |
||
state |
|
Yes |
||
country |
|
No |
||
post_code |
|
No |
||
pending |
|
No |
false |
|
replaces FK |
|
Yes |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
|
btree |
|
|
btree |
|
|
btree |
|
|
btree |
|
|
btree |
|
|
btree |
|
Triggers
| Trigger | Timing | Event | Level | Function |
|---|---|---|---|---|
|
AFTER |
DELETE OR UPDATE |
ROW |
Trigger Bodies
audit_actor_usr_address_update_trigger
Function: auditor.audit_actor_usr_address_func()
Timing: AFTER DELETE OR UPDATE ROW
BEGIN
INSERT INTO auditor.actor_usr_address_history ( audit_id, audit_time, audit_action, audit_user, audit_ws, id, valid, within_city_limits, address_type, usr, street1, street2, city, county, state, country, post_code, pending, replaces )
SELECT nextval('auditor.actor_usr_address_pkey_seq'),
now(),
SUBSTR(TG_OP,1,1),
eg_user,
eg_ws,
OLD.id, OLD.valid, OLD.within_city_limits, OLD.address_type, OLD.usr, OLD.street1, OLD.street2, OLD.city, OLD.county, OLD.state, OLD.country, OLD.post_code, OLD.pending, OLD.replaces
FROM auditor.get_audit_info();
RETURN NULL;
END;
Referenced By
The following tables have foreign keys pointing to actor.usr_address (3 referencing table(s)):
| Table | Referencing Column(s) | Referenced Column(s) | Constraint |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|