Relaciones de entidad para Snowflake y Braze
Ésta es la lista de relaciones de entidad entre Snowflake y Braze para cada canal de mensajería.
Relationship diagram
---
config:
layout: elk
elk:
mergeEdges: true
nodePlacementStrategy: LINEAR_SEGMENTS
---
erDiagram
EVENT["CONTENT_CARD_EVENT"] {
string id PK
string campaign_id FK
string campaign_updated_at
string canvas_id FK
string canvas_updated_at
string canvas_step_id FK
string canvas_step_updated_at
string canvas_variation_id FK
string device_id FK
string message_variation_id FK
string message_variation_updated_at
string canvas_step_message_variation_id FK
string canvas_step_message_variation_updated_at
string user_id FK
string abort_type
string abort_log
string app_group_id
string app_id
string content_card_id
string dispatch_id
string event_type
string external_user_id
string message_extras
string send_id
string time
string timezone
}
CHANGELOGS_CANVAS_SHARED {
string Id FK
string time
string app_group_id
string api_id
string name
string conversion_behaviors
string variations
}
SNAPSHOTS_CANVAS_FLOW_STEP_SHARED {
string Id FK
string time
string app_group_id
string type
string api_step_id
string experiment_splits
string conversion_behaviors
string name
}
SNAPSHOTS_CANVAS_STEP_SHARED {
string Id FK
string time
string app_group_id
string api_id
string name
string actions
}
SNAPSHOTS_CANVAS_VARIATION_SHARED {
string Id FK
string time
string app_group_id
string api_id
string name
}
SNAPSHOTS_EXPERIMENT_STEP_SHARED {
string Id FK
string time
string app_group_id
string type
string api_step_id
string experiment_splits
string conversion_behaviors
string name
}
CHANGELOGS_CAMPAIGN_SHARED {
string Id FK
string time
string app_group_id
string api_id
string name
string conversion_behaviors
string actions
}
SNAPSHOTS_CAMPAIGN_MESSAGE_VARIATION_SHARED {
string Id FK
string time
string app_group_id
string api_id
string name
}
CAMPAIGN_ENROLLMENT_EVENT {
string id PK
string campaign_id FK
string campaign_updated_at FK
string user_id FK
string external_user_id
string message_variation_id
string send_id
string time
string timezone
}
CAMPAIGN_CONVERSION_EVENT {
string id PK
string campaign_id FK
string campaign_updated_at FK
string conversion_behavior_index FK
string message_variation_id FK
string user_id FK
string event_type
string app_id
string external_user_id
string send_id
string time
string timezone
}
CANVAS_VARIATION {
string id PK
string name PK
string canvas_id FK
string canvas_updated_at FK
}
CANVAS_STEP {
string id PK
string canvas_id FK
string canvas_updated_at FK
string canvas_step_name
string channel_android_push
string channel_content_cards
string channel_email
string channel_ios_push
string channel_in_app_message
string channel_sms
string channel_web_push
string channel_webhook
}
CANVAS_ENTRY_EVENT {
string id PK
string canvas_id FK
string canvas_updated_at FK
string canvas_step_id FK
string canvas_step_updated_at FK
string canvas_variation_id FK
string user_id FK
string event_type
string external_user_id
string in_control_group
string time
string timezone
}
CANVAS_EXPERIMENT_STEP_ENTRY_EVENT {
string id PK
string canvas_id FK
string canvas_updated_at FK
string canvas_step_id FK
string canvas_step_updated_at FK
string canvas_variation_id FK
string user_id FK
string event_type
string experiment_split_id
string experiment_split_name
string experiment_step_id
string external_user_id
string in_control_group
string time
}
CANVAS_EXIT_EVENT {
string id PK
string canvas_id FK
string canvas_updated_at FK
string canvas_step_id FK
string canvas_step_updated_at FK
string canvas_variation_id FK
string user_id FK
string app_group_id
string event_type
string time
}
CANVAS_EXPERIMENT_STEP_CONVERSION_EVENT {
string id PK
string canvas_id FK
string canvas_updated_at FK
string canvas_step_id FK
string canvas_step_updated_at FK
string canvas_conversion_behaviour_id FK
string canvas_variation_id FK
string user_id FK
string app_id
string event_type
string experiment_step_id
string experiment_split_id
string experiment_split_name
string time
}
CANVAS_CONVERSION_EVENT {
string id PK
string canvas_id FK
string canvas_updated_at FK
string canvas_step_id FK
string canvas_conversion_behaviour_id FK
string canvas_variation_id FK
string user_id FK
string event_type
string app_id
string external_user_id
string time
string timezone
}
%% Relationships for Group Labels
GROUP_1["Campaign Snapshots and Log"] { }
CHANGELOGS_CAMPAIGN_SHARED ||--o{ GROUP_1 : joins
SNAPSHOTS_CAMPAIGN_MESSAGE_VARIATION_SHARED ||--o{ GROUP_1 : joins
GROUP_1 ||--o{ EVENT : joins
GROUP_2["Campaign Events"] { }
CAMPAIGN_ENROLLMENT_EVENT ||--o{ GROUP_2 : joins
CAMPAIGN_CONVERSION_EVENT ||--o{ GROUP_2 : joins
GROUP_2 ||--o{ EVENT : joins
GROUP_3["Canvas Events"] { }
CANVAS_ENTRY_EVENT ||--o{ GROUP_3 : joins
CANVAS_EXPERIMENT_STEP_ENTRY_EVENT ||--o{ GROUP_3 : joins
CANVAS_EXIT_EVENT ||--o{ GROUP_3 : joins
GROUP_3 ||--o{ EVENT : joins
GROUP_4["Canvas Steps"] { }
CANVAS_VARIATION ||--o{ GROUP_4 : joins
CANVAS_STEP ||--o{ GROUP_4 : joins
GROUP_4 ||--o{ EVENT : joins
GROUP_5["Canvas Experiments"] { }
CANVAS_EXPERIMENT_STEP_CONVERSION_EVENT ||--o{ GROUP_5 : joins
CANVAS_CONVERSION_EVENT ||--o{ GROUP_5 : joins
GROUP_5 ||--o{ EVENT : joins
GROUP_6["Canvas Snapshots and Log"] { }
CHANGELOGS_CANVAS_SHARED ||--o{ GROUP_6 : joins
SNAPSHOTS_CANVAS_FLOW_STEP_SHARED ||--o{ GROUP_6 : joins
SNAPSHOTS_CANVAS_STEP_SHARED ||--o{ GROUP_6 : joins
SNAPSHOTS_CANVAS_VARIATION_SHARED ||--o{ GROUP_6 : joins
SNAPSHOTS_EXPERIMENT_STEP_SHARED ||--o{ GROUP_6 : joins
GROUP_6 ||--o{ EVENT : joins
PK
= primary keyFK
= foreign key
Relationship tables
ABORT_SHARED
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// USERS_MESSAGES_CONTENTCARD_ABORT_SHARED
// An originally scheduled contentcard message was aborted for some reason.
{
"primary_key": {
"ID": "Globally unique ID for this event"
},
"foreign_keys": {
"USER_ID": "Braze user ID of the user who performed this event",
"EXTERNAL_USER_ID": "[PII] External ID of the user",
"DEVICE_ID": "ID of the device on which the event occurred",
"APP_GROUP_ID": "BSON ID of the app group this user belongs to",
"APP_GROUP_API_ID": "API ID of the app group this user belongs to",
"DISPATCH_ID": "ID of the dispatch this message belongs to",
"CAMPAIGN_ID": "BSON ID of the campaign this event belongs to",
"CAMPAIGN_API_ID": "API ID of the campaign this event belongs to",
"MESSAGE_VARIATION_API_ID": "API ID of the message variation this user received",
"CANVAS_ID": "BSON ID of the Canvas this event belongs to",
"CANVAS_API_ID": "API ID of the Canvas this event belongs to",
"CANVAS_VARIATION_API_ID": "API ID of the Canvas variation this event belongs to",
"CANVAS_STEP_API_ID": "API ID of the Canvas step this event belongs to",
"CANVAS_STEP_MESSAGE_VARIATION_API_ID": "API ID of the Canvas step message variation this user received"
},
"native_keys": {
"TIME": "UNIX timestamp at which the event happened",
"GENDER": "[PII] Gender of the user",
"COUNTRY": "[PII] Country of the user",
"TIMEZONE": "Time zone of the user",
"LANGUAGE": "[PII] Language of the user",
"ABORT_TYPE": "Type of abort, one of ['liquid_abort_message', 'quiet_hours', 'rate_limit']",
"ABORT_LOG": "[PII] Log message describing abort details (up to 128 chars)",
"SF_CREATED_AT": "when this event was picked up by the Snowpipe",
"SEND_ID": "Message send ID this message belongs to"
}
}
CLICK_SHARED
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// USERS_MESSAGES_CONTENTCARD_CLICK_SHARED
// When a user clicks a content card.
{
"primary_key": {
"ID": "Globally unique ID for this event"
},
"foreign_keys": {
"USER_ID": "Braze user ID of the user who performed this event",
"CONTENT_CARD_ID": "ID of the card that generated this event",
"EXTERNAL_USER_ID": "[PII] External ID of the user",
"APP_GROUP_ID": "BSON ID of the app group this user belongs to",
"APP_GROUP_API_ID": "API ID of the app group this user belongs to",
"APP_API_ID": "API ID of the app on which this event occurred",
"DISPATCH_ID": "ID of the dispatch this message belongs to",
"CAMPAIGN_ID": "BSON ID of the campaign this event belongs to",
"CAMPAIGN_API_ID": "API ID of the campaign this event belongs to",
"MESSAGE_VARIATION_API_ID": "API ID of the message variation this user received",
"CANVAS_ID": "BSON ID of the Canvas this event belongs to",
"CANVAS_API_ID": "API ID of the Canvas this event belongs to",
"CANVAS_VARIATION_API_ID": "API ID of the Canvas variation this event belongs to",
"CANVAS_STEP_API_ID": "API ID of the Canvas step this event belongs to",
"CANVAS_STEP_MESSAGE_VARIATION_API_ID": "API ID of the Canvas step message variation this user received",
"DEVICE_ID": "ID of the device on which the event occurred"
},
"native_keys": {
"TIME": "UNIX timestamp at which the event happened",
"GENDER": "[PII] Gender of the user",
"COUNTRY": "[PII] Country of the user",
"TIMEZONE": "Time zone of the user",
"LANGUAGE": "[PII] Language of the user",
"SDK_VERSION": "Version of the Braze SDK in use during the event",
"PLATFORM": "Platform of the device",
"OS_VERSION": "Version of the operating system of the device",
"DEVICE_MODEL": "Model of the device",
"RESOLUTION": "Resolution of the device",
"CARRIER": "Carrier of the device",
"BROWSER": "Device browser - extracted from user_agent - on which the open occurred",
"AD_ID_TYPE": "One of ['ios_idfa', 'google_ad_id', 'windows_ad_id', 'roku_ad_id']",
"AD_TRACKING_ENABLED": "Whether advertising tracking is enabled for the device",
"SF_CREATED_AT": "when this event was picked up by the Snowpipe",
"AD_ID": "[PII] Advertising identifier",
"SEND_ID": "Message send ID this message belongs to"
}
}
DISMISS_SHARED
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// USERS_MESSAGES_CONTENTCARD_DISMISS_SHARED
// When a user dismisses a content card.
{
"primary_key": {
"ID": "Globally unique ID for this event"
},
"foreign_keys": {
"USER_ID": "Braze user ID of the user who performed this event",
"CONTENT_CARD_ID": "ID of the card that generated this event",
"EXTERNAL_USER_ID": "[PII] External ID of the user",
"APP_GROUP_ID": "BSON ID of the app group this user belongs to",
"APP_GROUP_API_ID": "API ID of the app group this user belongs to",
"APP_API_ID": "API ID of the app on which this event occurred",
"DISPATCH_ID": "ID of the dispatch this message belongs to",
"CAMPAIGN_ID": "BSON ID of the campaign this event belongs to",
"CAMPAIGN_API_ID": "API ID of the campaign this event belongs to",
"MESSAGE_VARIATION_API_ID": "API ID of the message variation this user received",
"CANVAS_ID": "BSON ID of the Canvas this event belongs to",
"CANVAS_API_ID": "API ID of the Canvas this event belongs to",
"CANVAS_VARIATION_API_ID": "API ID of the Canvas variation this event belongs to",
"CANVAS_STEP_API_ID": "API ID of the Canvas step this event belongs to",
"CANVAS_STEP_MESSAGE_VARIATION_API_ID": "API ID of the Canvas step message variation this user received",
"DEVICE_ID": "ID of the device on which the event occurred"
},
"native_keys": {
"TIME": "UNIX timestamp at which the event happened",
"GENDER": "[PII] Gender of the user",
"COUNTRY": "[PII] Country of the user",
"TIMEZONE": "Time zone of the user",
"LANGUAGE": "[PII] Language of the user",
"SDK_VERSION": "Version of the Braze SDK in use during the event",
"PLATFORM": "Platform of the device",
"OS_VERSION": "Version of the operating system of the device",
"DEVICE_MODEL": "Model of the device",
"RESOLUTION": "Resolution of the device",
"CARRIER": "Carrier of the device",
"BROWSER": "Device browser - extracted from user_agent - on which the open occurred",
"AD_ID_TYPE": "One of ['ios_idfa', 'google_ad_id', 'windows_ad_id', 'roku_ad_id']",
"AD_TRACKING_ENABLED": "Whether advertising tracking is enabled for the device",
"SF_CREATED_AT": "when this event was picked up by the Snowpipe",
"AD_ID": "[PII] Advertising identifier",
"SEND_ID": "Message send ID this message belongs to"
}
}
IMPRESSION_SHARED
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// USERS_MESSAGES_CONTENTCARD_IMPRESSION_SHARED
// When a user views a content card.
{
"primary_key": {
"ID": "Globally unique ID for this event"
},
"foreign_keys": {
"USER_ID": "Braze user ID of the user who performed this event",
"CONTENT_CARD_ID": "ID of the card that generated this event",
"EXTERNAL_USER_ID": "[PII] External ID of the user",
"APP_GROUP_ID": "BSON ID of the app group this user belongs to",
"APP_GROUP_API_ID": "API ID of the app group this user belongs to",
"APP_API_ID": "API ID of the app on which this event occurred",
"DISPATCH_ID": "ID of the dispatch this message belongs to",
"CAMPAIGN_ID": "BSON ID of the campaign this event belongs to",
"CAMPAIGN_API_ID": "API ID of the campaign this event belongs to",
"MESSAGE_VARIATION_API_ID": "API ID of the message variation this user received",
"CANVAS_ID": "BSON ID of the Canvas this event belongs to",
"CANVAS_API_ID": "API ID of the Canvas this event belongs to",
"CANVAS_VARIATION_API_ID": "API ID of the Canvas variation this event belongs to",
"CANVAS_STEP_API_ID": "API ID of the Canvas step this event belongs to",
"CANVAS_STEP_MESSAGE_VARIATION_API_ID": "API ID of the Canvas step message variation this user received",
"DEVICE_ID": "ID of the device on which the event occurred"
},
"native_keys": {
"TIME": "UNIX timestamp at which the event happened",
"GENDER": "[PII] Gender of the user",
"COUNTRY": "[PII] Country of the user",
"TIMEZONE": "Time zone of the user",
"LANGUAGE": "[PII] Language of the user",
"SDK_VERSION": "Version of the Braze SDK in use during the event",
"PLATFORM": "Platform of the device",
"OS_VERSION": "Version of the operating system of the device",
"DEVICE_MODEL": "Model of the device",
"RESOLUTION": "Resolution of the device",
"CARRIER": "Carrier of the device",
"BROWSER": "Device browser - extracted from user_agent - on which the open occurred",
"AD_ID_TYPE": "One of ['ios_idfa', 'google_ad_id', 'windows_ad_id', 'roku_ad_id']",
"AD_TRACKING_ENABLED": "Whether advertising tracking is enabled for the device",
"SF_CREATED_AT": "when this event was picked up by the Snowpipe",
"AD_ID": "[PII] Advertising identifier",
"SEND_ID": "Message send ID this message belongs to"
}
}
SEND_SHARED
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// USERS_MESSAGES_CONTENTCARD_SEND_SHARED
// When we send a content card to a user.
{
"primary_key": {
"ID": "Globally unique ID for this event"
},
"foreign_keys": {
"USER_ID": "Braze user ID of the user who performed this event",
"EXTERNAL_USER_ID": "[PII] External ID of the user",
"DEVICE_ID": "ID of the device on which the event occurred",
"APP_GROUP_ID": "BSON ID of the app group this user belongs to",
"APP_GROUP_API_ID": "API ID of the app group this user belongs to",
"DISPATCH_ID": "ID of the dispatch this message belongs to",
"CAMPAIGN_ID": "BSON ID of the campaign this event belongs to",
"CAMPAIGN_API_ID": "API ID of the campaign this event belongs to",
"MESSAGE_VARIATION_API_ID": "API ID of the message variation this user received",
"CANVAS_ID": "BSON ID of the Canvas this event belongs to",
"CANVAS_API_ID": "API ID of the Canvas this event belongs to",
"CANVAS_VARIATION_API_ID": "API ID of the Canvas variation this event belongs to",
"CANVAS_STEP_API_ID": "API ID of the Canvas step this event belongs to",
"CANVAS_STEP_MESSAGE_VARIATION_API_ID": "API ID of the Canvas step message variation this user received",
"CONTENT_CARD_ID": "ID of the card that generated this event"
},
"native_keys": {
"TIME": "UNIX timestamp at which the event happened",
"GENDER": "[PII] Gender of the user",
"COUNTRY": "[PII] Country of the user",
"TIMEZONE": "Time zone of the user",
"LANGUAGE": "[PII] Language of the user",
"MESSAGE_EXTRAS": "[PII] A JSON string of the tagged key-value pairs during liquid rendering",
"SF_CREATED_AT": "when this event was picked up by the Snowpipe",
"SEND_ID": "Message send ID this message belongs to"
}
}
email.md snowflake_users_messages/ %}
featureflag.md snowflake_users_messages/ %}
newsfeedcard.md snowflake_users_messages/ %}
pushnotification.md snowflake_users_messages/ %}
sms.md snowflake_users_messages/ %}
webhook.md snowflake_users_messages/ %}
whatsapp.md snowflake_users_messages/ %}
New Stuff!