-- Atlas CMMS Database Initialization Script
-- This script creates the initial database schema and seed data

-- Create database if not exists (handled by Docker)
-- The database 'atlas' is created automatically by the postgres container

-- Atlas CMMS will handle all table creation and migrations automatically
-- via Spring Boot / Flyway migrations when the API container starts

-- Optional: Create additional database users or configurations
-- CREATE USER atlas_readonly WITH PASSWORD 'readonly_password';
-- GRANT SELECT ON ALL TABLES IN SCHEMA public TO atlas_readonly;

-- Optional: Create additional schemas for different environments
-- CREATE SCHEMA IF NOT EXISTS atlas_dev;
-- CREATE SCHEMA IF NOT EXISTS atlas_test;

-- Note: The Atlas CMMS application will automatically:
-- 1. Create all necessary tables
-- 2. Set up indexes and constraints
-- 3. Insert default configuration data
-- 4. Handle database migrations on startup

-- This file is provided as a placeholder for any custom database initialization
-- that might be needed for your specific deployment