> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eventdbx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Field formats

> Use built-in format validators to constrain schema fields.

Format validators add semantic checks on top of a column type. EventDBX ships a set of built-ins you can apply via `dbx schema field ... --format <name>`.

## Supported formats

* `email`
* `url`
* `credit_card`
* `country_code`
* `iso_8601`
* `wgs_84` (latitude/longitude pair)
* `camel_case`
* `snake_case`
* `kebab_case`
* `pascal_case`
* `upper_case_snake_case`

## Applying formats

Add or update a field with a format:

```bash theme={null}
dbx schema field person email --type text --format email --required
dbx schema field person address --type text --format snake_case
```

Clear a format when it no longer applies:

```bash theme={null}
dbx schema field person email --clear-format
```

Formats combine with other rules (required/optional, length, range, regex, contains) to tighten validation as schemas mature.

Document the rationale and compatibility guarantees in your runbook so future teams understand how to decode historical payloads.
