Integration Guide

Fake Data Generator for Prisma & TypeORM Seeding

Replace brittle fixture scripts with one relational schema request. BugiaData generates linked tables ready for Prisma and TypeORM pipelines in local development and CI.

Common ORM Seeding Pain

  • Manual table ordering across dependencies
  • Intermittent foreign key failures in CI
  • Large, hard-to-maintain custom seeder scripts

BugiaData Approach

  • Define schema once in JSON
  • Generate parent/child tables in one request
  • Consume payloads directly in Prisma or TypeORM seed jobs

Schema Example

{
  "count": 25,
  "schema": {
    "users": {"columns": {"id": {"type": "uuid"}, "email": {"type": "email"}}},
    "projects": {"columns": {"id": {"type": "uuid"}, "owner_id": {"type": "foreign_key", "reference": "users.id"}}}
  }
}

Frequently Asked Questions

Keep your schema definition in source control and call POST /api/generate/schema in your Prisma seed step. The API returns parent and child tables in dependency order so inserts remain foreign-key safe.
Yes. Generate relational tables first, then map response payloads into TypeORM entities for deterministic integration tests and fixture refreshes.
Yes. BugiaData is API-first and scriptable, so teams can generate linked fixture data during build or test jobs without maintaining large custom seeding scripts.