> For the complete documentation index, see [llms.txt](https://specs.govstack.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://specs.govstack.global/messaging/7-data-structures.md).

# 7 Data Structures

## 7.1 Resource Model

The resource model shows the relationship between data objects that are used by this Building Block.

<figure><img src="/files/P42YKp9P7wq7nPoQgB56" alt=""><figcaption><p><em>Note: Recommend using</em> <a href="https://app.diagrams.net/"><em>https://app.diagrams.net/</em></a> <em>to create the resource model and store in Building Block repository (</em><a href="https://github.com/GovStackWorkingGroup/bb-messaging/tree/1.0-QA/api"><em>https://github.com/GovStackWorkingGroup/bb-messaging/tree/1.0-QA/api</em></a><em>)</em></p></figcaption></figure>

## 7.2 Data Structures

### 7.2.1 Data Elements (Generic Example)

**7.2.1.1 Person**

| Name                 | Type     | Description                   | Notes                                                                                              |
| -------------------- | -------- | ----------------------------- | -------------------------------------------------------------------------------------------------- |
| **Name**             | **Type** | **Description**               | **Notes**                                                                                          |
| Surname              | String   | Family name                   |                                                                                                    |
| First Name           | String   | First name                    |                                                                                                    |
| Birth Date           | Date     | DOB                           | [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)                                 |
| Mobile Number        | String   | Phone number (mobile) of user | [E.164 Mobile number standard](https://www.itu.int/rec/T-REC-E.164/). Should include country code. |
| Government ID number | Integer  | Government issued ID number   | Used when linking to global ID Building Block.                                                     |

### **Model Schemas**

Each model schema MUST have a corresponding JSON Schema ([API definition file](https://raw.githubusercontent.com/GovStackWorkingGroup/BuildingBlockAPI/main/ExampleSchema.json)).


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://specs.govstack.global/messaging/7-data-structures.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
