feat(seed): implement local IAM baseline seeder with configurable settings

This commit is contained in:
Nathnael
2026-07-27 07:09:09 +00:00
parent 89a0bc6948
commit 1fe10ee3c2
6 changed files with 1149 additions and 4 deletions

View File

@@ -42,8 +42,15 @@ JWT_REFRESH_TOKEN_EXPIRES=7d
# IAM seed defaults (used by @tria-plc/iamapi-common on first boot)
SUPER_ADMIN_EMAIL=superadmin@tria.com
SUPER_ADMIN_PHONE=
# Super-admin password. Falls back to DEFAULT_PASSWORD when empty.
SUPER_ADMIN_PASSWORD=
DEFAULT_PASSWORD=password@tria
# IAM baseline (roles, IAM app + permissions, position types, org/unit settings,
# super-admin account). Local replacement for the package DataSeeder —
# see src/seed/iam-baseline.seed.ts.
SEED_IAM_BASELINE=false
# Freight org + staff (bookings / rule-engine IAM)
SEED_EDR_ORG=true
SEED_FREIGHT_STAFF=true