muninn_table_define
Declare a table (a kind of thing you want to track — Staff, Sources, Clients) and the fields its records share. Re-calling with the same slug UPDATES the definition: fields you pass replace the current set, so send the whole list, not a delta. Field key is permanent and is what record values are stored under; label is what a human sees and can be renamed freely. Mark a field private:true to keep it out of the grid, out of csv/xlsx export, and out of any team-shared view — private values never leave the encrypted record body. Field types: text, textarea, number, date, select, multi-select, checkbox, nested-table. Use textarea for anything that runs to more than a line — notes, a description, an address, a bio: it stores exactly like text and tells the app to give it a multi-line box instead of a single-line input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Human-readable name, e.g. 'Staff'. Renameable. | |
| fields | Yes | The full field list, in display order. Replaces any existing definition. | |
| tableSlug | Yes | Stable identifier, e.g. 'bui-staff'. Permanent — this is how records are filed. |