create_collection
Create a new collection in PocketBase with defined fields, access rules, and configuration options for organizing database records.
Instructions
Create a new collection in PocketBase
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| createRule | No | Rule for creating records | |
| deleteRule | No | Rule for deleting records | |
| fields | Yes | Collection fields configuration | |
| indexes | No | Collection indexes | |
| listRule | No | Rule for listing records | |
| name | Yes | Collection name | |
| passwordAuth | No | Password authentication settings for auth collections | |
| type | No | Collection type (base, auth, view) | base |
| updateRule | No | Rule for updating records | |
| viewQuery | No | SQL query for view collections | |
| viewRule | No | Rule for viewing records |