132 lines
4.4 KiB
SQL
132 lines
4.4 KiB
SQL
-- ============================================================================
|
|
-- SEED: VIP Tiers
|
|
-- DESCRIPTION: Datos iniciales para los tiers VIP del sistema
|
|
-- VERSION: 1.0.0
|
|
-- CREATED: 2026-01-10
|
|
-- ============================================================================
|
|
|
|
-- Insertar tiers VIP
|
|
INSERT INTO vip.tiers (
|
|
tier, name, description, tagline,
|
|
price_monthly, price_yearly, currency,
|
|
benefits, limits, included_models,
|
|
color, icon, sort_order, is_popular, is_active
|
|
) VALUES
|
|
-- GOLD Tier
|
|
(
|
|
'GOLD',
|
|
'Gold',
|
|
'Acceso a predicciones premium y modelos avanzados para traders serios',
|
|
'Eleva tu trading al siguiente nivel',
|
|
199.00,
|
|
1990.00, -- ~17% descuento anual
|
|
'USD',
|
|
'[
|
|
{"name": "Predicciones AMD Detector", "included": true},
|
|
{"name": "Predicciones Range Predictor", "included": true},
|
|
{"name": "Predicciones VIP", "value": "50/mes"},
|
|
{"name": "API Calls", "value": "1000/mes"},
|
|
{"name": "Soporte Email", "included": true},
|
|
{"name": "Reportes Semanales", "included": true}
|
|
]'::JSONB,
|
|
'{
|
|
"vip_predictions_per_month": 50,
|
|
"api_calls_per_month": 1000,
|
|
"exclusive_models": ["amd_detector", "range_predictor"],
|
|
"priority_support": false,
|
|
"custom_alerts": 5
|
|
}'::JSONB,
|
|
ARRAY['amd_detector', 'range_predictor'],
|
|
'#FFD700',
|
|
'crown',
|
|
1,
|
|
FALSE,
|
|
TRUE
|
|
),
|
|
-- PLATINUM Tier
|
|
(
|
|
'PLATINUM',
|
|
'Platinum',
|
|
'Suite completa de predicciones con modelos exclusivos y soporte prioritario',
|
|
'Para traders profesionales',
|
|
399.00,
|
|
3990.00, -- ~17% descuento anual
|
|
'USD',
|
|
'[
|
|
{"name": "Todo Gold incluido", "included": true},
|
|
{"name": "TPSL Classifier", "included": true},
|
|
{"name": "ICT/SMC Detector", "included": true},
|
|
{"name": "Predicciones VIP", "value": "150/mes"},
|
|
{"name": "API Calls", "value": "5000/mes"},
|
|
{"name": "Soporte Prioritario", "included": true},
|
|
{"name": "Alertas Personalizadas", "value": "20"},
|
|
{"name": "Acceso Beta Features", "included": true}
|
|
]'::JSONB,
|
|
'{
|
|
"vip_predictions_per_month": 150,
|
|
"api_calls_per_month": 5000,
|
|
"exclusive_models": ["amd_detector", "range_predictor", "tpsl_classifier", "ict_smc_detector"],
|
|
"priority_support": true,
|
|
"custom_alerts": 20,
|
|
"beta_access": true
|
|
}'::JSONB,
|
|
ARRAY['amd_detector', 'range_predictor', 'tpsl_classifier', 'ict_smc_detector'],
|
|
'#E5E4E2',
|
|
'gem',
|
|
2,
|
|
TRUE, -- Popular
|
|
TRUE
|
|
),
|
|
-- DIAMOND Tier
|
|
(
|
|
'DIAMOND',
|
|
'Diamond',
|
|
'Acceso ilimitado a todos los modelos incluyendo Strategy Ensemble exclusivo',
|
|
'El pináculo del trading algorítmico',
|
|
999.00,
|
|
9990.00, -- ~17% descuento anual
|
|
'USD',
|
|
'[
|
|
{"name": "Todo Platinum incluido", "included": true},
|
|
{"name": "Strategy Ensemble (Exclusivo)", "included": true},
|
|
{"name": "Predicciones VIP", "value": "Ilimitadas"},
|
|
{"name": "API Calls", "value": "Ilimitadas"},
|
|
{"name": "Soporte 24/7 Dedicado", "included": true},
|
|
{"name": "Alertas Personalizadas", "value": "Ilimitadas"},
|
|
{"name": "Sesiones 1-on-1 Mensuales", "value": "2/mes"},
|
|
{"name": "Early Access Features", "included": true},
|
|
{"name": "White-glove Onboarding", "included": true}
|
|
]'::JSONB,
|
|
'{
|
|
"vip_predictions_per_month": -1,
|
|
"api_calls_per_month": -1,
|
|
"exclusive_models": ["amd_detector", "range_predictor", "tpsl_classifier", "ict_smc_detector", "strategy_ensemble"],
|
|
"priority_support": true,
|
|
"dedicated_support": true,
|
|
"custom_alerts": -1,
|
|
"beta_access": true,
|
|
"early_access": true,
|
|
"monthly_sessions": 2
|
|
}'::JSONB,
|
|
ARRAY['amd_detector', 'range_predictor', 'tpsl_classifier', 'ict_smc_detector', 'strategy_ensemble'],
|
|
'#B9F2FF',
|
|
'diamond',
|
|
3,
|
|
FALSE,
|
|
TRUE
|
|
)
|
|
ON CONFLICT (tier) DO UPDATE SET
|
|
name = EXCLUDED.name,
|
|
description = EXCLUDED.description,
|
|
tagline = EXCLUDED.tagline,
|
|
price_monthly = EXCLUDED.price_monthly,
|
|
price_yearly = EXCLUDED.price_yearly,
|
|
benefits = EXCLUDED.benefits,
|
|
limits = EXCLUDED.limits,
|
|
included_models = EXCLUDED.included_models,
|
|
color = EXCLUDED.color,
|
|
icon = EXCLUDED.icon,
|
|
sort_order = EXCLUDED.sort_order,
|
|
is_popular = EXCLUDED.is_popular,
|
|
updated_at = NOW();
|