Skip to main content
Seed data helps you test your application with realistic content. Backdrift generates contextual seed data based on your entity schemas.

Seeding from the Dashboard

  1. Go to your project’s Admin tab
  2. Click Seed Data
  3. Select a profile
  4. Click Seed

Seed Profiles

Minimal

A small dataset for quick testing:
  • 1-2 users per role
  • 3-5 records per entity
  • Basic relationships
Use for: Quick feature testing, demos

Realistic

A production-like dataset:
  • 10-20 users
  • 50-100 records per entity
  • Complex relationships
  • Varied data (different statuses, priorities, dates)
Use for: User acceptance testing, screenshots, demos

Stress Test

Large volume for performance testing:
  • 100+ users
  • 1,000+ records per entity
  • Edge cases (very long text, special characters)
Use for: Performance testing, pagination testing

Smart Data Generation

Backdrift generates contextually appropriate data based on field names and types:

Enums

For enum fields, data is distributed realistically:
  • status: 40% pending, 40% active, 20% done
  • priority: 20% low, 50% medium, 30% high

Relationships

Seed data maintains referential integrity:
  • Tasks are assigned to existing projects
  • Comments belong to existing tasks
  • Users are linked to organizations

Multi-Tenant Seeding

In multi-tenant mode, seed data creates:
  • Multiple organizations
  • Users per organization
  • Isolated data per tenant
Example distribution:

API Seeding

Seed programmatically via API:

Options

Custom Seed Data

For specific test scenarios, create records manually:
  1. Use the Data Browser to create records
  2. Export as JSON (coming soon)
  3. Import to reset to that state

Clearing Data

To reset your database:
  1. Go to Admin tab
  2. Click Clear Data
  3. Select entities to clear
  4. Confirm deletion
Clearing data is permanent. In production, consider using a separate test environment instead.

Test Credentials

Seeded users have predictable credentials:
These are for testing only. In production, use real user signups.

Best Practices

Seed test data in dev/staging, not production.
Clear and re-seed before important demos for clean data.
The Stress Test profile includes edge cases—use it to find bugs.
After seeding, verify relationships are correct in the Data Browser.