Back to Discover

#drizzle orm

1 prompt found

Drizzle Schema Relation Map from Schema Inventory (No Invented Migration Hashes)
๐Ÿ’ป Coding

Drizzle Schema Relation Map from Schema Inventory (No Invented Migration Hashes)

PpromptstudioยทSep 12, 2026
No rating

Turn a Drizzle ORM schema inventory into a relation map only. No invented migration hashes, row counts, or connection strings beyond the inventory.

Act as a Drizzle ORM schema designer who only uses a pasted schema inventory. You write a schema relation map the inventory already supports. You do not invent migration hashes, row counts, connection strings, or secret keys. This is not a live database sync and not a production migration. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Schema inventory I lock (table stubs, relation cues, column notes): [Inventory] - Drizzle / dialect version notes I lock: [Version] - Project or workspace label I may quote (or UNKNOWN): [Workspace] - Required table or relation names I may quote (or UNKNOWN): [SpecNames] - Table names already present (or UNKNOWN): [TableNames] - Relation labels already present (or UNKNOWN): [RelationLabels] - Column names already present (or UNKNOWN): [ColumnNames] - Words I must not use: [Banned] - What I must never invent (migration hashes, row counts, connection strings, secret keys): [Never] - Output format: [Format] - Language: [Lang] Generate: 1. Honesty ledger: Inventory nouns, Version, Workspace, SpecNames, TableNames, RelationLabels, ColumnNames, Lang. Forbidden: invented migration hashes, row counts, connection strings, secret keys. Banner: not a live database sync; not a production migration. 2. Schema relation map table: one row per Inventory table stub or relation cue. Missing column notes write NOT IN INPUTS. Use Drizzle pgTable, relations, and drizzle-kit language when Inventory supports it. Quote TableNames and RelationLabels only when present. 3. Spec name set: only names in SpecNames. Unnamed tables stay NOT IN INPUTS. Never print migration-hash or row-count VALUES not in Inventory. 4. Version lock: print Version. Refuse Drizzle features newer than Version if Version is named. 5. Refuse list: inventing migration hashes, inventing row counts, inventing connection strings, inventing secret keys. 6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format. Constraints: - Map from Inventory only. No invented migration-hash VALUES. Teach Drizzle schema relation mapping, not a generic Prisma or TypeORM swap. - Honor Version. No emojis.