General collection
Data source: MainCommunity Edition+Introduction
A General collection is the most common collection type. Use it for customers, orders, contracts, work orders, expense claims, projects, tasks, and other business records that do not need a special structure.
General collections can come from a new table created in the main database, an existing main-database table synchronized into NocoBase, an external-database table, a resource mapped from a REST API, or a collection in an external NocoBase application.
All of these are used as general collections in NocoBase. The difference is that NocoBase can create and maintain the real table structure for a main-database collection, while an external source normally exposes an existing structure maintained by the external system.
Use cases
- CRM data such as customers, contacts, opportunities, and contracts.
- Transaction data such as orders, deliveries, returns, and invoices.
- Collaboration data such as work orders, tasks, projects, and requirements.
- Process data such as expense claims, purchase orders, and payment requests.
- Master data such as equipment, assets, products, and stores.
Create and configure
In the main data source, click Create collection and select General collection.

Built-in fields
Use Preset fields to add common system fields when creating the collection.
Primary key field
Primary key identifies a record uniquely at the database level. Keep the ID preset field when creating a collection; its default primary-key interface is Snowflake ID (53-bit).

Hover over the ID field interface to select another primary-key type.

Available primary-key types are Single line text, Integer, Snowflake ID (53-bit), UUID, and Nano ID.
A collection without a primary key must set a Record unique key when editing the collection. Otherwise, blocks cannot be created and records cannot be viewed or edited reliably.
Use in pages
General collections can be used by most data and filter blocks.
Edit configuration
Click Edit beside the collection to change collection metadata and selected runtime configuration. Use Configure fields to add fields, change Field types or interfaces, or delete fields.


Editing a collection does not adjust existing fields automatically. Preset fields apply only at creation. Add created-at, created-by, updated-at, or updated-by fields later through Configure fields.
Delete a collection
Click Delete beside a general collection to delete it. Main-database collections can also be selected and deleted in batches.

After confirmation, NocoBase removes the collection metadata and the real table and data in the main database.

The confirmation dialog can automatically delete database objects that depend on the collection, such as database views built from it and objects that depend on those views.
Deleting a general collection is high risk. It can remove the table structure, table data, field metadata, and dependent page blocks, relation fields, permissions, workflows, and API calls. Confirm that dependent objects can be deleted before enabling automatic deletion.

