trading-platform-database-v2/seeds/prod/investment/01-products.sql
Adrian Flores Cortes 2a6d8367d8 feat: Update DDL schemas and add new structures
DDL updates:
- Update extensions and schemas configuration
- Add sessions table for auth schema
- Update education schema (videos, install/uninstall scripts)
- Add backtest_runs and llm_signals tables for ML schema

Scripts:
- Update database creation and migration scripts
- Add DDL validation script

New:
- Add migrations directory structure
- Add production seeds for auth, investment, market_data, trading

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 12:24:23 -06:00

81 lines
2.5 KiB
SQL

-- =====================================================
-- SEED DATA - Schema Investment (Production)
-- =====================================================
-- Project: OrbiQuant IA (Trading Platform)
-- Table: investment.products
-- Description: PAMM investment products (Atlas, Orion, Nova)
-- Date: 2026-01-27
-- =====================================================
SET search_path TO investment, public;
-- =====================================================
-- 1. PAMM INVESTMENT PRODUCTS (3 products)
-- =====================================================
INSERT INTO investment.products (
code, name, description,
trading_agent,
min_investment, max_investment,
target_return_min, target_return_max,
distribution_frequency,
investor_share_percent, platform_share_percent,
recommended_risk_profile,
is_active, is_accepting_new_investors,
total_capacity, current_aum
) VALUES
-- Atlas: Conservative strategy
(
'PAMM-ATLAS',
'Atlas',
'Conservative PAMM strategy focused on capital preservation with steady returns. '
'Targets 3-5% monthly returns through low-risk forex positions and hedging strategies. '
'Ideal for investors seeking stable growth with minimal drawdown.',
'atlas',
1000.00, 500000.00,
3.00, 5.00,
'monthly',
80.00, 20.00,
'conservative',
true, true,
10000000.00, 0.00
),
-- Orion: Moderate strategy
(
'PAMM-ORION',
'Orion',
'Moderate PAMM strategy balancing risk and reward. '
'Targets 5-10% monthly returns through diversified forex and commodity positions. '
'Suitable for investors comfortable with moderate volatility for higher returns.',
'orion',
5000.00, 1000000.00,
5.00, 10.00,
'monthly',
80.00, 20.00,
'moderate',
true, true,
25000000.00, 0.00
),
-- Nova: Aggressive strategy
(
'PAMM-NOVA',
'Nova',
'Aggressive PAMM strategy maximizing return potential. '
'Targets 10%+ monthly returns through high-conviction forex, crypto, and commodity trades. '
'Designed for experienced investors who accept higher volatility for outsized returns.',
'nova',
10000.00, 2000000.00,
10.00, 20.00,
'monthly',
80.00, 20.00,
'aggressive',
true, true,
50000000.00, 0.00
)
ON CONFLICT (code) DO NOTHING;
-- =====================================================
-- VERIFICATION
-- =====================================================
SELECT 'investment.products seed:' AS info, COUNT(*) AS count FROM investment.products;