database-schema-designer

Design relational database schemas and generate migration scripts, type definitions, and security policies.

Updated Nov 3, 2016
One-click install
npx skills add https://github.com/xleliberty/mydotfiles --skill database-schema-designer-xleliberty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-schema-designer
Source: https://github.com/xleliberty/mydotfiles/tree/main/.config/.claude/plugins/cache/claude-code-skills/engineering-advanced-skills/2.1.2/database-schema-designer
Command: npx skills add https://github.com/xleliberty/mydotfiles --skill database-schema-designer-xleliberty

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of designing scalable relational database schemas, ensuring that data integrity, performance, and security are baked into the architecture from the start.

Core Features & Use Cases

  • Schema Design & Normalization: Transforms business requirements into normalized table structures with proper constraints and relationships.
  • Migration & Type Generation: Automates the creation of migration files for Drizzle, Prisma, and Alembic, while generating type-safe interfaces for TypeScript and Python.
  • Security & Performance: Implements Row-Level Security (RLS) policies and strategic indexing to ensure multi-tenant isolation and query efficiency.

Quick Start

Use the database schema designer to generate a normalized schema and Prisma models for a new task management application with multi-tenancy support.

Frequently Asked Questions about database-schema-designer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a normalized database schema for multi-tenancy and soft deletes?

To design a database schema for multi-tenancy, transform business requirements into normalized table structures with proper constraints, strategic indexing, and Row-Level Security policies to ensure tenant isolation and query efficiency.

Can I generate Prisma migrations and Drizzle type definitions from a relational schema?

Yes, you can generate Prisma and Drizzle migrations from a relational schema. The process automates creating migration files and type-safe TypeScript and Python interfaces directly from normalized table structures.

What is the best way to implement Row-Level Security policies for multi-tenant database architectures?

The best way to implement Row-Level Security for multi-tenant databases is by defining RLS policies during schema design, baking tenant isolation into the architecture from the start alongside strategic indexing for query performance.

Does this database schema designer support polymorphic associations and audit trails?

Yes, this database schema designer supports polymorphic associations and audit trails. It handles complex data architecture tasks including multi-tenancy, soft deletes, and audit logs to create production-ready database layers.

How do I create Alembic migration scripts for Python applications from a normalized schema?

To create Alembic migration scripts for Python applications, define normalized table structures with proper constraints, then automate the generation of migration files and type-safe Python interfaces from your schema design.