Files
drone-detector/server/scripts/init-db.sql
2025-08-16 19:43:44 +02:00

18 lines
534 B
SQL

-- Database initialization script for Docker
-- This script sets up the initial database structure
-- Enable extensions
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- Set timezone
SET timezone = 'Europe/Stockholm';
-- Create indexes for better performance
-- (These will be created by Sequelize, but we can optimize here)
-- Log successful initialization
INSERT INTO pg_stat_statements_info (dealloc) VALUES (0) ON CONFLICT DO NOTHING;
-- Grant necessary permissions
GRANT ALL PRIVILEGES ON DATABASE drone_detection TO postgres;