Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|---|---|---|---|
id | INT | 10 | √ | null |
|
|
|||||
stripeCheckoutSessionId | VARCHAR | 255 | null |
|
|
||||||
stripePaymentIntentId | VARCHAR | 255 | √ | NULL |
|
|
|||||
athleteId | BIGINT | 19 | null |
|
|
||||||
amount | INT | 10 | null |
|
|
||||||
platformFee | INT | 10 | null |
|
|
||||||
status | enum('pending', 'succeeded', 'failed', 'refunded', 'expired', 'partially_refunded') | 18 | 'pending' |
|
|
||||||
metadata | LONGTEXT | 2147483647 | √ | NULL |
|
|
|||||
errorMessage | TEXT | 65535 | √ | NULL |
|
|
|||||
refundedAmount | INT | 10 | √ | NULL |
|
|
|||||
createdAt | TIMESTAMP | 19 | √ | current_timestamp() |
|
|
|||||
updatedAt | TIMESTAMP | 19 | √ | current_timestamp() |
|
|
|||||
frequency | enum('subscribe', 'tip') | 9 | 'tip' |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | id |
idx_athlete | Performance | Asc | athleteId |
idx_payment_intent | Performance | Asc | stripePaymentIntentId |
idx_refunded_amount | Performance | Asc | refundedAmount |
idx_status | Performance | Asc | status |
stripeCheckoutSessionId | Must be unique | Asc | stripeCheckoutSessionId |
stripePaymentIntentId | Must be unique | Asc | stripePaymentIntentId |
stripePaymentIntentId_2 | Must be unique | Asc | stripePaymentIntentId |