auditor.acq_fund_debit_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 |
|
fund |
|
Yes |
|
origin_amount |
|
Yes |
|
origin_currency_type |
|
Yes |
|
amount |
|
Yes |
|
encumbrance |
|
Yes |
|
debit_type |
|
Yes |
|
xfer_destination |
|
Yes |
|
create_time |
|
Yes |
|
invoice_entry |
|
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,
fund_debit.id,
fund_debit.fund,
fund_debit.origin_amount,
fund_debit.origin_currency_type,
fund_debit.amount,
fund_debit.encumbrance,
fund_debit.debit_type,
fund_debit.xfer_destination,
fund_debit.create_time,
fund_debit.invoice_entry
FROM acq.fund_debit
UNION ALL
SELECT acq_fund_debit_history.audit_id,
acq_fund_debit_history.audit_time,
acq_fund_debit_history.audit_action,
acq_fund_debit_history.audit_user,
acq_fund_debit_history.audit_ws,
acq_fund_debit_history.id,
acq_fund_debit_history.fund,
acq_fund_debit_history.origin_amount,
acq_fund_debit_history.origin_currency_type,
acq_fund_debit_history.amount,
acq_fund_debit_history.encumbrance,
acq_fund_debit_history.debit_type,
acq_fund_debit_history.xfer_destination,
acq_fund_debit_history.create_time,
acq_fund_debit_history.invoice_entry
FROM auditor.acq_fund_debit_history;