This guide helps you write database schemas using Drizzle ORM for PostgreSQL. It covers naming rules for tables and columns. You will learn how to set up primary keys without sequences. It also shows the right way to add foreign keys and timestamps.
Follow these patterns to keep your database code clean and consistent across the project. The guide includes helper functions for timestamps. It also warns against using artificial sentinel strings for missing values.
Developers working on pgTable schemas, indexes, joins, or query patterns will find this useful. It ensures every new table matches the existing project style.
Global
mkdir -p ~/.claude/skills/drizzleProject
mkdir -p .claude/skills/drizzleSource Repository
Supabase Postgres Best Practicessupabase/agent-skills
Follow Supabase's expert guidelines for faster Postgres queries and smarter schema design
Firebase Data Connectfirebase/agent-skills
Build secure PostgreSQL backends with Firebase using GraphQL schemas and type-safe SDKs
Convex Migration Helperget-convex/agent-skills
Plan and run safe Convex schema migrations without downtime or data loss
Firebase Firestorefirebase/agent-skills
Master Cloud Firestore setup, queries, full-text search, security rules, and indexes
Neon Postgresneondatabase/agent-skills
Set up and manage Neon Serverless Postgres with ease and speed
Firebase Firestore Standardfirebase/agent-skills
Set up and secure Cloud Firestore with clear provisioning rules and SDK guides
Firebase Firestore Enterprise Native Modefirebase/agent-skills
Master Firestore Enterprise Native Mode provisioning data modeling security rules and SDK usage
Postgresql Table Designwshobson/agents
Design PostgreSQL tables with best practices for performance and reliability