restructuring, dates schema
This commit is contained in:
parent
89aed285db
commit
224954525e
4 changed files with 164 additions and 6 deletions
27
models/reporting/core/core__verification_payments.sql
Normal file
27
models/reporting/core/core__verification_payments.sql
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
with
|
||||
int_core__verification_payments as (
|
||||
select * from {{ ref("int_core__verification_payments") }}
|
||||
)
|
||||
select
|
||||
vp.id_verification_to_payment as id_verification_to_payment,
|
||||
vp.id_payment as id_payment,
|
||||
vp.is_refundable as is_refundable,
|
||||
vp.payment_due_at_utc as payment_due_at_utc,
|
||||
vp.payment_due_date_utc as payment_due_date_utc,
|
||||
vp.payment_paid_at_utc as payment_paid_at_utc,
|
||||
vp.payment_paid_date_utc as payment_paid_date_utc,
|
||||
vp.payment_reference as payment_reference,
|
||||
vp.refund_due_at_utc as refund_due_at_utc,
|
||||
vp.refund_due_date_utc as refund_due_date_utc,
|
||||
vp.payment_refunded_at_utc as payment_refunded_at_utc,
|
||||
vp.payment_refunded_date_utc as payment_refunded_date_utc,
|
||||
vp.refund_payment_reference as refund_payment_reference,
|
||||
vp.id_guest_user as id_guest_user,
|
||||
vp.id_verification as id_verification,
|
||||
vp.verification_payment_type as verification_payment_type,
|
||||
vp.amount_in_txn_currency as amount_in_txn_currency,
|
||||
vp.currency as currency,
|
||||
vp.amount_in_gbp as amount_in_gbp,
|
||||
vp.payment_status as payment_status,
|
||||
vp.notes as notes
|
||||
from int_core__verification_payments vp
|
||||
Loading…
Add table
Add a link
Reference in a new issue