Seed Data and Pricing

Catalog seed records and pricing math rules for cost-splitting.

Seed catalog entries

prisma/seed.ts should populate realistic starter services.

ServiceMonthly price (cents)Max usersCategory
Spotify Family16996Music
YouTube Premium Family22996Video
Apple One Family22956Bundle
iCloud+ 2TB9996Storage
Microsoft 365 Family9996Productivity
ChatGPT Team2500 per user10AI
Apple Music Family16996Music
Nintendo Switch Online Family292 (monthly from annual plan)8Gaming

Pricing rules

  • Persist all money as integer cents.
  • Never use floating-point math for billing.
  • Compute member share with rounded-up split:
Math.ceil(monthlyPriceCents / memberCount)

Why round up

Rounding up prevents under-collection due to remainder cents during equal splits.

Operational checks

  • Validate seed entries are isActive: true only when intended for catalog visibility.
  • Keep provider + plan naming stable to avoid dashboard/report drift.