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 Name

Data Type

Description

Linked Table

Availability for Export in the

Messages

Template

auto_update_time_nsadmin

bigint

Date 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_id

bigint

The 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_id

bigint

Identifier of the client that triggered the message, such as campaigns. Each module has a unique static ID.

Yes; Measure Name: Client Id

dim_account_id

bigint

Identifier for the gateway account used for the communication.

gateway

Yes; Dimension Name: Gateway Account > Id

dim_campaign_id

bigint

Captures the campaign details for which the communication occurred.

campaigns

Yes; Dimension Name: Campaign > Campaign Id

dim_communication

  • channel_id

bigint

Indicates the channel used for communicating with the customer. Possible values are - SMS, email, voicemail, Wechat, Facebook, Viber, etc.

communication

Yes; Dimension Name: Communication Channel > Id

dim_communication

  • client_id

bigint

Identifier of the client associated with the communication. Possible values are - Loyalty, promotion, referral, etc.

communication

Yes; Dimension Name: Communication Client > Id

dim_delivery_status_id

bigint

Identifier assigned to the nsadmin message delivery status. Possible values are - Delayed delivery, clicked, opened, received, read, sending, sent, blocked, etc.

campaign_delivery

Yes; Dimension Name: Delivery Status > Id

dim_event_date_id

bigint

Date of the communication.

date

Yes; Dimension Name: Date > Date

dim_event_time_id

bigint

Time of the communication.

time

Yes; Dimension Name: Time > Time Id

dim_event_user_id

bigint

Identifier of the customer for which the communication occurred, set internally by Capillary.

users

Yes; Dimension Name: User > User Id

dim_latest_updated

  • date_id

bigint

Date when the data corresponding to this event/ row is changed in the source table.

date

Yes; Dimension Name: Latest Updated Date > Date

dim_latest_updated

  • time_id

bigint

Time when the data corresponding to this event/ row is changed in the source table.

time

Yes; Dimension Name: Latest Updated Time > Time Id

dim_nsadmin_priority_id

bigint

Identifier of the nsadmin message priority. Possible values are - High, default, and bulk.

nsadmin_priority

Yes; Dimension Name: Nsadmin Priority > Id

message

string

Content of the message.

Yes; Measure Name: Message

message_count

bigint

Total number of messages sent.

Yes; Measure Name: Message Count

nsadmin_id

bigint

Unique id of the message as available in the nsadmin table. It is the primary key of the table.

Yes; Measure Name: Nsadmin Id

year

int

Year when the communication was sent.

Yes; Dimension Name: Year