Navigation

Fields of the E-commerce Tables in the Event Structure

This article presents all the fields used in standard e-commerce tables with the Event structure (see how to generate this structure). This reference aims to provide a consistent view of the data model to simplify data integration, analysis, and use in Dialog Insight. For each table, you will find a list of the fields, including their code, label, type, and description.

Transaction
This table, linked to the Item (Ticket) table, contains e-commerce transactions made by contacts. Each transaction is linked to a contact. The Transaction table is the central point for analyzing revenue and conversions.

CodeLabelDataTypeDescription
customer_id
foreign key
Source Person IDDepending on the primary key of the project:
  • Int
  • NVarChar (100)
ID of the contact who made the transaction
idTransaction
primary key
Unique transaction IDNVarChar(500)
(Not nullable)
ID of the transaction in the third-party solution
idSendLogIdentifier of the sendlog linked ot the transactionBigint

ID of the sendlog (Google Analytics)
idBatchBatch identifier linked to the transactionInt
ID of the idBatch (Google Analytics)
SourceTransaction sourceNVarChar(100)
Channel or platform that generated the transaction (e.g., website, API, integration)
RevenueTransaction amountDecimal
Gross revenue from the sold items
ShippingShipping amountDecimal
Shipping cost before taxes at the time the order was placed
TaxTax amountDecimal
Total of the taxes at the time the order was placed
dtTransactionCreatedAtDate of creation of the transactionDateTime
Creation date of the transaction in the store
dtTransactionUpdatedAt
Transaction information update dateDateTime
Last modification date of the transaction in the store
financialStatusFinancial status of the transactionNVarChar(200)
Payment status of the order (e.g., "Paid", "Pending", "Refunded")
fulfillmentStatusOrder processing statusNVarChar(200)
Processing status of the order (e.g., "Processing", "Shipped", "Completed")
Item (Ticket)
This table details the items (tickets) associated with a transaction. Each record is linked to the Transaction and Event (Product) tables, allowing for analysis of purchase details, quantities, prices, and actual ticket usage.

CodeLabelDataTypeDescription
idTransaction
foreign key
Transaction ID

NVarChar (100)

(not nullable)

ID of the transaction linked to this item, associated with the Transaction table
idProductEvent IDNVarChar(100)
(not nullable)
ID of the event (related to the idProduct field in the Event table)
itemStatusItem statusNVarChar(50)Status of the ticket (e.g., "Confirmed", "Cancelled")
itemCategoryCategory IDNVarChar(100)ID of the category associated with the item (related to the idCategory field in the ProductCategory table)
ticketCountNomber of ticketsIntNumber of tickets purchased for this item in the transaction
Price_unitUnit price per ticketDecimalPrice per ticket
Price_totalTotal priceDecimalTotal price of the tickets
isScanIf the ticket was scanned at the eventBitIndicates if the ticket has been validated at the entrance of the event
(1 = Yes, 0 = No)
Event (Product)
This table contains information about events offered. It is linked to the Ticket and Representation tables and allows transactions to be enriched with the event context (dates, location, category, status).

CodeLabelDataTypeDescription
idProduct
primary key
Event IDNVarChar(500)
(not nullable)
ID of the event
ProductNameEvent nameNVarChar(500)The event name
DescriptionEvent descriptionNVarChar(500)Description of the event
CurrencyCurrencyNVarChar(5)The currency selected in the E-commerce configuration
RegularPriceRegular priceDecimalPrice before discounts
CurrentPriceCurrent priceDecimalActual price in the store
eventStartDateTimeStart date and hour of the eventDateTimeEvent starting date (if there are several representations, the first one is used)
eventEndDateTimeEnd date and hour of the eventDateTimeEvent ending date (if there are several representations, the last one is used)
UrlProductEvent url on the main site NVarChar(500)Link to the main web page for the event
UrlImageDefautUrl to an image that represents the eventNVarChar(500)Event default image. Only one image is supported
eventLocationEvent locationsNVarChar(500)Event locations
StatusEvent statusNVarChar(50)Event status (e.g., "Active", "Inactive", "Sold Out")
SourceSource from which the data retrieved from the event comesNVarChar(50)Origin of the data imported for the event (e.g., external system, import)
eventInfoAdditional informationNVarChar(100)Additional information about the event (notes, specific details)
Representation
This table describes the different representations or sessions associated with the same event. It is linked to the Event (Product) table and allows you to distinguish between several dates, locations, or occurrences for the same event product.

CodeLabelDataTypeDescription
idRepresentation
primary key
Representation IDNVarChar(100)
(non nullable)
ID of the representation
dtRepresentationRepresentation date and timeDateTimeDate and time of the representation
AddressRepresentation locationNVarChar(100)Address of the representation location
SaisonRepresentation seasonNVarChar(100)Season during which the representation takes place
representationInfoAdditional information
NVarChar(100)Additional information about the representation (notes, specific details)
idProductEvent ID
NVarChar(500)
(not nullable)
ID of the event associated with the representation
ProductCategory
This table references the categories used to classify events. It is linked to the Event (Product) and Ticket tables to facilitate the segmentation, filtering, and analysis of e-commerce data by event type.

CodeLabelDataTypeDescription
idCategory
primary key
Category identifierNVarChar(100)ID of the category
CategoryNameCategory nameNVarChar(100)Category name

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.