Charge Pricings

Table name: charge_pricings

Contains pricing and payment information for charging sessions. This model
combines charge pricing data with related financial attributes like costs,
payment methods, and pricing details.

SQL: charge_pricings

Schema

Column NameData TypeDescription
Primary ID
idINTEGERPrimary key
Other IDs
charge_idINTEGERReferences the associated charging session
tariff_idINTEGERReferences the applied pricing tariff
currency_idINTEGERReferences the currency for the charge price
cost_price_group_idINTEGERReferences the cost price group configuration
paying_team_idINTEGERReferences the team responsible for payment
paying_operator_idINTEGERReferences the operator responsible for payment
sponsor_team_idINTEGERReferences the team sponsoring or subsidizing the charge
promotion_code_idINTEGERReferences any applied promotional discount code
price_group_idINTEGERReferences the price group determining the rate structure
Timestamps
created_atTIMESTAMP_NTZTimestamp when the pricing record was created
updated_atTIMESTAMP_NTZTimestamp when the pricing record was last modified
paying_atTIMESTAMP_NTZTimestamp when payment was processed
Attributes
priceNUMBERFinal price charged for the session
reservation_priceNUMBERPrice allocated for the charging reservation
estimated_priceNUMBERProjected cost before charging session completion
original_priceNUMBERBase price before any adjustments or discounts
costNUMBERActual cost incurred for providing the charging service
payment_methodVARCHARMethod used for payment (e.g., 'free', 'team_has_funds', 'team_has_auto_refill', or 'payment')
payment_method_typeVARCHARFurther categorization of the payment method (e.g., 'team_wallet', 'free', 'card', 'google_pay', 'apple_pay', 'adyen', etc)
payment_typeVARCHARFurther classification of payment types if applicable (e.g., stripe charge, wallet payment, adyen payment, etc.)
estimated_charge_minutesINTEGERProjected duration of charging session in minutes
payment_failedBOOLEANIndicates whether the payment transaction failed
price_limitNUMBERMaximum price threshold set for the charging session
source_failedBOOLEANIndicates whether the payment source encountered an error
source_typeVARCHARClassification of the payment source or origin (e.g., stripe source)

Inclusion Criteria

-- requires that charge_idis among ids in charges

where charge_id in select (id from charges)

Data Flow

Upstream tablesUpstream tables
chargesnone

Did this page help you?