-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sql
More file actions
17 lines (12 loc) · 687 Bytes
/
Copy pathinit.sql
File metadata and controls
17 lines (12 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Initialize Railway Traffic Decision-Support System Database
-- This script sets up the database with initial configuration
-- Create TimescaleDB extension
CREATE EXTENSION IF NOT EXISTS timescaledb;
-- Create initial database schema will be handled by SQLAlchemy migrations
-- This file is for any additional setup needed
-- Create indexes for better performance
-- (These will be created by the application, but can be added here for reference)
-- Example: Create time-series hypertable for system states
-- SELECT create_hypertable('system_states', 'timestamp');
-- Insert some sample data for development
-- (This will be handled by the application's seed data functionality)