# Learnings for Rate Limit Tiers

## Seed Script Creation
- Created 'src/lib/db/seedPackages.js' following the 'seedAdmin.js' pattern.
- Imported 'getAllPackages' and 'createPackage' from './repos/packagesRepo.js' (relative path to allow direct Node execution).
- Defined 'DEFAULT_PACKAGES' with exact values for cupu, jago, suhu tiers in Rupiah pricing.
- Implemented idempotency: checks existing packages by name before creating.

## Verification
- Verified script execution: 'node -e "import("./src/lib/db/seedPackages.js").then(m => m.seedPackages())"'
- Output confirmed 3 packages created: cupu, jago, suhu.
- Verified idempotency: second run prints 'Default packages ready' without creating duplicates.

## Module Resolution
- Note: Running scripts directly with 'node' bypasses Next.js module resolution for '@/' aliases.
- Fixed 'src/lib/db/paths.js' to use relative import '../dataDir.js' instead of '@/lib/dataDir.js' to allow direct execution.
- This is a development-time adjustment; the app itself (via Next.js) handles '@/' aliases correctly.
