Prepare Your Data for Optimove- Lottery

Required Data Tables

The following data tables describe the content, format, and labels of the required data.

  1. Customers – Each row describes the attributes of a single customer
  2. Transactions – lists all transactions that affect the player's account balance
  3. Draws – Contains a record of all purchase draws for all players
  4. Draw_Types – Contains a record of all purchase draws for all players

Important*:* All monetary figures must be converted into a single consistent currency.

Customers

KeyFieldData TypeDescription
PKPlayer_ID**string/intUnique player identifier
Registration_Date**dateDate the player registered
Email*stringMandatory when using Optimail or if required by external ESP
Mobile_Number*stringMandatory if required by external service provider
Date_Of_BirthdatePlayer's date of birth
Is_OptInstringDetermines whether it is acceptable to send promotional messages to the specified player. Should hold the values 'Yes' or 'No'.
Allow_Email*stringDetermines whether sending promotional Email messages to the specified email address is acceptable. Should hold the values 'Yes' or 'No'.
Allow_SMS*stringDetermines whether sending promotional SMS messages to the specified mobile address is acceptable. Should hold the values 'Yes' or 'No'.
Allow_Push*stringDetermines whether sending promotional Push messages to the specified mobile number is acceptable. Should hold the values 'Yes' or 'No'.
Is_Email_VerifiedstringDetermines whether the email address is verified. Should hold the values 'Yes' or 'No'.
Is_SMS_VerifiedstringDetermines whether the mobile number is verified. Should hold the values 'Yes' or 'No'.
Is_Blockedstring'No’ = regular player; 'Yes’ = blocked player (e.g. fraud)
Is_Teststring'No’ = regular player; 'Yes’ = test player
GenderstringPlayer’s gender. Must hold values ‘Male’, ‘Female’, ‘Unknown’
CountrystringPlayer’s country
CitystringPlayer’s city
AddressstringPlayer’s address
First_NamestringPlayer’s first name
Last_NamestringPlayer’s last name
LanguagestringPlayer's language
BalanceDecimal/intThe monetary value of a player’s current balance
Casino_NamestringWhen multiple casino platforms exist
AliasstringUser name
CurrencystringPlayer’s currency
Referral_TypestringThe method by which the player was referred to your site (e.g., SEO, Affiliate, Advertising, Marketing, etc.).
Affiliate_IDstringAffiliate identifier or name
Registered_PlatformstringThe platform the player had registered with (e.g. Web, Android App, iOS App, etc.)
Last_Login_DatedateThe date of the player’s last login to the website
Allow_WhatsappstringDetermines whether sending promotional WhatsApp messages to the specified mobile number is acceptable. Should hold the values 'Yes' or 'No'.
LastUpdateddateDate when the record was last modified or added (Mandatory in case of DB to DB connection)
Is_Optin_Email_Time_Stamp*TimestampDetermines from when it is acceptable to send promotional Email messages to the specified email address in case of approval

Notes:

  • Please include any additional information that you find helpful
  • IsOptinEmailTimeStamp* - In case Optimove will manage the “unsubscribe” for the Opti-Mail integration please include an additional column to describe when the customer opts in \ out, to allow perfect sync with the daily batch.

*=Mandatory if required for the execution channel integration

**=Always mandatory

Transactions

KeyFieldData TypeDescription
PKTransaction_ID**stringUnique transaction identifier
Player_ID**stringUnique player identifier
Transaction_Date**dateTransaction date
Transaction_TimestamptimestampTransaction Timestamp
Transaction_Type**stringTransaction type. Should hold values 'DEPOSIT', 'WITHDRAWAL', or 'BONUS'
Transaction_Amount**decimalMonetary value of the transaction
PlatformstringPlatform from which the transaction made (e.g. Web, Mobile, Download)
Status**stringTransaction status (e.g. Approved, Rejected, Pending). Must have status ‘Approved’ for approved transactions.
Last_UpdatedDateDate when the record was last modified or added (Mandatory in case of DB to DB connection)

Notes:

  • Any other gaming dimension available can be added if needed.

**=Always mandatory

Draws

KeyFieldData TypeDescription
PKGame_DatedateDate of game
PK, FKPlayer_ID**stringUnique player identifier
PK, FKGame_ID**stringUnique game identifier
PKBet_Amount**decimalPartial monetary value of the transaction in current draw
PKWin_Amount**decimalMonetary value won in current draw
PlatformstringPlatform which the lottery is used from. Should hold values ‘WEB’ or ‘MOBILE’
PKBoostintBoost chosen by player for draw
PKJackpotdecimalJackpot for draw
Entries_Per_Draw**intEntries per draw. Must be at least 1 (shouldn’t hold null or 0 values).
PKGame_StatusstringDraw status (e.g Won, Loss, Open)
Last_UpdatedDateDate when the record was last modified or added (Mandatory in case of DB to DB connection)

Notes:

**=Always mandatory

Draw_Types

KeyFieldData TypeDescription
PKGame_IDstringUnique game identifier
Lottery_NamestringName of lottery
Lottery_CategorystringCategory of lottery
Updated_AtDateDate when the record was last modified or added

Database Schema