auditor.biblio_record_entry_lifecycle (view)
|
This is a database view, not a base table. It has no triggers, indexes, or FK constraints of its own. Querying this view may be more efficient than joining the underlying tables directly. |
Columns
| Column | Type | Nullable | Notes |
|---|---|---|---|
audit_id |
|
Yes |
|
audit_time |
|
Yes |
|
audit_action |
|
Yes |
|
audit_user |
|
Yes |
|
audit_ws |
|
Yes |
|
id |
|
Yes |
|
creator |
|
Yes |
|
editor |
|
Yes |
|
source |
|
Yes |
|
quality |
|
Yes |
|
create_date |
|
Yes |
|
edit_date |
|
Yes |
|
active |
|
Yes |
|
deleted |
|
Yes |
|
fingerprint |
|
Yes |
|
tcn_source |
|
Yes |
|
tcn_value |
|
Yes |
|
marc |
|
Yes |
|
last_xact_id |
|
Yes |
|
vis_attr_vector |
|
Yes |
|
owner |
|
Yes |
|
share_depth |
|
Yes |
|
merge_date |
|
Yes |
|
merged_to |
|
Yes |
View Definition
SELECT '-1'::integer AS audit_id,
now() AS audit_time,
'-'::text AS audit_action,
'-1'::integer AS audit_user,
'-1'::integer AS audit_ws,
record_entry.id,
record_entry.creator,
record_entry.editor,
record_entry.source,
record_entry.quality,
record_entry.create_date,
record_entry.edit_date,
record_entry.active,
record_entry.deleted,
record_entry.fingerprint,
record_entry.tcn_source,
record_entry.tcn_value,
record_entry.marc,
record_entry.last_xact_id,
record_entry.vis_attr_vector,
record_entry.owner,
record_entry.share_depth,
record_entry.merge_date,
record_entry.merged_to
FROM biblio.record_entry
UNION ALL
SELECT biblio_record_entry_history.audit_id,
biblio_record_entry_history.audit_time,
biblio_record_entry_history.audit_action,
biblio_record_entry_history.audit_user,
biblio_record_entry_history.audit_ws,
biblio_record_entry_history.id,
biblio_record_entry_history.creator,
biblio_record_entry_history.editor,
biblio_record_entry_history.source,
biblio_record_entry_history.quality,
biblio_record_entry_history.create_date,
biblio_record_entry_history.edit_date,
biblio_record_entry_history.active,
biblio_record_entry_history.deleted,
biblio_record_entry_history.fingerprint,
biblio_record_entry_history.tcn_source,
biblio_record_entry_history.tcn_value,
biblio_record_entry_history.marc,
biblio_record_entry_history.last_xact_id,
biblio_record_entry_history.vis_attr_vector,
biblio_record_entry_history.owner,
biblio_record_entry_history.share_depth,
biblio_record_entry_history.merge_date,
biblio_record_entry_history.merged_to
FROM auditor.biblio_record_entry_history;