# Working With Parent Segments

Parent Segments provides an interface that professionals, who are not database designers or developers, can use to define a data model for customer data. You can use Parent Segments to manage, unify, consolidate, organize, and link data from all your Treasure Data tables.

In Parent Segments, you unify your customer data. When the customer data is unified, you can create customer segments without writing any SQL queries. You can personalize customer communications and conversations of any size and in any channel.

## Attributes and Behaviors

It is possible to have all attributes and behaviors for the parent segment contained within one parent table. However, it is typically specified using the following types of tables:

* Parent Table
* Attribute Tables
* Behavior Tables


Attributes and behaviors are often linked by a common ID (typically the td_global_id or `Customer ID`).

| Table type | Description | Example |
|  --- | --- | --- |
| Parent | Contains a master list of profiles. The list is typically imported from a CRM system. | - First Name
- Last Name
- Email
- Cookie ID (most commonly the [Anonymous Visitor IDs](/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/anonymous-visitor-ids-with-javascript-sdk))

 |
| Attribute | Contains additional attributes of the Parent Segment, and enriches the information in `Parent Table`. | Demographic Information:- age
- gender
- income
- interests

 |
| Behavior | Contains the behaviors of the customers. | - Website Visits
- Purchase Logs
- Support Inquiries
- Device Usage Logs

 |


The following schema diagram is an example of all three tables and how they are linked:

![](/assets/master-segment-example-1.7f27009c9acfcac39e96522df86272a8dfdab5945ded5ad0814987c340b53731.142841d8.png)

The following table schema is an example of an attribute table and behavior table linked by customer ID.

![](/assets/master-segment-example-2.98776d9d15d7a62e9350977e21c25e0bd3a4cf6f947d6d5ef7c54da668256592.142841d8.png)

## System-Generated Entities in Parent Segments

Parent Segments automatically create entities within your accounts. Do not edit or modify these system-generated entities, otherwise the creation process will fail. Example parent segment system-generated entities:

* Database: cdp_audience_(AUDIENCE_ID)
  * Table: customers
  * Table: partitioned_customers
  * Table: behavior_(XYZ)
  * Table: activities
  * Table: cdp_new_web_access_(SEGMENT_ID)
* Workflow: cdp_audience_(AUDIENCE_ID)


## Parent Segment Data Enrichment

In Parent Segments, you can enrich your data by adding specific `td_` columns to either the attribute or behavior tables. The inclusion of one of the following `td_` columns triggers some automatic actions by Treasure Data:

Attribute

* td_client_id
* td_ip
* td_host
* td_path
* td_title
* td_description


Behavior

* td_user_agent
* td_url
* td_ip


## Related Topics

* [Configuring Parent Segments for Real-time (realtime)](/products/customer-data-platform/real-time/creating-a-real-time-configuration)
* [Creating Parent Segments](/products/customer-data-platform/data-workbench/parent-segments/creating-parent-segments)
* [About Parent Segments that Support Group Hierarchy](/products/customer-data-platform/data-workbench/parent-segments/about-parent-segments-that-support-hierarchical-grouping)
* [Refreshing Parent Segments](/products/customer-data-platform/data-workbench/parent-segments/refreshing-master-segments)
* [Using Workflow to Populate Your Parent Segments](/products/customer-data-platform/data-workbench/parent-segments/using-workflow-to-populate-your-master-segments)
* [Viewing Parent Segment Workflow History](/products/customer-data-platform/data-workbench/parent-segments/viewing-master-segment-workflow-history)
* [Using Workflow to Prepare Source Tables](/products/customer-data-platform/data-workbench/parent-segments/using-workflow-to-prepare-source-tables)
* [Processing Engine and Resource Pools](/products/customer-data-platform/data-workbench/parent-segments/processing-engine-and-resource-pools)