Creating a table
Create a table definition insrc/tables/:
Naming a table
To properly deploy your agent, make sure your table name follows the correct convention:- Cannot start with a number
- Must be 30 characters or less
- Can contain only letters, numbers, and underscores
- Must end with
Table
Table schema
Simple definition
Define your table using Zod schemas:Extended definition
You can also define table columns with additional options for each column:Using tables
Tables are automatically created and synced when you deploy. You can import them and interact with them directly using the table instance methods, which provide type-safe operations:src/workflows/create-order.ts