What problem does it solve?
Designing relational database schemas from business requirements can be error-prone, time-consuming, and hard to scale across multi-tenant applications. This skill provides a structured approach to translate requirements into normalized schemas, enforce data integrity, and generate maintainable migrations and type-safe code.
Core Features & Use Cases
- Entity-Relationship design from requirements, including normalization up to BCNF and appropriate constraints.
- Multi-tenancy patterns with row-level security, tenant isolation strategies, and audit trails.
- Code and migration generation for Prisma, Drizzle, TypeORM, and SQL-based migrations, with type-safe interfaces and ORM entities.
- Defensive design practices including timestamps, soft deletes, optimistic locking, and robust indexing strategies.
- Use Case: Build a SaaS core data model that supports multiple organizations, secure data boundaries, and easy migrations.
Quick Start
Provide the requirements for a feature, and I will generate a normalized relational schema with migrations and ORM-ready code.