Files
pos-system/.scratchpad/context.md
Ho Ngoc Hai aab80fd697 fix(web-client-tpos): add permissions and user_id to CreateStaff INSERT
Fix NOT NULL constraint violations in merchant_staff table:
- Add permissions = 0 (default no permissions)
- Add user_id = Guid.Empty (placeholder until linked)
- Verified: CREATE→UPDATE→DELETE all working
2026-03-03 20:46:49 +07:00

668 B

Context — GoodGo Platform

Updated: 2026-03-03 20:45

Current Status

  • P1 + P2 + P3: Hoàn thành
  • Branch: master
  • Last Commits: 8cba902 (Products CRUD) → 15b17f5 (Staff CRUD + Inventory)

Recent Changes

  • Products: Full CRUD (Create/Read/Update/Delete) in ShopPage Admin
  • Staff: Full CRUD (Create/Read/Update/Delete=soft) in ShopPage Admin
  • Inventory: Update quantity/reorder level via BFF endpoint
  • Bug fixes: CreateStaff auth, created_at NOT NULL

Tech Stack

  • Backend: BFF Controller (Dapper + Npgsql → PostgreSQL)
  • Frontend: Blazor WASM (ShopPage.razor + PosDataService.cs)
  • Deploy: Docker Compose (deployments/local)