Entities: create
entities_createCreate an empty entity, a new database table in the active project, then define its columns with fields_add. Set options like public access, row-level security, or junction tables.
Instructions
Create a new entity. Creates an empty entity, which is a new database table in the active project; add its columns afterwards with fields_add. Options make it public (queryable without signing in), turn on row-level security (RLS), block new records through the API, or mark it as a many-to-many junction table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rls | No | Enable row-level security | |
| name | Yes | Entity name (e.g. 'customers', 'orders') | |
| public | No | Make entity publicly queryable (no auth required) | |
| junction | No | Mark as a many-to-many junction table | |
| lock_records | No | Prevent creation of new records via API |