database-schema-designer

Design relational database schemas from natural language requirements.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Fantasia1999/claude-skills-zh --skill database-schema-designer-fantasia1999
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-schema-designer
Source: https://github.com/Fantasia1999/claude-skills-zh/tree/main/translations/engineering/database-schema-designer
Command: npx skills add https://github.com/Fantasia1999/claude-skills-zh --skill database-schema-designer-fantasia1999

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill automates the complex and time-consuming process of designing relational database schemas, generating necessary code artifacts, and ensuring best practices are followed.

Core Features & Use Cases

  • Schema Design: Translates natural language requirements into structured database schemas.
  • Code Generation: Produces migration files, TypeScript/Python types, and seed data for various ORMs.
  • Advanced Features: Supports multi-tenancy, soft deletes, audit trails, and row-level security (RLS).
  • Use Case: Design a new schema for a SaaS application, including multi-tenancy and audit logging, and generate Drizzle ORM migrations and TypeScript types.

Quick Start

Design a PostgreSQL database schema for a task management application with multi-tenancy and soft delete features, generating Drizzle ORM migrations and TypeScript types.

Frequently Asked Questions about database-schema-designer

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

FAQPage Schema
How do I generate database schemas and migrations from natural language requirements?

Database schema generation from natural language requirements translates text into structured relational schemas and outputs migration files for Drizzle, Prisma, TypeORM, and Alembic. It also creates TypeScript interfaces, Python dataclasses, and Pydantic models automatically.

Does this schema generation tool support multi-tenancy and row-level security policies?

Schema generation supports multi-tenancy, soft deletion, audit trails, and versioning. It creates Row-Level Security (RLS) policies alongside your relational database schema to secure multi-tenant application data directly in PostgreSQL.

What's the best way to design a PostgreSQL schema with soft delete and audit trail features?

Designing a PostgreSQL schema with soft delete and audit trails is handled by specifying these advanced features in your natural language requirements. The generator then structures the relational schema and outputs the corresponding ORM migration files.

Can I generate TypeScript interfaces and Python Pydantic models for the same database schema?

TypeScript interfaces and Python Pydantic models are generated simultaneously from the designed relational database schema. It also produces Python dataclasses and seed data to ensure your application types match your database structure.

How to create Drizzle ORM migrations for a SaaS application database?

Creating Drizzle ORM migrations for a SaaS application involves defining your multi-tenancy and audit logging needs in natural language. The generator designs the schema and outputs the specific migration files required by Drizzle.