Add Database Column
add_database_columnAdd a column to an existing AFFiNE database block. Supports types like text, select, number, checkbox, link, and date.
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 |
|---|---|---|---|
| workspaceId | No | Workspace ID (optional if default set) | |
| docId | Yes | Document ID containing the database | |
| databaseBlockId | Yes | Block ID of the affine:database block | |
| name | Yes | Column display name | |
| type | No | Column type | rich-text |
| options | No | Predefined options for select/multi-select columns | |
| width | No | Column width in pixels (default 200) |