host.state.table_create
Declare (or replace the schema of) a table in this tenant's state store. schema is {"column": "text"|"integer"|"real"|"boolean"|"json"}; primary_key, if given, must name one of schema's columns -- an insert whose row matches an existing row's primary_key value replaces it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Table name to declare, or replace the schema of. | |
| schema | Yes | Column name to type map, each type one of text|integer|real|boolean|json, e.g. {"id": "integer"}. | |
| tenant_key | No | The key `signup` returned. Required only when this connection carries no Authorization: Bearer header -- when both are present, the header wins. | |
| primary_key | No | Column name (must be in schema) whose matching value replaces an existing row on insert; optional. |