Streaks Fact Table

This table captures the streak event of the customers, where the consecutive instances of a task performed by a customer are tracked. These include the current streak count, unique identifiers for event, and streak, and timestamp for the record update.

Fact Table Name: user_streak_fact

User Streak Fact - Entity Relationship Diagram (ERD)

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

User Streak Factauto_update_time: bigintcurrent_count: bigintdim_event_date_id: bigintdim_event_time_id: bigintdim_event_user_id: bigintdim_latest_updated_date_id: bigintdim_latest_updated_time_id: bigintdim_streak_id: bigintdim_streak_status_id: stringPKid: bigintyear: intStreaksLKstreak_id: bigintstreak_name: stringtarget-sequence-count: intStreak StatusLKid: intvalue: 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: 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: bigintUsers

Legend

PK   Primary Key

LK   Linking Key

Fact Table
Dimension Table
StreaksStreak StatusUser Streak Fact

User Streak Fact Table

Column nameData typeDescriptionLinked Table
auto_update_timebigintDate and time when the corresponding record in the streaks table available at the source was last updated. It is in the Unix timestamp format._
current_countbigintDenotes the streak count (number of times the customer has performed the task in a row)._
dim_event_date_idbigintStart date of the streak.date
dim_event_time_idbigintStart time of the streak.time
dim_event_user_idbigintIdentifier for the user associated with the streak. It is an internally assigned value by Capillary for user identification.users
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_streak_idbigintIdentifier linking to a table containing streak information.streaks
dim_streak_status_idstringIdentifier linking to a table containing streak status information.streak_status
idbigintUnique identifier of the table._
yearintYear of the streak._