Data Models

Description of the format Aampe uses to store data

📘

These tables are provided as a reference to understand the data that we work with. It is not mandatory for you to provide us data in the exact format. We apply transformations as deemed necessary to translate your data streams and ingest into our system.

Read how Aampe works at Core Concepts

Events

Following is the data model Aampe uses to store app events and messaging events

Column NameData typeDescription
contact_id StringA unique user identifier
timestamp TimestampThe timestamp of when the event happened in UTC
event_name StringAn event name corresponding to the event that was triggered
event_instance_id String
(Optional)
An event identifier
timezoneString (Optional)Local timezone of the user/event - locale
metadata JSON
(Optional)
Any useful data points about the event
For example:
Product ID
Order value
Order Quantity

Event Properties

Please read more about examples here: Event Properties and User Events sample data

Events are majorly categorised by 2 types:

  1. User Events: There are the interactions that a user does with the app like a screen view, add-to-cart, purchase, add-to-wishlist etc.
  2. Messaging events: These are the system events related to communication like push-sent, push-opened, email-sent, email-unsubscribed, sms-sent etc.

User Properties

You can read about what user properties are and their significance with examples here: User Properties

Following is the data model Aampe uses to store properties about users

Column NameData TypeDescription
contact_idStringA unique user identifier
countryStringRequired
<property_1> (e.g language)......
<property_n> (e.g subscription_status)
push_tokenString (Optional)Token of the user that will be used to send out push-messages, if different from contact_id
phone_numberString (Optional)Email of the user that will be used to send out SMS and whatsapp messages, if different from contact_id
email_addressString (Optional)Email of the user that will be used to send out email messages, if different from contact_id