Files
neondatabase_postgres-skills/skills/postgres-best-practices/references/schema-design.md
T
Andre LandgrafandCursor fd7e65bb93 Skeleton setup for postgres-skills repo
Mirrors the agent-skills repo structure with a placeholder
postgres-best-practices skill and one example reference file.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-11 11:50:54 -08:00

356 B

Schema Design

Best practices for designing Postgres schemas.

Choosing Data Types

  • Prefer text over varchar(n) unless a length constraint is meaningful to the domain.
  • Use timestamptz instead of timestamp to always store timezone-aware timestamps.
  • Use uuid for primary keys when IDs may be exposed externally or generated client-side.