> For the complete documentation index, see [llms.txt](https://docs.getuntitled.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getuntitled.ai/custom-connections/schema-overview.md).

# Schema Overview

The database schema is comprised of three tables: Visitors, Sessions and Pages. They are joined via `hem` and `session_id` respectively.&#x20;

## Database Tables

* The [Visitors Table](/custom-connections/schema-overview/visitors-table.md) stores comprehensive information about individuals who have visited a website with the Distilled tag installed. B2B, B2C, and PTE records are consolidated in this table view.
* The [Sessions Table](/custom-connections/schema-overview/sessions-table.md) captures data pertaining to each visitor's session, including session duration. A session concludes when there has been no activity for 30 minutes. In the sessions table, you can find the column that provides the match type for a visitor record. This column is titled [file\_type](/custom-connections/schema-overview/sessions-table.md#table-structure) and will indicate whether a visitor is a B2B, B2C, or PTE record.
* The[ Pages Table ](/custom-connections/schema-overview/pages-table.md)records details about the pages viewed by individuals during their session.
* The [Buyer Intent Table](/custom-connections/schema-overview/buyer-intent-table.md) records details about the modeled intent score of resolved website visitors.&#x20;

### Entity Relationship Diagram

Referencing the provided Entity-Relationship Diagram (ERD) below, you can visualize how these tables can be joined together to provide a holistic view of user interactions on your website.

<figure><img src="https://312477262-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoQsfzqc7OhGHTIseEas%2Fuploads%2FFJA8uKFtkPxyYsETifg1%2Funtitled-tag-erd.png?alt=media&amp;token=bd8c1920-8f95-4e16-af35-204cfcb6d3db" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getuntitled.ai/custom-connections/schema-overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
