-- CHORUS Services Database Initialization

-- Create databases for each service
CREATE DATABASE chorus_whoosh;
CREATE DATABASE chorus_slurp;
CREATE DATABASE chorus_rl_tuner;
CREATE DATABASE chorus_monitoring;

-- Grant permissions
GRANT ALL PRIVILEGES ON DATABASE chorus_whoosh TO chorus;
GRANT ALL PRIVILEGES ON DATABASE chorus_slurp TO chorus;
GRANT ALL PRIVILEGES ON DATABASE chorus_rl_tuner TO chorus;
GRANT ALL PRIVILEGES ON DATABASE chorus_monitoring TO chorus;