Add Database Column
add_database_columnAdd a new column to an AFFiNE database block, choosing from types like text, select, number, checkbox, link, or date, and set width and predefined options.
Instructions
Add a column to an existing AFFiNE database block. Supports rich-text, select, multi-select, number, checkbox, link, date types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Column display name | |
| type | No | Column type | rich-text |
| docId | Yes | Document ID containing the database | |
| width | No | Column width in pixels (default 200) | |
| options | No | Predefined options for select/multi-select columns | |
| workspaceId | No | Workspace ID (optional if default set) | |
| databaseBlockId | Yes | Block ID of the affine:database block |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | ||
| added | Yes | ||
| columnId | Yes |