create_collection_migration
Generate a migration file to define and create a new PocketBase collection, including its schema, fields, and rules, for structured database management.
Instructions
Create a migration file specifically for creating a new PocketBase collection.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collectionDefinition | Yes | The full schema definition for the new collection (including name, id, fields, rules, etc.). | |
description | No | Optional description override for the filename. |
Input Schema (JSON Schema)
{
"properties": {
"collectionDefinition": {
"additionalProperties": true,
"description": "The full schema definition for the new collection (including name, id, fields, rules, etc.).",
"required": [
"name",
"id"
],
"type": "object"
},
"description": {
"description": "Optional description override for the filename.",
"type": "string"
}
},
"required": [
"collectionDefinition"
],
"type": "object"
}