Rewards Fact Table

This table captures details of rewards issued to customers. It includes unique identifiers for brands/ organizations, and promotions, points deducted, vouchers issued, and associated expiry dates within the Intouch system.

Databricks Table Name: reward_issue_fact

Reward Issue Fact - Entity Relationship Diagram (ERD)

Zoom in the table for more clarity. Click the table title to view its details.

Reward Issue Factbrand_id: bigintPKId: bigintintouch_points_deducted: stringintouch_user_id: bigintintouch_voucher: stringintouch_voucher_expiry: stringissued_ref_id: stringyear: intorg_id: bigintpoints_ref_id: bigintreward_promotion_link_id: bigintvendor_reward: stringdim_catalog_promotion_id: bigintdim_event_date_id: bigintdim_latest_updated_date_id: bigintdim_latest_updated_time_id: bigintdim_reward_id: bigintdim_reward_issue_update_on_id: bigintReward Catalog Promotionname: stringLKid: bigintlanguage_code: stringRewardsname: stringredemption_type: stringLKid: bigintis_enabled: intreward_type: stringdateLKdate_id: intday_of_month: intweek_of_year: intmonth: stringyear: intquarter: stringweek_number: intweek_start_date: stringweek_end_date: stringday_of_week: stringmonth_no: intmonth_no_of_year: intmonth_of_year: stringday_of_week_no: intquarter_no: intyearly_quarter_no: intdate: stringDateTimeLKtime_id: biginttime: stringhour_of_day: intminute_of_day: intday_shift: stringday_shift_no: inthour_range: stringTimeRewards Issue FactRewardsReward Catalog Promotion

Legend

PK   Primary Key

LK   Linking Key

Fact Table
Dimension Table

Reward Issue Fact Table

Column NameData TypeDescriptionLinked Table
brand_idbigintUnique identifier of the brand._
IdbigintUnique identifier for the table._
intouch_points_deductedstringPoints deducted for the reward in the Intouch system._
intouch_user_idbigintIntouch user ID of the customer._
intouch_voucherstringVoucher associated with the reward within the Intouch system._
intouch_voucher_expirystringDate and time for the voucher expiry in the Intouch system._
issued_ref_idstringReference ID for cart promotion or gift voucher._
org_idbigintIdentifier associated with the org._
points_ref_idbigintReference ID for points-related transactions, and is null for transactions that are free or paid with cash._
reward_promotion_link_idbigintIdentifier for the promotion that is linked to the reward._
vendor_rewardstringReward provided by the vendor._
dim_catalog_promotion_idbigintIdentifier for the catalogue promotion.rewards_catalogue_promotion
dim_event_date_idbigintDate when the reward is issued.date
dim_latest_updated_date_idbigintDate when the data corresponding to this event/ row is changed in the source table.date
dim_latest_updated_time_idbigintTime when the data corresponding to this event/ row is changed in the source table.time
dim_reward_idbigintIdentifier of the reward.rewards
dim_reward_issue_update_on_idbigintThe time at which the reward was issued.time
yearintegerYear of the reward._