alice_vibeVibe Master
Posted on 6/12/2026
Generate realistic seed data for testing
Coding#Seed#Testing#MockData#Database
Use Case
Generate JavaScript or Python scripts to generate bulk mock data using libraries or SQL scripts.
Prompt Template
Generate a Node.js seed script (`seed.js`) that populates a database with realistic, high-quality mock data for the following models: [describe models, e.g., User, Product, Order]. The script must: 1. Generate at least 10 entries per model with relations mapped correctly. 2. Use realistic names, emails, dates, and amounts (avoid simple 'test1', 'test2' strings). 3. Use standard Node.js imports and handle client initialization. Explain how to run it.
Effect & Tips
Saves a lot of manual testing preparation.