-- Create linking Database for Floodgate Plugin (BungeeCord)
CREATE DATABASE bedrocklink;
create user floodgate identified by 'change-me-password-floodgate-db' ;
GRANT ALL PRIVILEGES ON bedrocklink.* TO floodgate;
flush privileges;

-- Create Database for AdvancedBan Plugin (BungeeCord)
CREATE DATABASE ban;
create user advancedban identified by 'change-me-password-advancedban-db' ;
GRANT ALL PRIVILEGES ON ban.* TO advancedban;
flush privileges;

-- Create Database for LuckPerms Plugin (BungeeCord, Main, Survival)
CREATE DATABASE permission;
create user luckperms identified by 'change-me-password-luckperms-db' ;
GRANT ALL PRIVILEGES ON permission.* TO luckperms;
flush privileges;

-- Create Database for BungeeTeleportManager Plugin (Main, Survival)
CREATE DATABASE btm;
create user btmuser identified by 'change-me-password-btm-db' ;
GRANT ALL PRIVILEGES ON btm.* TO btmuser;
flush privileges;

-- Create Database for PlotSquared Plugin (Main)
CREATE DATABASE plot;
create user plotsquared identified by 'change-me-password-plot-db' ;
GRANT ALL PRIVILEGES ON plot.* TO plotsquared;
flush privileges;

-- Create Database for DailyRewards Plugin (Main, Survival)
CREATE DATABASE rewards;
create user rewardsuser identified by 'change-me-password-rewards-db' ;
GRANT ALL PRIVILEGES ON rewards.* TO rewardsuser;
flush privileges;

-- Create Database for EconomyPlus Plugin (Main, Survival)
CREATE DATABASE economy;
create user economyplus identified by 'change-me-password-economy-db' ;
GRANT ALL PRIVILEGES ON economy.* TO economyplus;
flush privileges;
