deal_payments


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id text 2147483647 null
deal_downloads.payment_id deal_downloads_payment_id_fkey R
deal_refunds.payment_id deal_refunds_payment_id_fkey R
room_id text 2147483647 null
deal_rooms.id deal_payments_room_id_fkey R
stripe_session_id text 2147483647 null
stripe_payment_intent text 2147483647 null
amount_cents int4 10 null
currency text 2147483647 'usd'::text
status text 2147483647 'pending'::text
customer_email text 2147483647 null
timestamptz 35,6 null
created_at timestamptz 35,6 now()
customer_id text 2147483647 null
deal_customers.id deal_payments_customer_id_fkey R
billing_address jsonb 2147483647 null
phone text 2147483647 null
custom_fields jsonb 2147483647 null
payment_method text 2147483647 null
fee_cents int4 10 0

Indexes

Constraint Name Type Sort Column(s)
deal_payments_pkey Primary key Asc id
deal_payments_stripe_session_id_key Must be unique Asc stripe_session_id
idx_payments_customer Performance Asc customer_id
idx_payments_room Performance Asc room_id
idx_payments_session Performance Asc stripe_session_id

Relationships