mirror of
https://github.com/neondatabase/postgres-skills.git
synced 2026-09-11 19:46:49 +03:00
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>
356 B
356 B
Schema Design
Best practices for designing Postgres schemas.
Choosing Data Types
- Prefer
textovervarchar(n)unless a length constraint is meaningful to the domain. - Use
timestamptzinstead oftimestampto always store timezone-aware timestamps. - Use
uuidfor primary keys when IDs may be exposed externally or generated client-side.