task-d.7.2

This commit is contained in:
phaichayon
2026-07-02 13:42:09 +07:00
parent bca8d3f7e0
commit 0ae4ae3e38
22 changed files with 4423 additions and 0 deletions

28
plans/task-seed-uat.md Normal file
View File

@@ -0,0 +1,28 @@
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.