Build realistic schemas, relationships, constraints, and production-like seed data without hand-editing every column the way many dump tools make you. Configure presets and relationship options, generate, pick PostgreSQL, MySQL, SQLite, or MongoDB, and download a clean dump—short path from idea to file.
Built by Adam - The Developer from Piper.
- Runs entirely in the browser (no backend required)
- Generates schema + relationship graph + ordered insert plan
- Produces deterministic data from a seed value
- Exports downloadable dump files for:
- PostgreSQL (
.sql) - MySQL (
.sql) - SQLite (
.sql) - MongoDB (
.js)
- PostgreSQL (
- Next.js 16 (App Router)
- React 19
- TypeScript
- Tailwind CSS
- Radix UI Tooltip
- Vitest (smoke tests)
- Node.js
>= 20.9.0(required by Next.js 16) - npm
npm installnpm run devOpen http://localhost:3000.
npm run buildnpm run lintnpm run test- Setup: choose preset/config + seed + rows.
- Review: inspect generated schema and insert order.
- Export: download the target dialect dump file.
Advanced options apply deterministically from your seed:
- Composite key rate: exactly
round(rate × entityCount)tables get a composite primary key (id+code) whenfields per entity ≥ 2;codecounts toward the column total. - Many-to-many count: exactly
min(requested, N)many-to-many relationships, whereNis the number of allowed ordered entity pairs (depends on Include cycles). - Relationship density: intended one-to-one + one-to-many count is
round(density × N); the generator uses at most the pairs left after many-to-many, so the realized count ismin(round(density × N), N - M). - Self references: exactly
min(requested, entityCount)self relationships. - Optional field rate: among padding columns only, exactly
round(rate × paddingCount)are nullable; among directed FK edges, exactlyround(rate × directedCount)are nullable.
app/ # Next.js app router pages + metadata routes
src/core/ # Schema/data generation + dependency resolver
src/exporters/ # Dialect exporters
src/ui/ # UI sections/components
src/constants/ # Grouped constants and templates
src/utils/ # Shared helpers (seeded RNG, download)
SEO and site metadata are configured in:
app/layout.tsx(title, description, OpenGraph, Twitter, icons, manifest)app/robots.tsapp/sitemap.ts
Optional env for canonical/hosted URL:
NEXT_PUBLIC_SITE_URL=https://your-domain.com