Nsadmin Messages Fact Table

This fact table captures all communications sent to customers. It lets you access both, transaction and campaign messages together.

Databricks Table Name: nsadmin_messages

Nsadmin Messages - Entity Relationship Diagram (ERD)

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

Nsadmin Messagesauto_update_time_nsadmin: bigintclient_context_id: bigintclient_id: bigintdim_account_id: bigintdim_campaign_id: bigintdim_communication_channel_id: bigintdim_communication_client_id: bigintdim_delivery_status_id: bigintdim_event_date_id: bigintdim_event_time_id: bigintdim_event_user_id: bigintdim_latest_updated_date_id: bigintdim_latest_updated_time_id: bigintdim_nsadmin_priority_id: bigintmessage: stringmessage_count: bigintPKnsadmin_id: bigintyear: intGatewayshort_name: stringauto_update_gateways: bigintLKid: bigintfull_name: stringhost_name: stringNsadmin PriorityLKid: intpriority: stringCommunication ClientLKid: intname: stringdescription: stringNsadmin MessagesGatewayNsadmin PriorityCommunication ClientCommunication ChannelLKid: integerchannel: stringactivity_name: stringCommunication ChanneldateLKdate_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: stringTimeCampaignsis_recurring: stringcampaign_end_date: stringis_migrated: stringauto_update_campaign: bigintLKcampaign_id: bigintcampaign_type: stringroi_type: stringcampaign_start_date: stringname: stringCampaignsCampaign Delivery StatusLKstatus_id: bigintveneno_status_label: stringcampaign_legend_status_id: integercampaign_legend_label: stringCampaign Delivery Statususersauto_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

Nsadmin Messages Fact Table

Column NameData TypeDescriptionLinked TableAvailability for Export in the Messages Template
auto_update_time_nsadminbigintDate and time when the corresponding record in the nsadmin table available at the source was last updated. It is in the Unix timestamp format._Yes; Measure Name: Auto Update Time Nsadmin
client_context_idbigintThe context ID to which the message belongs. If the message is triggered by campaigns, it will be the communication details ID._Yes; Measure Name: Client Context Id
client_idbigintIdentifier of the client that triggered the message, such as campaigns. Each module has a unique static ID._Yes; Measure Name: Client Id
dim_account_idbigintIdentifier for the gateway account used for the communication.gatewayYes; Dimension Name: Gateway Account > Id
dim_campaign_idbigintCaptures the campaign details for which the communication occurred.campaignsYes; Dimension Name: Campaign > Campaign Id
dim_communication
_channel_id
bigintIndicates the channel used for communicating with the customer. Possible values are - SMS, email, voicemail, Wechat, Facebook, Viber, etc.communication
_channel Link
Yes; Dimension Name: Communication Channel > Id
dim_communication
_client_id
bigintIdentifier of the client associated with the communication. Possible values are - Loyalty, promotion, referral, etc.communication
_client Link
Yes; Dimension Name: Communication Client > Id
dim_delivery_status_idbigintIdentifier assigned to the nsadmin message delivery status. Possible values are - Delayed delivery, clicked, opened, received, read, sending, sent, blocked, etc.campaign_delivery
_status Link
Yes; Dimension Name: Delivery Status > Id
dim_event_date_idbigintDate of the communication.dateYes; Dimension Name: Date > Date
dim_event_time_idbigintTime of the communication.timeYes; Dimension Name: Time > Time Id
dim_event_user_idbigintIdentifier of the customer for which the communication occurred, set internally by Capillary.usersYes; Dimension Name: User > User 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 > 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 > Time Id
dim_nsadmin_priority_idbigintIdentifier of the nsadmin message priority. Possible values are - High, default, and bulk.nsadmin_priorityYes; Dimension Name: Nsadmin Priority > Id
messagestringContent of the message._Yes; Measure Name: Message
message_countbigintTotal number of messages sent._Yes; Measure Name: Message Count
nsadmin_idbigintUnique id of the message as available in the nsadmin table. It is the primary key of the table._Yes; Measure Name: Nsadmin Id
yearintYear when the communication was sent._Yes; Dimension Name: Year