---
title: Schemas
slug: base-aep-b2b/schemas
docTags: 
createdAt: 2025-07-19T19:10:27.714Z
---

A schema is a set of rules that represent and validate the structure and format of data.&#x20;

In addition to describing the structure of data, schemas apply constraints and expectations to data so it can be validated as it moves between systems.&#x20;

### B2B Data Model

Real-Time CDP B2B Edition provides several new XDM schema classes (not included in RTCDP, B2C), field groups, and relationship types to capture and structure your data specifically for B2B purposes.

The following diagram provides an example of how the different B2B classes/schemas can relate to each other in a standard implementation:

![](https://api.archbee.com/api/optimize/uIdZrLdy8jwVQ0Cgwe4TO-xnyyacuZG7y9jG-MgIWdh-20250719-191756.png)

### Review existing B2B Schemas:&#x20;

You can use the schema auto-generation utility collection and environment from this [GitHub repository](https://experienceleague.adobe.com/en/docs/experience-platform/sources/connectors/crm/salesforce#:~\:text=Account%20contact%20relation-,Set%20up%20the%20Salesforce%20namespace%20and%20schema%20auto%2Dgeneration%20utility,-To%20use%20the) to set up your B2B schemas and relationships


1. Navigate to **Schemas** under Data Management in Adobe Experience Platform UI
2. While on the **Browse** tab, type in **B2B** in the search box&#x20;



![](https://api.archbee.com/api/optimize/uIdZrLdy8jwVQ0Cgwe4TO-kVzpPapTsrag9MCMS9zDo-20250719-193154.png)

3\.  Click on the **B2B Person** Schema and review the following components:

<font color="#6B21A8">**Class\:** Nature of the data</font>

1. Click on the **Class  XDM Individual Profile&#x20;**&#x74;o highlight fields contributed by that class

![](https://api.archbee.com/api/optimize/uIdZrLdy8jwVQ0Cgwe4TO-KbwLgfB0yGUT8Gi7WfsIQ-20250719-200347.png)

<font color="#6B21A8">**Field Groups**\: Reusable components that define data attributes that are to be ingested through this schema</font>

1. Click on the **XDM Business Person Details** field group to highlight the B2B specific    fields contributed by this *out-of-the-box* field group to the schema.
2. Click on specific fields to review the structure constraints imposed on the right panel
3. Similarly, click on the **Engagement Details** field group to highlight the fields contributed by this *custom created&#x20;*&#x66;ield group to the schema

![](https://api.archbee.com/api/optimize/uIdZrLdy8jwVQ0Cgwe4TO-rdyNchZjtMYNNvo0gF2Lt-20250719-201011.png)

<font color="#6B21A8">**Identitites\:** Identities are ingested into the ID graph to build unified Individual and Account profiles</font>

1. Primary identifiers are required fields, non-primary identifiers are optional

<font color="#6B21A8">**Relationships\:** Relationships between B2B schemas describe how these business entities relate to each other</font>

1. Click on the different relationships listed and review the field used to connect the person schema to other schemas
2. Click on the **View Relationship&#x20;**&#x6F;n the right panel to expose the cardinality of the relationships. Compare this to the B2B data model that was surfaced earlier

![](https://api.archbee.com/api/optimize/uIdZrLdy8jwVQ0Cgwe4TO-h-sBPMOmugL5gvFi7mp0_-20250719-201254.png)

![](https://api.archbee.com/api/optimize/uIdZrLdy8jwVQ0Cgwe4TO-znlrT_fT_v4gPNWV6zCcB-20250719-201428.png)

4\. Similarly, review the **B2B Account/Opportunity/Opportunity** **Person** schemas&#x20;
