Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|---|---|---|---|
deposit_id | int4 | 10 | null |
|
|
Primary key: an identifier for this record |
|||||
customer_id | int4 | 10 | √ | null |
|
|
Ref: many-to-one to customer |
||||
deposit_method | varchar | 2 | √ | null |
|
|
Short form id of how the deposit was made. See deposit.deposit_method_name |
||||
currency_id | varchar | 3 | √ | null |
|
|
ISO currency code this deposit was made in |
||||
dim_transfer_method_id | int4 | 10 | √ | null |
|
|
See table dim_transfer_method |
||||
amount | numeric | 14,2 | √ | null |
|
|
How much the deposit was for |
||||
deposit_timestamp | timestamptz | 35,6 | √ | null |
|
|
When the deposit was initially made |
||||
account_transaction_id | int8 | 19 | √ | null |
|
|
Account transaction record this deposit relates to |
||||
payment_gateway_id | int4 | 10 | √ | null |
|
|
ID of the payment gateway used to make the deposit. See payment_gateway_name |
||||
customer_funds_id | int4 | 10 | √ | null |
|
|
Which fund was used to make the deposit. See also deposit.customer_funds_type_name |
||||
login_session_id | int8 | 19 | √ | null |
|
|
ID related to the login session at the time the deposit was made |
||||
payment_gateway_name | text | 2147483647 | √ | null |
|
|
Which payment gateway was used to make this deposit |
||||
deposit_method_name | text | 2147483647 | √ | null |
|
|
How the deposit was made |
||||
customer_funds_type_name | text | 2147483647 | √ | null |
|
|
Bank/CC/PayPal |
||||
dim_date_id | int4 | 10 | √ | null |
|
|
When this deposit was made (link to dim_date) |
||||
dim_channel_id | int4 | 10 | √ | null |
|
|
Which channel this deposit was made under (link to dim_channel) |
||||
administrator_id | int4 | 10 | √ | null |
|
|
Id of the agent/admin who made this deposit on behalf of a customer |
||||
deposit_encoded_id | text | 2147483647 | √ | null |
|
|
External reference to this deposit |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
deposit_pkey | Primary key | Asc | deposit_id |
idx_deposit_account_transaction_id | Performance | Asc | account_transaction_id |
idx_deposit_administrator_id | Performance | Asc | administrator_id |
idx_deposit_customer_id | Performance | Asc | customer_id |
idx_deposit_dim_channel_id | Performance | Asc | dim_channel_id |
idx_deposit_dim_transfer_method_id | Performance | Asc | dim_transfer_method_id |
idx_deposit_encoded_id | Performance | Asc | deposit_encoded_id |