export const PLANS = { FREE: { name: 'Free', maxScan: 50, price: 0, features: ['Max 50 products per scan', 'Basic statistics'], }, PRO_MONTHLY: { name: 'Pro Monthly', maxScan: -1, // unlimited price: 99000, // IDR features: ['Unlimited products', 'Save history', 'AI recommendation', 'CSV export'], }, PRO_YEARLY: { name: 'Pro Yearly', maxScan: -1, price: 999000, // IDR features: ['Unlimited products', 'Save history', 'AI recommendation', 'CSV export', '2 months free'], }, } as const; export const LICENSE_CHECK_INTERVAL_HOURS = 24; export const API_RATE_LIMIT = { windowMs: 15 * 60 * 1000, // 15 minutes max: 100, // per window }; export const SCAN_RATE_LIMIT = { windowMs: 60 * 60 * 1000, // 1 hour max: 10, // per hour }; export const CACHE_TTL = { scanSummary: 3600, // 1 hour userProfile: 300, // 5 min licenseCheck: 86400, // 24 hours dashboard: 1800, // 30 min }; export const PAGINATION = { defaultPage: 1, defaultLimit: 20, maxLimit: 100, };