# Initial admin bootstrap

CLI-only operation (not an HTTP endpoint). Creates the first ADMIN user in PostgreSQL.

## Prerequisites

- Valid `.env` (`DATABASE_URL`, `JWT_SECRET` >= 32 characters, etc.)
- No existing ADMIN user

## Usage

```bash
npm run bootstrap:admin -- --email=admin@example.com --password="YourSecurePassword" --firstName=Admin --lastName=User
```

## Behavior

- Hashes the password with bcrypt (`BCRYPT_ROUNDS`, default 10)
- Creates a real `User` row with `role=ADMIN`, `isActive=true`
- Aborts if an ADMIN already exists
- Aborts if the email is already registered
- Never logs the password or secrets
