chore(seed): rewrite for current schema with 10+ entries per table
- Vendors: remove deprecated contactName/Email/Mobile fields; use VendorContact nested creates with primary flag, role, mobile, email - Add pincode + lat/lng to all vendors for distance calculations - Sites: 12 Indian port locations with lat/lng - Vessels: 11, linked to sites - Accounts: 12 covering all spend categories - Users: 12 across all roles - ProductVendorPrice: 51 entries linking vendors to products - ItemInventory: 15 stock records across sites - ItemConsumption: 14 daily consumption records - PurchaseOrders: 12 spanning full status lifecycle - Seed is idempotent (all upserts, safe to re-run) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
dacd688ebe
commit
8e57381b06
1 changed files with 889 additions and 309 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue