nxtgauge-backend-rust/apps
Ashwin Kumar Sivakumar 4f2683d085 chore: remove legacy AI quota system
Delete legacy code that used old company_ai_usage/job_seeker_ai_usage tables:
- Remove has_active_ai_pack() - old AI_PACK pricing package check
- Remove check_and_increment_usage() - legacy daily quota tracking
- Remove BASE_AI_LIMIT, get_ai_limit_for_package constants/functions
- Remove legacy queries from ai_auto_apply() and ai_usage_status()
- Update auto_apply.rs to use user_ai_subscriptions.daily_actions_used
  instead of job_seeker_ai_usage table
- Inline apply_scheduled_downgrades() and expire_trials() in cron tasks
  to remove dependency on users crate internal modules

The new system uses user_ai_subscriptions with:
- daily_actions_used / daily_credits_used counters
- monthly_credits_total / monthly_credits_used
- purchased_credits_total / purchased_credits_used

All AI billing now flows through the wallet/ledger system with
LiteLLM integration (Tasks 1-10).
2026-07-06 02:14:23 +05:30
..
catering_services feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
companies chore: remove broken company_ai_credits stub 2026-07-06 02:08:07 +05:30
cron chore: remove legacy AI quota system 2026-07-06 02:14:23 +05:30
customers feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
developers feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
employees feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
fitness_trainers feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
gateway feat: Complete Ask Ash AI Credits implementation on high-performance branch (Tasks 1-10) 2026-07-06 01:49:16 +05:30
graphic_designers feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
job_seekers feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
jobs feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
leads feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
makeup_artists feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
payments feat: Complete Ask Ash AI Credits implementation on high-performance branch (Tasks 1-10) 2026-07-06 01:49:16 +05:30
photographers feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
social_media_managers feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
tutors feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
ugc_content_creators feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
users chore: remove legacy AI quota system 2026-07-06 02:14:23 +05:30
video_editors feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30