feat(seed): rewrite seed for multi-cardinality refactor
Split seed into orchestrator (seed.ts) + per-port fixture builder (seed-data.ts). Creates three ports (Port Nimara, Marina Azzurra, Harbor Royale) and seeds each with a realistic multi-cardinality dataset: 12 berths (5 available / 5 reserved / 2 sold), 8 clients with contacts and primary addresses, 3 companies (2 active / 1 dissolved) with billing addresses, memberships exercising dual- company ownership and ended state, 12 yachts (7 client-owned / 5 company-owned) plus matching open ownership-history rows, 3 completed ownership transfers per port (client <-> company), 15 interests spanning all pipeline stages, and 8 reservations (5 active on distinct berths / 2 ended / 1 cancelled). Seed wraps per-port work in withTransaction and is idempotent: re-running detects existing company rows and skips. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1105
src/lib/db/seed-data.ts
Normal file
1105
src/lib/db/seed-data.ts
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user