Skip to main content

VIP Levels

Defines the VIP tier structure for each brand, including progression thresholds, cashback rates, bonuses, and perks. Each brand has its own set of VIP levels.

Table Comment

VIP levels with cashback configuration. Cashback is calculated as percentage of NGR (GGR - bonus releases)

Relationships

Columns

ColumnTypeNullableDefaultDescription
idintegerNOnextval(...)Primary key (auto-increment)
brand_iduuidNOFK to brands. VIP levels are brand-specific.
company_iduuidNOFK to companies. Parent company.
level_namevarchar(50)NODisplay name (e.g., "Bronze", "Silver", "Gold", "Platinum", "Diamond")
level_rankintegerNONumeric rank for ordering (1 = lowest, higher = better)
required_wageringnumeric(18)NOLegacy wagering amount required (superseded by points_required)
points_requirednumeric(18)YES0VIP points needed to reach this level. Formula: 1 SC wagered = 1 point, 100,000 GC = 1 point
dollar_valuenumeric(18)YES0Approximate dollar value of wagering to reach this level (for reference/display)
descriptiontextYESDescription of the VIP level benefits and conditions
image_urlvarchar(500)YESURL to the VIP level badge/image
icon_urlvarchar(500)YESURL to the VIP level icon

Cashback Configuration

ColumnTypeNullableDefaultDescription
cashback_percentagenumeric(5)YESCashback percentage for this VIP level (0.000 - 100.000). Applied in vip_daily_cashback_log.
cashback_max_amountnumeric(18)YESMaximum daily cashback amount. Caps the cashback calculation.

Bonus & Reward Multipliers

ColumnTypeNullableDefaultDescription
daily_bonus_multipliernumeric(5)YES1.0Multiplier applied to base daily login rewards. 1.0 = 100%, 1.1 = 110%, 1.5 = 150%.
store_multipliernumeric(5)YES1.0Store purchase multiplier for coin packages. 1.5 = 50% bonus coins on purchase.
tier_up_gc_rewardnumeric(18)YES0One-time GC reward granted when a player reaches this VIP level

Birthday Gifts

ColumnTypeNullableDefaultDescription
birthday_gc_giftnumeric(18)YES10Birthday gift GC amount
birthday_sc_giftnumeric(18)YES10Birthday gift SC amount

VIP Perks (Boolean Flags)

ColumnTypeNullableDefaultDescription
monthly_bonus_enabledbooleanYESfalseWhether monthly bonus is available
priority_redemptionbooleanYESfalseWhether player gets priority redemption processing
priority_supportbooleanYESfalseWhether player gets priority customer support
vip_hostbooleanYESfalseWhether player gets a personal VIP host

Deprecated Columns

ColumnTypeDefaultStatus
daily_sc_bonusnumeric(18)0DEPRECATED — Use daily_bonus_multiplier instead
weekly_gc_bonusnumeric(18)0DEPRECATED — No longer used
weekly_sc_bonusnumeric(18)0DEPRECATED — No longer used
weekly_bonus_enabledbooleanfalseDEPRECATED — No longer used

Timestamps

ColumnTypeNullableDefaultDescription
created_attimestampYESCURRENT_TIMESTAMPRecord creation timestamp
updated_attimestampYESCURRENT_TIMESTAMPLast update timestamp

Key Indexes

IndexColumnsNotes
vip_levels_pkeyidPrimary key
idx_vip_levels_brand_rankbrand_id, level_rankOrdered levels per brand
idx_vip_levels_brand_pointsbrand_id, points_required DESCFind level by points threshold

Business Rules

  • Each brand defines its own independent VIP level hierarchy
  • VIP points drive level progression: when a player's vip_points in user_vip_status crosses points_required, they tier up
  • The daily_bonus_multiplier is applied to the base rewards from daily_login_rewards: final_reward = base_reward * daily_bonus_multiplier
  • The store_multiplier gives VIP players bonus coins on coin package purchases
  • tier_up_gc_reward is a one-time reward, tracked via vip_tier_up entries in player_sweepstakes_rewards
  • Birthday gifts are claimable once per year, tracked by last_birthday_gift_claimed_year in user_vip_status
  • Cashback is calculated daily — see vip_daily_cashback_log for the full cashback workflow
  • VIP perks (priority_redemption, priority_support, vip_host) are feature flags checked by the application layer