# Realistic Scenario Seed Pack — Phase 1

## Purpose
This package introduces the first realistic scenario-driven demo seed pass.

The goal is to keep the app easy to understand while showing how the main parts of the product work together with believable connected records.

## New commands

### Seed phase 1 scenarios without clearing first
```bash
npm run demo:seed:scenario:phase1
```

### Clear business/demo data and reseed with phase 1 scenarios
```bash
npm run demo:reseed:scenario:phase1
```

## Phase 1 scenario coverage
The phase 1 demo pack is designed to give a realistic overview of the live workflow by covering:
- ready trucks with no load
- ready loads waiting to be assigned
- assigned loads
- in-transit loads
- delivered loads awaiting invoice
- invoiced loads awaiting payment
- paid loads
- document follow-up examples
- billing and collections examples

## Demo user email overrides
The canonical seed now supports env-based demo email overrides so reseeding does not force the app back to `.local` demo addresses.

Supported env keys:
- `DEMO_ADMIN_EMAIL`
- `DEMO_DISPATCHER_EMAIL`
- `DEMO_OWNER_EMAIL`
- `DEMO_DEFAULT_PASSWORD`

If these are not provided, the seed falls back to the original local demo addresses.

## Recommended server values
```env
DEMO_ADMIN_EMAIL="support@dispatchspot.com"
DEMO_OWNER_EMAIL="jcampbell.faze@gmail.com"
DEMO_DISPATCHER_EMAIL="dispatcher@dispatchspot.local"
DEMO_DEFAULT_PASSWORD="ChangeMe123!"
```

## Recommended usage order
1. Deploy this package
2. Add the demo email override values to `.env`
3. Run `npm run demo:reseed:scenario:phase1`
4. Review the app across Dispatch, Loads, Billing, Documents, Dashboard, and CRM
5. Proceed to the next scenario seed phase only after the phase 1 dataset reads clearly and tests the main workflow well
