{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "raja0sama-vibex--draw-data-model-from-prisma-schema",
 "repo": "Raja0sama/vibex",
 "repo_url": "https://github.com/Raja0sama/vibex",
 "repo_slug": "raja0sama-vibex",
 "title": "Draw the real data model from a Prisma schema",
 "page_title": "How to draw the real data model from a Prisma schema with Vibex",
 "summary": "Turn a Prisma schema into a validated ERD that shows the tables that actually ship.",
 "who": "A developer joining a project or reviewing a database change who needs an accurate map of tables and relations.",
 "problem": "Existing diagrams in wikis or whiteboards go stale, and nobody is sure which tables join which.",
 "outcome": "A validated ERD spec and a standalone HTML viewer showing tables, PK/FK badges, and cardinality taken from the schema.",
 "steps": [
  "`vibex import prisma  prisma/schema.prisma  docs/db.erd.json`",
  "`vibex validate docs/db.erd.json`",
  "`vibex render docs/db.erd.json --open`"
 ],
 "agent_prompt": "In the repo <repo path>, import prisma/schema.prisma into docs/db.erd.json with vibeX, validate it, and render docs/db.erd.html. Report the table count and any validation errors. Verify that every foreign key in the schema appears as a relation in the ERD.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The ERD is generated from the Prisma schema, so it reflects what the schema declares, not what the database holds at runtime.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "Node.js and npx, for the npx commands in the README",
  "A Prisma schema, OpenAPI document, or GraphQL SDL file in the project, or source code the tool can read",
  "Claude Code or Codex if you want to use vibeX as an agent skill"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/raja0sama-vibex/draw-data-model-from-prisma-schema/",
 "md": "https://dedupedai.com/use-cases/raja0sama-vibex/draw-data-model-from-prisma-schema/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/raja0sama-vibex--draw-data-model-from-prisma-schema.json",
 "api_version": "v1"
}
