Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|---|---|---|---|
wager_id | int8 | 19 | null |
|
|
Ref: one-to-one see table wager |
|||||
wager_cancelled_on | timestamptz | 35,6 | √ | null |
|
|
Date this wager was cancelled |
||||
wager_cost | numeric | 15,5 | √ | null |
|
|
Cost of the wager |
||||
wager_commission | numeric | 15,5 | √ | null |
|
|
How much commission was made on this wager |
||||
wager_slip_fee | numeric | 15,5 | √ | null |
|
|
Deprecated: the ‘flagfall’ charged for the wager |
||||
entry_count | int4 | 10 | √ | null |
|
|
How many entries were purchased as part of this wager |
||||
dim_lottery_id | int4 | 10 | √ | null |
|
|
Ref: see table dim_lottery |
||||
dim_provider_id | int4 | 10 | √ | null |
|
|
Ref: see table dim_provider |
||||
is_syndicate | bool | 1 | √ | null |
|
|
Is this wager part of a syndicate purchase? |
||||
dim_pricing_id | int4 | 10 | null |
|
|
Ref: see table dim_pricing |
|||||
dim_channel_id | int4 | 10 | √ | null |
|
|
Ref: see table dim_channel |
||||
is_vip | bool | 1 | √ | null |
|
|
|||||
dim_affiliate_id | int4 | 10 | √ | null |
|
|
Ref: see table dim_affiliate |
||||
dim_recurring_purchase_type_id | int4 | 10 | √ | null |
|
|
lookup on dimension table dim_recurring_purchase_type |
||||
ticket_id | int4 | 10 | √ | null |
|
|
|||||
wager_serial | text | 2147483647 | √ | null |
|
|
Serial number from provider |
||||
initial_dim_channel_id | int4 | 10 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
wager_cancelled_pkey | Primary key | Asc | wager_id |
idx_wager_cancelled_dim_affiliate_id | Performance | Asc | dim_affiliate_id |
idx_wager_cancelled_dim_channel_id | Performance | Asc | dim_channel_id |
idx_wager_cancelled_dim_pricing_id_tk | Performance | Asc | dim_pricing_id |
idx_wager_cancelled_dim_recurring_purchase_type_id | Performance | Asc | dim_recurring_purchase_type_id |
idx_wager_cancelled_initial_dim_channel_id | Performance | Asc | initial_dim_channel_id |
idx_wager_cancelled_is_vip | Performance | Asc | is_vip |
idx_wager_cancelled_lottery_id_tk | Performance | Asc | dim_lottery_id |
idx_wager_cancelled_provider_id_tk | Performance | Asc | dim_provider_id |
idx_wager_cancelled_ticket_id | Performance | Asc | ticket_id |
idx_wager_cancelled_wager_cancelled_on_tk | Performance | Asc | wager_cancelled_on |