Files
alla-allaos-fullstack/plans/task-seed-uat.md
phaichayon 0ae4ae3e38 task-d.7.2
2026-07-02 13:42:09 +07:00

751 B

Create UAT seed pipeline for ALLA OS.

Requirements:

  1. Add CSV import seed support from /src/db/seeds/uat-csv/*.csv
  2. Import order: organizations branches product_types users memberships document_sequences customers contacts leads_opportunities quotations quotation_items approval_steps
  3. Add npm scripts:
    • seed:system
    • seed:org
    • seed:uat
    • db:reset:uat
  4. Seed must be idempotent using upsert.
  5. Reset must clear transactional CRM data first, then seed foundation/master/UAT data again.
  6. Preserve organization boundary: ALLA and ONVALLA data must not mix.
  7. Verify login personas: IT → MK → Sale → Manager → CEO
  8. Verify document sequence by organization + branch + product type.