create_column
Add a column to a table with configurable data type, length, precision, default value, mandatory status, primary key inclusion, and dry-run support.
Instructions
Add a column to a table. Supported properties: name, code, data_type (e.g. 'VARCHAR', 'INT', 'DATETIME'), length, precision, mandatory, default_value, comment, description, domain (ref or code), primary (include in primary key). Supports dry_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| name | Yes | ||
| domain | No | ||
| length | No | ||
| comment | No | ||
| dry_run | No | ||
| primary | No | ||
| model_id | Yes | ||
| data_type | No | ||
| mandatory | No | ||
| precision | No | ||
| table_ref | Yes | ||
| default_value | No |