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

# Database overview

> How Bludia stores data: collections (tables), typed fields (columns), records (rows), relations, validation, computed fields, trash, history, and import/export.

Bludia's database is where your application data lives. You design the schema in the dashboard; Bludia stores records in PostgreSQL, validates every write, and exposes each collection through the REST API.

```text theme={null}
Project
└── Collection: bookings              (slug used in the API: /collections/bookings)
    ├── Fields: customer (relation), service (relation), date (datetime), status (select)
    └── Records:
        ├── #101  { customer: 25, date: "2026-12-01T10:00", status: "confirmed" }
        └── #102  { customer: 31, date: "2026-12-02T14:30", status: "pending" }
```

## Features

> [card] [Collections](https://docs.bludia.com/database/collections.md)
>
> Create and organize the types of data your app stores.

> [card] [Fields](https://docs.bludia.com/database/fields.md)
>
> 14 field types: text, number, date, select, relation, file, and more.

> [card] [Validation](https://docs.bludia.com/database/validation.md)
>
> Required, unique, length, ranges, patterns, formats, and conditional rules.

> [card] [Records](https://docs.bludia.com/database/records.md)
>
> Create, edit, bulk-edit, trash, restore, and view history.

> [card] [Relations](https://docs.bludia.com/database/relations.md)
>
> One-to-one, one-to-many, and many-to-many links between collections.

> [card] [Computed fields](https://docs.bludia.com/database/computed-fields.md)
>
> Values calculated from other fields and related records.

> [card] [Import & export](https://docs.bludia.com/database/import-export.md)
>
> Bring in CSV or SQL data and export records.

> [card] [Querying via API](https://docs.bludia.com/api/querying.md)
>
> Filters, conditions, sorting, pagination, and relation expansion.

## Key behaviors

| Behavior | Detail |
| :- | :- |
| Validation on every write | Dashboard, API, imports, and hooks go through the same field rules. |
| Partial updates | On update, omitted fields keep their value; `null` or `""` clears a field. |
| Soft delete | Deleted records go to the trash and can be restored or permanently deleted. |
| Record history | Every record keeps a change history you can view in the dashboard. |
| Optimistic concurrency | Send the record `version` (or `If-Match`) on update to avoid overwriting someone else's change; a stale version returns `409`. |
| Ownership | Records created by a signed-in end user are owned by that user; row policies use this. |
| Passwords never returned | Values of `password` fields are hashed and never included in responses. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.