AiSkillz

Early "As-Is" Access - free for the first 20 accounts. 18 of 20 places left: complete registration to claim one. No credit card needed.

← Back to skills
Backend & APIsVia MCPAny / model-agnosticLicense: My own work (all rights reserved)

Postgres data modeling

Created by CodeCraft LLC

Design and review PostgreSQL data models (including Supabase)

Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.

by Jace (@jamick)v1.6.2 · updated 2026-12-01Report copyright infringement

Description

Design and review PostgreSQL data models (including Supabase) — primary keys (UUIDv7/UUID vs identity), types (timestamptz, text with checks, numeric or integer cents for money), constraints as business rules, enums vs lookup tables vs CHECK, JSONB vs relational columns, multi-tenancy with tenant_id plus RLS, soft deletes and partial unique indexes, audit/history tables, created_at/updated_at handling, indexing foreign keys and query patterns, many-to-many join tables, full-text search, naming conventions, and avoiding EAV. Use whenever the user designs new tables or schemas, models a feature's data, asks "how should I store X", reviews an ERD or schema, or plans multi-tenant or marketplace data.

#backend#data#modeling#postgres

Included with all-access

$9.00 one-time, permanent access

Get all-access · $12.00/mo, billed yearly

or

Buy 2 or more together for up to 40% off · View cart

You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms

Official and free skills are included with the all-access subscription

Changelog

Subscribers also see which files changed in each version.

v1.6.2Dec 1, 2026Latest

Added

  • README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.6.1Nov 29, 2026

Changed

  • Added a contents list to reference files over 100 lines (schema-design-patterns.md), so a partial read still shows every section.
v1.6.0Nov 25, 2026

Added

  • PostgreSQL 19 (released November 19, 2026): NOT ENFORCED CHECK constraints, extended statistics on virtual generated columns, faster FK checks, json_array() and inet/cidr upgrade notes; checklist item against relying on unenforced constraints.
  • Postgres 18 NOT NULL ... NOT VALID noted in the safe-change table.

Changed

  • Deep-dive section follows the on-demand format; the reference's duplicate checklist merged into the review checklist.
v1.5.0Nov 20, 2026

Added

  • Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.4.0Nov 6, 2026

Changed

  • Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.3.0Nov 4, 2026

Changed

  • Review report rule at the top of the skill, loaded before any review: one entry per finding as Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
  • Removed the privacy skill from Pairs with; it left the library.
v1.2.3Nov 1, 2026

Changed

  • README: "Pairs with" now lists drizzle, prisma, app-search.
v1.2.2Oct 31, 2026

Changed

  • References updated for renamed skills: supabase is now supabase-platform, eas-workflows is now eas-workflows-ci, skill-creator is now skill-creator-aiskillz.
v1.2.1Oct 30, 2026

Changed

  • README "Pairs with" now lists multi-tenancy for the full organizations, memberships and RLS model.
v1.2.0Oct 16, 2026

Added

  • references/schema-design-patterns.md: schema design patterns (normal forms, UUIDv7 keys, soft-delete options, audit columns, JSONB rules, naming) - merged from the former database-schema-design skill.
v1.1.0Oct 3, 2026

Changed

  • Checked against the official documentation (October 2026).
  • Added built-in uuidv7() (Postgres 18) and the uuidv4() alias to the key guidance.
  • Added Postgres 18 modelling features: virtual generated columns by default, RETURNING old/new, temporal WITHOUT OVERLAPS / PERIOD constraints.
v1.0.1Oct 3, 2026

Changed

  • Added a trademark notice to the README.
v1.0.0Oct 2, 2026

Added

  • First release.