generate_pb_schema
Convert TypeScript interfaces or database diagrams into PocketBase schema definitions to streamline database setup and ensure structural consistency.
Instructions
Generate a PocketBase schema based on TypeScript interfaces or database diagram
Input Schema
Name | Required | Description | Default |
---|---|---|---|
options | No | Generation options | |
sourceCode | Yes | TypeScript interface or database diagram to convert to PocketBase schema |
Input Schema (JSON Schema)
{
"properties": {
"options": {
"description": "Generation options",
"properties": {
"includeAuthentication": {
"description": "Whether to include authentication related collections",
"type": "boolean"
},
"includeTimestamps": {
"description": "Whether to include created/updated timestamps",
"type": "boolean"
}
},
"type": "object"
},
"sourceCode": {
"description": "TypeScript interface or database diagram to convert to PocketBase schema",
"type": "string"
}
},
"required": [
"sourceCode"
],
"type": "object"
}