-- Initialize o2sound_v2 database -- This script runs automatically when the PostgreSQL container starts for the first time -- The database 'o2sound_v2' is already created by POSTGRES_DB environment variable -- The user 'postgres' is already created by POSTGRES_USER environment variable -- Set default configuration for the database ALTER DATABASE o2sound_v2 SET timezone TO 'Asia/Seoul'; -- Grant all privileges to postgres user (already has them, but explicit) GRANT ALL PRIVILEGES ON DATABASE o2sound_v2 TO postgres; -- Connect to the o2sound_v2 database \c o2sound_v2 -- Add any additional initialization here -- For example, create extensions if needed: -- CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- CREATE EXTENSION IF NOT EXISTS "pg_trgm"; -- Log completion SELECT 'Database o2sound_v2 initialized successfully' AS status;