deposit

-1 rows


Description

Table represents deposit specific data related to transactions

Columns

Column Type Size Nulls Auto Default Children Parents Comments
deposit_id int4 10 null
deposit_status_history.deposit_id deposit_status_history_account_deposit_id_fkey R

Primary key: an identifier for this record

customer_id int4 10 null
customer.customer_id deposit_customer_id_fkey R

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
dim_transfer_method.dim_transfer_method_id deposit_dim_transfer_method_id_fkey R

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.account_transaction_id deposit_account_transaction_id_fkey R

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
dim_date.dim_date_id deposit_dim_date_id_fkey R

When this deposit was made (link to dim_date)

dim_channel_id int4 10 null
dim_channel.dim_channel_id deposit_dim_channel_id_fkey R

Which channel this deposit was made under (link to dim_channel)

administrator_id int4 10 null
administrator.administrator_id deposit_administrator_id_fkey R

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

Relationships