money.all_billings (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 |
|---|---|---|---|
id |
|
Yes |
|
xact |
|
Yes |
|
billing_ts |
|
Yes |
|
voided |
|
Yes |
|
voider |
|
Yes |
|
void_time |
|
Yes |
|
amount |
|
Yes |
|
billing_type |
|
Yes |
|
btype |
|
Yes |
|
note |
|
Yes |
|
create_date |
|
Yes |
|
period_start |
|
Yes |
|
period_end |
|
Yes |
View Definition
SELECT billing.id,
billing.xact,
billing.billing_ts,
billing.voided,
billing.voider,
billing.void_time,
billing.amount,
billing.billing_type,
billing.btype,
billing.note,
billing.create_date,
billing.period_start,
billing.period_end
FROM money.billing
UNION ALL
SELECT aged_billing.id,
aged_billing.xact,
aged_billing.billing_ts,
aged_billing.voided,
aged_billing.voider,
aged_billing.void_time,
aged_billing.amount,
aged_billing.billing_type,
aged_billing.btype,
aged_billing.note,
aged_billing.create_date,
aged_billing.period_start,
aged_billing.period_end
FROM money.aged_billing;