-- Development Database Initialization Script
-- This script creates a minimal database structure for development

-- Create the foxhunt database
CREATE DATABASE foxhunt;

-- Connect to the database
\c foxhunt;

-- Create extensions
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "btree_gin";

-- Include the existing init-db.sql content
\i init-db.sql

-- Apply all migrations in order
\i migrations/001_up_create_core_tables.sql
\i migrations/002_up_create_risk_performance_tables.sql
\i migrations/007_configuration_schema.sql
\i migrations/011_create_market_data_tables.sql
\i migrations/012_create_event_and_config_tables.sql
