# Seed Data

> Data put into an empty database at the start. The app or tests use it.

**Field:** Software Development  
**Category:** Databases  
**Also known as:** Database Seeding, Seeding, Seed File

## Think of it like

Think of it like putting toys in a new playroom. Then kids have something to play with on day one.

## Definition

Seed data is the first data a script puts into an empty database. It can be real data the app needs, like a list of countries. It can also be fake data for tests. A seed script runs after the migrations have built the tables. It lets each coder start with the same data in seconds. It should never hold real customer details or real passwords.

## Example

Lucy joins Jack's team. She runs the seed script and gets 50 fake customers and 200 fake orders to test with.

## Why it matters

An empty database makes an app hard to try out. Seed data gives everyone the same starting point.

## Common mistake

Seeding with a copy of real customer data. It puts private details on each laptop that runs it.

## Three principles

- **A starting point.** Data in an empty database.
- **After migrations.** Tables first, then rows.
- **Never real people.** Fake names and emails only.

## Related terms

- [Database Migration](https://learn.benibix.com/term/development/database-migration)
- [Database](https://learn.benibix.com/term/development/database)
- [Row](https://learn.benibix.com/term/development/row)
- [Database Schema](https://learn.benibix.com/term/development/schema)

---

Source: https://learn.benibix.com/term/development/seed-data
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
