Разработка баз данных с Drizzle ORM
data
database-development is a Claude Code skill that defines database migration and Drizzle ORM conventions for the vm0 project. It covers three migration workflows: auto-generated migrations via `pnpm db:generate` and `pnpm db:migrate`, custom SQL migrations using `drizzle-kit generate --custom` for renames and complex ALTER statements, and data migration scripts for external API calls (such as Clerk) stored under `turbo/packages/db/scripts/migrations/` with sequential numbering, mandatory README files, and dry-run mode by default. A dedicated section on database result boundaries explains why `sql<T>`, `.as<T>()`, and TypeScript assertions only affect compile-time types and mandates `.mapWith()` with reviewed decoders from `db-structured-result.ts` for every raw SQL expression. The skill targets teams using PostgreSQL with Drizzle ORM inside a Turborepo monorepo who need consistent, safe schema and data migration practices.
- #database
- #drizzle-orm
- #migrations
- #sql
- #data-management