design_schema
Design a database schema with DDD aggregate mapping for PostgreSQL/MySQL/MongoDB. Supports SQL DDL and Prisma output formats. If fields are omitted, smart inference suggests common fields based on the aggregate name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"aggregate": "<aggregate>",
"database": "<database>"
},
"name": "design_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Field definitions (name:type format, e.g., 'title:string', 'price:number'). If omitted, fields are inferred from aggregate name. | |
| database | Yes | Target database | |
| aggregate | Yes | DDD aggregate root name (e.g., 'Homework', 'User', 'Order') | |
| outputFormat | No | Output format (default: both) | |
| existingModels | No | Names of existing models in your schema — used to auto-suggest relations | |
| withSoftDelete | No | Add deleted_at for soft deletes (default: false) | |
| withTimestamps | No | Add created_at / updated_at columns (default: true) |