Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | text | 2147483647 | null |
|
|
|||||||||
| room_id | text | 2147483647 | null |
|
|
|||||||||
| 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 |
|
|
||||||||
| paid_at | timestamptz | 35,6 | √ | null |
|
|
||||||||
| created_at | timestamptz | 35,6 | now() |
|
|
|||||||||
| customer_id | text | 2147483647 | √ | null |
|
|
||||||||
| 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 |