---
title: "Record data model"
url: "https://docs.unified.to/datastore/record/model"
description: "The Record data model object in Unified's Record API: 8 fields, including created_at, updated_at and database_id, with types and enum values."
date: "2026-10-01T23:34:56.864Z"
updated: "2026-11-05T22:09:04.442Z"
---
# Record data model

Updated: November 5, 2026

 View field support, webhooks, and list parameters for each integration on the [Supported Integrations](https://docs.unified.to/datastore/integrations.md) page. 

| Field                    | Type                  | Required | Description                                                                                                                                                                                                                                              |
| ------------------------ | --------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id                       | string                | No       |                                                                                                                                                                                                                                                          |
| created\_at              | string (date-time)    | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                                                                 |
| updated\_at              | string (date-time)    | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                                                                 |
| database\_id             | string                | No       | source Database ID                                                                                                                                                                                                                                       |
| table\_id                | string                | No       | source Database Table ID                                                                                                                                                                                                                                 |
| fields                   | object                | Yes      | The record's values, keyed by the table's field (column) names; each value is a typed value object (e.g. { "string": "Acme" } or { "number": 3 })                                                                                                        |
| fields.string            | string                | No       |                                                                                                                                                                                                                                                          |
| fields.number            | number                | No       |                                                                                                                                                                                                                                                          |
| fields.boolean           | boolean               | No       |                                                                                                                                                                                                                                                          |
| fields.date              | string                | No       |                                                                                                                                                                                                                                                          |
| fields.selection         | string\[\]            | No       |                                                                                                                                                                                                                                                          |
| fields.is\_null          | boolean               | No       |                                                                                                                                                                                                                                                          |
| row\_number              | number                | No       |                                                                                                                                                                                                                                                          |
| metadata                 | DatastoreMetadata\[\] | No       |                                                                                                                                                                                                                                                          |
| metadata\[\].id          | string                | No       | The ID of the custom field definition (from the metadata/metadata endpoint).                                                                                                                                                                             |
| metadata\[\].slug        | string                | No       | The integration's API name (key) of an existing custom field. List valid slugs for this object with the metadata/metadata endpoint; unknown slugs are rejected by the integration.                                                                       |
| metadata\[\].value       | object                | No       | The field's value, typed by format: DATE as ISO-8601 (YYYY-MM-DD, or YYYY-MM-DDTHH:MM:SSZ for date-times); NUMBER, PRICE and CURRENCY as a number; BOOLEAN and YES\_NO as true/false; MULTIPLE\_SELECT as an array of option values; otherwise a string. |
| metadata\[\].namespace   | string                | No       |                                                                                                                                                                                                                                                          |
| metadata\[\].format      | enum                  | No       | The data type of the custom field, which determines how value is formatted. Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE\_SELECT, MULTIPLE\_SELECT, MEASUREMENT, PRICE, YES\_NO, CURRENCY, URL                                            |
| metadata\[\].extra\_data | object                | No       |                                                                                                                                                                                                                                                          |

## TypeScript

```typescript
export type DatastoreRecord = {
	id?: string;
	created_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	database_id?: string; // source Database ID
	table_id?: string; // source Database Table ID
	fields: Record <string, { 
		string?: string;
		number?: number;
		boolean?: boolean;
		date?: string;
		selection?: any;
		is_null?: boolean; 
	}> ; // The record's values, keyed by the table's field (column) names; each value is a typed value object (e.g. { "string": "Acme" } or { "number": 3 })
	row_number?: number;
	metadata?: [];
	raw?: any;
} 
```

## Zod

```typescript
import { z } from 'zod';

export const ZodDatastoreRecord = z.object({
	id: z.string().optional(),
	created_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	database_id: z.string().optional().describe("source Database ID"),
	table_id: z.string().optional().describe("source Database Table ID"),
	fields: z.record(z.string(), z.object({ 
			string: z.string().optional(),
			number: z.number().optional(),
			boolean: z.boolean().optional(),
			date: z.string().optional(),
			selection: z.unknown().optional(),
			is_null: z.boolean().optional()
})).describe("The record's values, keyed by the table's field (column) names; each value is a typed value object (e.g. { "string": "Acme" } or { "number": 3 })"),
	row_number: z.number().optional(),
	metadata: z.array().optional(),

});
```

## Python

```python
import dataclasses

@dataclasses.dataclass
class DatastoreRecord:
	id: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""source Database ID"""
	database_id: Optional[str]
	"""source Database Table ID"""
	table_id: Optional[str]
	"""The record's values, keyed by the table's field (column) names; each value is a typed value object (e.g. { "string": "Acme" } or { "number": 3 })"""
	fields: PropertyDatastoreRecordFields
	row_number: Optional[int]
	metadata: Optional[PropertyDatastoreRecordMetadata]

```
