Developer Builds Tool for Realistic Relational Database Generation

Tool Solves Database Generation Problem for App Development
A developer on r/ClaudeAI shared their solution to a common problem when building apps with Claude Code: the need for realistic, fully loaded relational databases for testing and demos. While prompting Claude worked for small datasets, generating larger datasets with intact foreign key relationships became messy.
Technical Approach That Worked
The developer built a tool with several key technical approaches:
- Topological generation: The system resolves the foreign key dependency graph and generates tables in the correct order—parent tables first, then children—with every foreign key pointing to a real parent row.
- Cardinality modeling: Instead of uniform distributions, the generator uses distributions matching real-world patterns. For example, order counts per user follow a negative binomial distribution, and activity timestamps cluster around business hours with realistic seasonal variation. The system infers these patterns from schema structure and column names without requiring configuration.
- Cross-table consistency: The system handles implicit business rules not declared as foreign key constraints, such as ensuring payment dates come after invoice dates, or that an employee's department and salary match their job title in the appropriate currency. These rules are inferred from naming conventions and table relationships.
- Schema from plain English: Users describe what they need (e.g., "a SaaS app with organizations, users, projects, tasks, and an activity log") and the tool builds the full schema with all relationships, column types, and constraints, then generates the data in one shot.
Development Context
The developer noted that while the application was coded with Claude Code, the generation engine itself—the part that solves the constraint graph and models distributions—had to be architected manually. They found that 100% reliance on LLMs for generating this data was not scalable nor reliable enough.
The developer is now working on building MCP (Model Context Protocol) to work with Claude.
📖 Read the full source: r/ClaudeAI
👀 See Also

Vibe Remote: Mobile Bridge for Claude Code Access from Anywhere
Vibe Remote is a mobile app that provides remote access to Claude Code development environments from a phone, allowing users to maintain their local configs, Git history, and file tree without requiring Tailscale or complex VPN setups.

Miasma: A tool to trap AI web scrapers with poisoned data
Miasma is a server tool that sends poisoned training data and self-referential links to AI web scrapers, creating an endless loop. It runs with minimal memory footprint and can be configured via CLI options including port, host, and link prefix.

md-redline: GUI tool for reviewing and handing off markdown docs to Claude
md-redline is an open-source tool that lets you open markdown files in a GUI, leave inline comments stored as HTML markers in the .md file, and hand back off to Claude for updates. It runs locally with no account, cloud, or database required.

Why Codex Still Beats Claude Code for Complex Python Monoliths
A senior developer compares Codex vs Claude Code on a production Python monolith with mixed architectural layers. Codex wins for back-end work due to better planning, code reuse, and harness-engineering adherence.