-- A first batch of real feature costs so the wallet primitives (Phase 1)
-- have something concrete to charge against once wired into handlers.
-- Model aliases match the real LiteLLM deployment
-- (nxtgauge-gitops/apps/litellm/base/configmap.yaml): askash-fast /
-- askash-main. Costs are illustrative starting points, not a pricing
-- decision -- see Appendix Q4 of the architecture doc.

BEGIN;

INSERT INTO ai_feature_costs (feature_code, display_name, default_model, credit_cost, timeout_ms) VALUES
('help_answer', 'Help Answer', 'askash-fast', 1, 10000),
('jd_generate', 'Job Description Generate', 'askash-main', 5, 20000),
('cover_letter_generate', 'Cover Letter Generate', 'askash-main', 5, 20000),
('resume_improve', 'Resume Improve', 'askash-main', 8, 20000);

UPDATE ai_plans
SET allowed_features = '["help_answer", "jd_generate"]'
WHERE code = 'free';

COMMIT;
