{"status":"healthy","timestamp":"2026-04-05T13:51:11.038Z","service":"ryan-testcase-system","version":"1.0.0","git":{"commit":"4586ec7","branch":"main","author":"milkosten","message":"feat: Add subscription-based file storage with monthly token billing\n\nBREAKING CHANGE: File expiry system now subscription-aware\n\n- Make files.expire_at nullable for subscribed users\n- Add monthly_storage_usage tracking table\n- Create subscription service layer with orchestrator integration\n- Update file upload logic to check subscription status\n  - Subscribed users: expire_at = NULL (permanent, billed monthly)\n  - Non-subscribed: expire_at = NOW() + TTL (max 30 days)\n- Create monthly billing cron job\n  - Runs 1st of month at 2:00 AM UTC\n  - Calculates peak storage per workspace\n  - Charges 1M tokens per 100MB via orchestrator API\n  - Records billing history\n- Update cleanup job to skip subscribed files\n- Add axios dependency for orchestrator API calls\n\nIntegration points:\n- GET /api/admin/billing/subscription-status (orchestrator)\n- POST /api/admin/billing/storage-charge (orchestrator)\n\nMigration: 043_subscription_based_file_storage.sql\nNew service: src/services/subscriptionService.js\nNew job: src/jobs/monthlyStorageBilling.js"},"database":{"status":"connected","error":null},"uptime":175020,"environment":"production"}