What problem does it solve? Teams writing Drizzle ORM schemas and queries often drift into inconsistent naming, fragile composite primary keys, loose JSONB typing, and the error-prone relational query API. This Skill codifies the project's schema and query style so every table, index, and query follows the same reviewed conventions. ## Core Features & Use Cases - Schema Conventions: Defines rules for pgTable definitions, surrogate primary keys, foreign keys, timestamps, indexes, naming families, and when to avoid pgEnum and composite PKs. - Query Style Enforcement: Mandates the db.select() builder API over db.query relational API, with patterns for joins, aggregations, one-to-many fetches, and raw SQL fallbacks like recursive CTEs. - Type Safety Guidance: Covers inferred insert/select types, concrete JSONB interfaces, and TypeScript value types via $type instead of database enums. - Use Case: When adding a new workspace-scoped table with a many-to-many junction, use this Skill to generate the schema with a uuid surrogate PK, uniqueIndex for pair uniqueness, cascade foreign keys, and a matching join query written with the select builder. ## Quick Start Use the drizzle skill to write a new pgTable schema and select query for a user-scoped logging table following project conventions.