> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/cloud/database/collections.md).

# Collections

A **collection** holds your records. Its **schema** defines the fields, types, and validation; Norbix then generates a full CRUD + query API over the collection, with record-level ownership and triggers.

<figure><img src="/files/Nl4wzFl9UZuN3Aqi0Pdy" alt=""><figcaption><p>Database → Collections.</p></figcaption></figure>

## What you can do here

The list shows every published collection with its **Status** — `Published · v2`, or `Published · v2 · draft pending` when unpublished edits exist on top. Schemas that were never published sit below in **Schemas under development**; publish one to start adding records. A flame icon in the **Triggers** column marks collections that have triggers and jumps to their Triggers tab; the row menu has **Edit schema**.

**Add New** creates a collection by creating its schema — see [Build a Schema](/cloud/database/collections/create-schema.md) for the full walkthrough (drafts, versions, publishing). Click a collection to work with its [records](/cloud/database/collections/records.md) in the generated grid and form, define [triggers](/cloud/database/collections/schema-triggers.md) that fire on `OnInserted`, `OnUpdated`, or `OnDeleted`, and check [index coverage](/cloud/database/collections/schema-indexes.md) for sorting on the List tab.

Records respect **ownership**: switch **Records have an owner** on in the collection's Settings tab and the end-user API can be limited to "own" records (`findOwn`), so an app user only reads what belongs to them.

## Use it from code

[Database → Collections](/sdks-and-cli/database/collections.md) for data calls, [Database → Schemas](/sdks-and-cli/database/schemas.md) for schema management.

## API reference

Endpoints: [Database → Collections](/api-reference/database/collections.md) and [Schemas](/api-reference/database/schemas.md).
