What problem does it solve? Writing consistent Drizzle ORM table definitions and safe database migrations requires remembering many conventions—naming rules, ID generation, timestamp helpers, index syntax, and idempotent SQL. This Skill encodes all of those conventions so schema and migration work stays uniform and error-free. ## Core Features & Use Cases - Schema Conventions: Enforces plural snake_case tables, snake_case columns, prefixed text IDs via idGenerator, cascade foreign keys, and shared timestamp helpers from _helpers.ts. - Common Patterns: Provides ready-made patterns for primary keys, foreign keys, indexes, junction tables for many-to-many relations, and Zod type inference with createInsertSchema. - Migration Workflow: Guides generating migrations with bun run db:generate, renaming files meaningfully, adding IF NOT EXISTS clauses, and refreshing the client hash with db:generate:client. - Use Case: When adding a new agents table with a many-to-many relation to knowledge bases, follow the documented patterns to define the schema, generate the migration, and make it idempotent. ## Quick Start Ask the AI to create a new Drizzle table schema and generate an idempotent migration for it following the project conventions.