create_collection
Define a new data structure in PocketBase by specifying collection name, type, fields, and access rules to organize and manage database records.
Instructions
Create a new collection in PocketBase note never use created and updated because these are already created
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique collection name (used as a table name for the records table) | |
| type | No | Type of the collection | base |
| fields | Yes | List with the collection fields | |
| createRule | No | API rule for creating records | |
| updateRule | No | API rule for updating records | |
| deleteRule | No | API rule for deleting records | |
| listRule | No | API rule for listing and viewing records | |
| viewRule | No | API rule for viewing a single record | |
| viewQuery | No | SQL query for view collections | |
| passwordAuth | No | Password authentication options |