Use when creating or modifying database schemas, Drizzle ORM definitions, migrations, SQL queries, or persistence logic. PostgreSQL conventions and JSONB usage rules.
Use this skill when creating or modifying database schemas, Drizzle definitions, migrations, queries, or persistence logic.
PostgreSQL is the system of record.
Store core business state in relational columns.
Use JSONB selectively for:
Do not hide important queried business fields in JSONB.
Use Drizzle schema as the authoritative schema definition.
Where relevant, persist both:
This is especially important for: