create_collection
Create a new data collection (custom table) with system columns and optional custom fields. Define column types, defaults, and references to structure your storefront data.
Instructions
Create a new collection (custom data TABLE). It starts with the system columns (id/inserted_at/updated_at/creator_id); pass columns to add custom fields. NOTE: to WRITE records into it, use an HTTP function (webcake-data: db.model(table).create({...})) — the dashboard has no direct record-insert API. See get_http_function for the SDK guide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name. | |
| columns | No | Custom columns to add, e.g. [{name:'email',type:'text'},{name:'amount',type:'integer'}]. | |
| table_name | No | Table name (snake_case, unique). Defaults to name. |