Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs relational and document schemas: keys, constraints, query-driven indexes, ERDs, reversible migrations; defaults to PostgreSQL.
82% 73%−9 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 18 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Differences from the PostgreSQL defaults in postgres.md. Apply the same workflow; change the types and index features.
utf8mb4 with a utf8mb4_0900_ai_ci (or _bin) collation; plain utf8 is a 3-byte alias that cannot store all of Unicode.BIGINT UNSIGNED AUTO_INCREMENT. InnoDB clusters rows by primary key, so random UUIDv4 keys fragment the table; if UUIDs are needed, store UUIDv7 (or UUID_TO_BIN(UUID(), 1)) in BINARY(16).DATETIME(6) stored in UTC (set by the app), or TIMESTAMP, which is limited to 2038.CHECK constraints are enforced from 8.0.16; older versions parse and ignore them.CREATE INDEX idx_users_email_lower ON users ((lower(email)));ENUM is common but altering it rewrites the table on older versions; a lookup table is easier to evolve.ALGORITHM=INSTANT or INPLACE, LOCK=NONE where supported; use gh-ost or pt-online-schema-change for large tables otherwise.STRICT so column types are enforced.PRAGMA foreign_keys = ON; on every connection.INTEGER PRIMARY KEY is an alias for the rowid and the fastest key.TEXT in UTC or as Unix epoch INTEGER; pick one and be consistent.ALTER TABLE is limited (no dropping constraints); many changes need the create-copy-rename pattern.PRAGMA journal_mode = WAL;) for concurrent readers.$jsonSchema validators on the collection (see schema-templates.md).Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.