Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Relational modelling: keys, constraints and types v1.0.0

Use this resource to design or review a relational schema so the database enforces business rules

New

  • 538 downloads
  • 215 likes
  • 226 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install relational-schema-design

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent designs or reviews tables and migrations against rules that correct common defaults: identity keys, EXCLUDE constraints, partial unique indexes, CHECK constraints, time types and exact money. Examples target PostgreSQL 18. You get a schema where the database rejects inconsistent data.

Mostly picked by

Updated November 2, 2026

Card for the “Relational modelling: keys, constraints and types” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on constraints, partial indexes and NOT VALID constraints
  • references/: cards on identity keys and partition axes

Good fit for

  • Two bookings can overlap because nothing prevents it
  • An ID column uses serial where you want an identity column

Not for

    Tags

    • postgresql
    • schema
    • constraints
    • keys
    • migrations

    About

    You say

    “Design the room booking tables so no two slots overlap, in PostgreSQL.”

    Card for the “Relational modelling: keys, constraints and types” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to design or review a relational schema so the database enforces business rules
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md7.6 KB
    • assets/templates/_template.md1.9 KB
    • LICENSE1.1 KB
    • metadata.json2.9 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md3.9 KB
    • references/cons-check-is-single-row.md2.8 KB
    • references/cons-deferrable-for-cycles.md2.8 KB
    • references/cons-exclude-for-non-overlap.md2.8 KB
    • references/cons-not-null-by-default.md2.6 KB
    • references/cons-not-valid-then-validate.md3.1 KB
    • references/cons-partial-unique-index.md2.4 KB
    • references/key-identity-not-serial.md2 KB
    • references/key-partition-axis-binds-the-key.md2.8 KB
    • references/key-primary-key-is-real-identity.md2.1 KB
    • references/key-propagate-scoping-key.md2.6 KB
    • references/key-uuidv7-for-client-generated.md2 KB
    • references/norm-derived-needs-a-mechanism.md4.4 KB
    • references/norm-encoded-composite-values.md2.7 KB
    • references/norm-jsonb-for-open-shapes.md3.1 KB
    • references/rel-choose-referential-action.md2.6 KB
    • references/rel-index-referencing-side.md2.1 KB
    • references/rel-no-polymorphic-fk.md2.5 KB
    • references/rel-one-to-one-is-one-table.md2.6 KB
    • references/rel-relationship-as-entity.md2.8 KB
    • references/rel-subtypes-through-the-key.md3.1 KB
    • references/time-events-not-in-place-updates.md3.5 KB
    • references/time-soft-delete-breaks-constraints.md3 KB
    • references/time-valid-vs-transaction-time.md3.9 KB
    • references/time-validity-as-a-range.md3.5 KB
    • references/type-enum-lookup-or-check.md2.7 KB
    • references/type-numeric-with-currency.md2.6 KB
    • references/type-range-not-two-columns.md2.8 KB
    • references/type-text-over-varchar.md2.3 KB
    • references/type-timestamptz-for-instants.md2.7 KB
    • SKILL.md9.7 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/relational-data-modeling
    Licence
    MIT

    Notice

    « relational-data-modeling » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.