BEGIN;

DROP INDEX IF EXISTS idx_ai_reservation_holds_status_expires;
DROP INDEX IF EXISTS idx_ai_reservation_holds_wallet_id;
DROP INDEX IF EXISTS idx_ai_credit_ledger_reference;
DROP INDEX IF EXISTS idx_ai_credit_ledger_wallet_id;
DROP INDEX IF EXISTS idx_ai_usage_logs_created_at;
DROP INDEX IF EXISTS idx_ai_usage_logs_feature_code;
DROP INDEX IF EXISTS idx_ai_usage_logs_user_id;
DROP INDEX IF EXISTS idx_user_ai_subscriptions_plan_id;
DROP INDEX IF EXISTS idx_user_ai_subscriptions_user_id;

DROP TABLE IF EXISTS ai_reservation_holds;
DROP TABLE IF EXISTS ai_credit_ledger;
DROP TABLE IF EXISTS ai_usage_logs;
DROP TABLE IF EXISTS ai_feature_costs;
DROP TABLE IF EXISTS user_ai_subscriptions;
DROP TABLE IF EXISTS ai_plans;

COMMIT;
