database

Define PostgreSQL schemas and migrations using Drizzle ORM patterns.

Updated Dec 25, 2025
One-click install
npx skills add https://github.com/Mavrick91/tanstack-start-app --skill database-mavrick91
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database
Source: https://github.com/Mavrick91/tanstack-start-app/tree/main/.claude/skills/database
Command: npx skills add https://github.com/Mavrick91/tanstack-start-app --skill database-mavrick91

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamline PostgreSQL schema design, migrations, and complex queries using Drizzle ORM patterns to maintain type-safety and consistency across your codebase.

Core Features & Use Cases

  • Centralized, type-safe schema definitions at src/db/schema.ts using Drizzle ORM.
  • Comprehensive guidance on column types, enums, relationships, migrations, and query patterns.
  • Ready-to-use examples for common CRUD operations, joins, and data access patterns across related tables.
  • Practical migration workflows to evolve database schemas safely in production environments.

Quick Start

Run Drizzle ORM migration workflow to generate and apply schema changes to PostgreSQL.

Frequently Asked Questions about database

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

FAQPage Schema
How do I define type-safe PostgreSQL schemas using Drizzle ORM?

Define PostgreSQL schemas using Drizzle ORM by creating centralized, type-safe schema definitions in src/db/schema.ts. This approach maintains consistency across your codebase while providing structured definitions for columns, enums, and relationships.

What is the best way to run PostgreSQL schema migrations with Drizzle ORM?

Run PostgreSQL schema migrations with Drizzle ORM using its built-in tooling to generate and apply schema changes safely. This reusable migration workflow evolves database schemas safely in production environments without manual SQL scripting.

Does Drizzle ORM support complex queries and relationship mappings for PostgreSQL?

Drizzle ORM supports complex queries and relationship mappings for PostgreSQL by providing ready-to-use examples for CRUD operations, joins, and data access patterns across related tables to maintain type-safety.

Can I use Drizzle ORM to manage database columns and enums in a TypeScript project?

Yes, you can use Drizzle ORM to manage database columns and enums in a TypeScript project. It provides comprehensive guidance on column types and enums within your schema definitions to ensure robust type-safety.

What are the limitations of using Drizzle ORM for database design?

Drizzle ORM for database design is limited to PostgreSQL environments and requires TypeScript. It focuses on structured schema definitions and migrations, meaning it may not suit projects needing unstructured data or other database platforms.