timps_db_agent
Generate schema SQL, ER diagrams, index recommendations, migration scripts, and query templates from a data model description, with SQL injection protection.
Instructions
DB Agent — schema design, query optimisation, and migration scripts. Given a description of your data model it produces: CREATE TABLE SQL, an ER diagram in Mermaid, index recommendations, a migration script (Alembic / Flyway / raw SQL), and query templates. Pairs with the sql_injection LoRA for secure query generation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_engine | No | 'postgresql'|'mysql'|'sqlite'|'mongodb' | postgresql |
| description | Yes | Data model description, e.g. 'Multi-tenant SaaS with users, teams, projects, and tasks' | |
| migration_tool | No | 'alembic'|'flyway'|'raw_sql' | alembic |
| existing_schema | No | Optional: existing DDL or schema JSON for ALTER TABLE migrations |