Initial commit
This commit is contained in:
17
server/scripts/init-db.sql
Normal file
17
server/scripts/init-db.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- 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;
|
||||
Reference in New Issue
Block a user