Slab Change Log Fact Table

This table captures the event wherein slab change for a customer occurs, such as the date and time of slab change, the associated customer, and the store where the slab change occurred.

Databricks Table Name: slab_change_log

Slab Change Log - Entity Relationship Diagram (ERD)

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

Slab Change LogAuto_Update_Time_Slab_Upgrade: bigintdim_customer_slab_id: intdim_event_date_id: bigintdim_event_program_id: intdim_event_time_id: bigintdim_event_user_id: bigintdim_event_zone_till_id: bigintdim_latest_updated_date_id: bigintdim_latest_updated_time_id: bigintdim_previous_slab_id: bigintPKdim_scd_type_id: intdim_slab_change_action_id: stringdim_slab_change_source_id: stringdim_upgrade_event_type_id: bigintevent_date_time: bigintevent_source_id: bigintPKid: bigintnotes: stringslab_name: stringuser_id: bigintyear: intCustomer Slabslab_name: stringLKslab_no: bigintauto_update_program_slab: bigintserial_no: bigintSDC TypeLKid: biginttype: stringSlab Change ActionLKid: bigintslab_change_action: stringSlab Change SourceLKid: bigintslab_change_source: stringUpgrade Event TypeLKid: intcategory: stringname: stringSlab Change LogCustomer SlabSDC TypeSlab Change ActionSlab Change SourceUpgrade Event TypedateLKdate_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: stringTimeusersauto_update_merged_customer: bigintauto_update_loyalty: bigintfraud_status: stringtest_control_bucket: stringis_merged_customer: stringsubscription_status_email_bulk: stringfirst_name: stringslab_name: stringsubscription_status_wechat_bulk: stringemail: stringlast_name: stringmerged_user_id: bigintLKuser_id: bigintsubscription_status_wechat_trans: stringsubscription_status_sms_bulk: stringndnc_status: stringsubscription_status_email_trans: stringtest_control_status: stringauto_update_fraud_user: bigintis_inactive: stringsource: stringslab_number: intauto_update_users: bigintregistered_till_id: bigintauto_update_customer_enrollment: bigintslab_expiry_date: stringcustomer_external_id: stringsubscription_status_sms_trans: stringmobile: stringloyalty_type: stringauto_update_ndnc_status: bigintUsersZone_tillsstore_country: stringexternal_id_1: stringstore: stringauto_update_till_parent: bigintarea: stringstore_name: stringstore_city: stringstore_state: stringtill: stringauto_update_till_store_relation: bigintis_ffc_enabled: stringLKtill_id: biginttype: stringtill_description: stringauto_update_till: bigintstore_channel: stringexternal_id: stringis_billable: stringstore_id: bigintis_active: stringauto_update_store: bigintstore_description: stringlatitude: stringtimezone: stringexternal_id_2: stringtill_name: stringzone_name: stringZone TillsProgrampoints_currency_ratio: integerauto_update_time: stringredeemable_point_category_id: integerLKprogram_id: integeris_active: stringprogram_name: stringis_default: stringdescription: stringProgram

Legend

PK   Primary Key

LK   Linking Key

Fact Table
Dimension Table

Slab Change Log Fact Table

Column NameData TypeDescriptionLinked TableAvailability for Export in the Slab Change Log Template
Auto_Update_Time
_Slab_Upgrade
bigintDate and time when the corresponding record in the slab change log table available at the source was last updated. It is in the Unix timestamp format._Yes; Measure Name: Auto Update Time Slab Upgrade
dim_customer_slab_idintegerIdentifier of the slab to which the customer currently belongs.customer_slabYes; Dimension Name: Customer Slab
dim_event_date_idbigintDate when the slab change occurred.dateYes; Dimension Name: Date
dim_event_program_idintegerIdentifier of the program associated with the customer's slab change.program
dim_event_time_idbigintTime when the slab change occurred.timeYes; Dimension Name: Time
dim_event_user_idbigintUnique identifier for the customer assigned by Capillary.usersYes; Dimension Name: User Id
dim_event_zone_till_idbigintIdentifier assigned to the point-of-sale (POS) terminal within a store, where the customer's slab change occurred. It distinguishes one checkout location from another.zone_tillsYes; Dimension Name: Store Hierarchy > Till Id
dim_latest_updated
_date_id
bigintDate when the data corresponding to this event/row is changed in the source table.dateYes; Dimension Name: Latest Updated Date
dim_latest_updated
_time_id
bigintTime when the data corresponding to this event/row is changed in the source table.timeYes; Dimension Name: Latest Updated Time
dim_previous_slab_idbigintSlab ID of the customer prior to the slab change.customer_slabYes; Dimension Name: Previous Customer Slab
dim_scd_type_idintegerUnique identifier and primary key of the table.scd_typeYes; Dimension Name: Scd Type
dim_slab_change
_action_id
stringIndicates the action associated with the slab change. Possible values are - Upgrade, downgrade, and renewal.slab change actionYes; Dimension Name: Slab Change Action
dim_slab_change
_source_id
stringSource ID associated with the customer's slab change. Possible values are - Import, merge, rule, strategy, partner program, etc.slab_change_sourceYes; Dimension Name: Slab Change Source
dim_upgrade
_event_type_id
bigintIdentifier for the type of event that caused the customer's slab upgrade. Possible values are - Customer registration, new bill, points redemption, voucher redemption, campaign referral, etc.upgrade_event_typeYes; Dimension Name: Slab Upgrade Event Type
event_date_timebigintDate and time when the slab change occurred._Yes; Measure Name: Event Date Time
event_source_idbigintIdentifier for the event._Yes; Measure Name: Event Source Id
idbigintUnique identifier and primary key of the table. Refers to the change log id._Yes; Measure Name: Id
notesstringAdditional details or notes related to the slab change._Yes; Measure Name: Notes
slab_namestringThe name of the slab to which the customer migrated after the change._Yes; Measure Name: Slab Name
user_idbigintIdentifier for the customer._Yes; Measure Name: User Id
yearintegerYear when the slab change occurred._Yes; Dimension Name: Year