Sure, here's an example of an Adobe Experience Data Model (XDM) schema:
{
"name": "My Experience Data Model",
"description": "A data model for capturing customer experiences across multiple channels",
"version": "1.0",
"namespace": "mycompany",
"types": [
{
"name": "Customer",
"fields": [
{
"name": "id",
"type": "string",
"description": "Unique identifier for the customer"
},
{
"name": "name",
"type": "string",
"description": "Full name of the customer"
},
{
"name": "email",
"type": "string",
"description": "Email address of the customer"
},
{
"name": "gender",
"type": "string",
"description": "Gender of the customer (e.g., male, female, other)"
},
{
"name": "age",
"type": "integer",
"description": "Age of the customer"
},
{
"name": "location",
"type": "Location",
"description": "Geographic location of the customer"
},
{
"name": "interests",
"type": "Array<string>",
"description": "List of interests of the customer (e.g., sports, music, travel)"
},
{
"name": "purchaseHistory",
"type": "Array<Purchase>",
"description": "History of purchases made by the customer"
}
]
},
{
"name": "Purchase",
"fields": [
{
"name": "id",
"type": "string",
"description": "Unique identifier for the purchase"
},
{
"name": "product",
"type": "Product",
"description": "Information about the product purchased"
},
{
"name": "quantity",
"type": "integer",
"description": "Number of items purchased"
},
{
"name": "price",
"type": "float",
"description": "Total price of the purchase"
},
{
"name": "date",
"type": "string",
"description": "Date of the purchase"
},
{
"name": "channel",
"type": "string",
"description": "Channel through which the purchase was made (e.g., online, in-store)"
},
{
"name": "paymentMethod",
"type": "string",
"description": "Payment method used for the purchase (e.g., credit card, PayPal)"
},
{
"name": "shippingAddress",
"type": "Address",
"description": "Shipping address for the purchase"
},
{
"name": "orderNumber",
"type": "string",
"description": "Unique order number for the purchase"
}
]
},
{
"name": "Product",
"fields": [
{
"name": "id",
"type": "string",
"description": "Unique identifier for the product"
},
{
"name": "name",
"type": "string",
"description": "Name of the product"
},
{
"name": "category",
"type": "string",
"description": "Category of the product (e.g., clothing, electronics, food)"
},
{
"name": "price",
"type": "float",
"description": "Price of the product"
},
{
"name": "imageUrl",
"type": "string",
"description": "URL of an image representing the product"
},
{
"name": "description",
"type": "string",
"description": "Description of the product"
}
]
},
{
"name": "Address",
"fields": [
{
"name": "streetAddress",
"type": "string",
"description": "Street address of the location"
},
{
"name": "city",
"type": "string",
"description": "City of the location"
},
{
"name": "state",
"type": "string",
"description": "State of the location"
},
{
"name": "zipCode",
"type": "string",
"description": "Zip code of the location"
},
{
"name": "country",
"type": "string",
"description": "Country of the location"
}
]
},
{
"name": "Location",
"fields": [
{
"name": "latitude",
"type": "float",
"description": "Latitude of the location"
},
{
"name": "longitude",
"type": "float",
"description": "Longitude of the location"
}
]
}
]
}
This schema defines a data model for capturing customer experiences across multiple channels. It includes a Customer type with fields for basic customer information (such as name, email, and gender), as well as fields for customer interests and purchase history. The Purchase type defines fields for information about individual purchases, including product details, quantity, price, date, and payment method. The Product type defines fields for basic product information, such as name, category, price, and image URL. The Address type defines fields for basic address information, and the Location type defines fields for geographic location information (such as latitude and longitude).
This schema is just one example of an XDM schema, and the specific fields and types included can vary depending on the needs of the organization using it. XDM schemas are designed to be flexible and customizable, allowing organizations to create data models that align with their unique business needs and data requirements.