What problem does it solve?
Designing consistent, maintainable, and convention-compliant database schemas from feature requests or tech designs is time-consuming and error-prone; this Skill produces ERDs, table definitions, indexes, migration plans, and EF Core configurations to accelerate implementation and reduce design drift.
Core Features & Use Cases
- ERD and schema generation: Create entity-relationship diagrams and normalized table layouts mapping domain models to relational tables.
- Migrations and index strategy: Produce SQL table definitions, index recommendations, and step-by-step migration plans to evolve schemas safely.
- EF Core configurations: Output entity classes and Fluent API or attribute-based EF Core configurations following AllCare conventions to plug directly into the application codebase.
- Use Case: Convert a patient preferences feature spec into an ERD, SQL schema, migration plan, and EF Core entity mappings ready for code review and CI integration.
Quick Start
Invoke the database-design skill with a concise feature description or link to a tech design to generate an ERD, table definitions, index strategy, migration steps, and EF Core configurations saved to work/database-designs/[feature]-database-design.md.