Seeding from the Dashboard
- Go to your project’s Admin tab
- Click Seed Data
- Select a profile
- Click Seed
Seed Profiles
Minimal
A small dataset for quick testing:- 1-2 users per role
- 3-5 records per entity
- Basic relationships
Realistic
A production-like dataset:- 10-20 users
- 50-100 records per entity
- Complex relationships
- Varied data (different statuses, priorities, dates)
Stress Test
Large volume for performance testing:- 100+ users
- 1,000+ records per entity
- Edge cases (very long text, special characters)
Smart Data Generation
Backdrift generates contextually appropriate data based on field names and types:| Field | Generated Data |
|---|---|
email | Realistic fake emails |
name, first_name | Common names |
phone | Valid phone formats |
address | Real-looking addresses |
title (on Task) | Task-like titles |
description | Lorem-style paragraphs |
price | Reasonable dollar amounts |
created_at | Recent dates |
due_date | Future dates |
Enums
For enum fields, data is distributed realistically:status: 40% pending, 40% active, 20% donepriority: 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
API Seeding
Seed programmatically via API:Options
| Option | Type | Default | Description |
|---|---|---|---|
profile | string | ”minimal” | minimal, realistic, stress |
clearExisting | boolean | false | Delete existing data first |
organizationCount | number | 3 | Number of tenants (multi-tenant only) |
usersPerOrg | number | 5 | Users per organization |
Custom Seed Data
For specific test scenarios, create records manually:- Use the Data Browser to create records
- Export as JSON (coming soon)
- Import to reset to that state
Clearing Data
To reset your database:- Go to Admin tab
- Click Clear Data
- Select entities to clear
- Confirm deletion
Test Credentials
Seeded users have predictable credentials:| Password | Role | |
|---|---|---|
| admin@example.com | TestPass123! | admin |
| member@example.com | TestPass123! | member |
| viewer@example.com | TestPass123! | viewer |
These are for testing only. In production, use real user signups.
Best Practices
Use Separate Environments
Use Separate Environments
Seed test data in dev/staging, not production.
Reset Before Demos
Reset Before Demos
Clear and re-seed before important demos for clean data.
Test Edge Cases
Test Edge Cases
The Stress Test profile includes edge cases—use it to find bugs.
Check Relationships
Check Relationships
After seeding, verify relationships are correct in the Data Browser.
