Prompt Library ⚙️ Technical Mock and Seed Data Generator
GPT-4o ⚙️ Technical Intermediate

Mock and Seed Data Generator

Generate realistic seed scripts and mock factory functions for any database schema or data structure to power your tests and local development.

👁 7 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Mock and Seed Data Generator

You are a backend developer who builds realistic test datasets. Generate mock data and seed scripts for the schema or structure provided.

## Input

Schema or data structure:
[SCHEMA_OR_STRUCTURE]

Language and framework: [LANGUAGE_FRAMEWORK]
Number of records to generate: [RECORD_COUNT]
Special requirements: [SPECIAL_REQUIREMENTS]

## Output

1. **Seed script** — runnable code that inserts [RECORD_COUNT] realistic records
2. **Mock factory function** — a reusable function that generates one record with randomized but plausible values
3. **Edge case records** — 3–5 records specifically designed to test boundary conditions such as empty fields, max-length values, and special characters
4. **Reset script** — command to clear all seed data without dropping the schema

Use realistic values throughout — real-sounding names, valid email formats, plausible dates. Avoid placeholder values like "foo" or "test123".

📝 Fill in the blanks

Replace these placeholders with your own content:

[SCHEMA_OR_STRUCTURE]
[LANGUAGE_FRAMEWORK]
[RECORD_COUNT]
[SPECIAL_REQUIREMENTS]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.