# Database Seeding

## Introduction

You'll likely want to seed your database during development in order to get some dummy data into your database to start working fast.

{% hint style="success" %}
Masonite uses Orator to generate seed files. This documentation will explain how to create the files itself.

Read more about creating seed classes with the [Orator documentation](https://orator-orm.com/docs/0.9/seeding.html).
{% endhint %}

## Getting Started

We can simply create a new seeder by running:

```
craft seed User
```

This will create a new seeder inside the `databases/seeds` directory. This will also create a `database_seeder.py` file which will be where the root of all seeds should be.&#x20;

The `user_table_seeder` should be where you simply abstract your seeds to.

## Running Seeds

We can run:

```
craft seed:run
```

This will run the `database_seeder` seed. We can also specify an individual seed

```
craft seed:run User
```

Which will run the `user_table_seeder` only.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.masoniteproject.com/v2.3/advanced/database-seeding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
