# create the databases
CREATE DATABASE IF NOT EXISTS `bookstack`;
CREATE DATABASE IF NOT EXISTS `kimai`;
CREATE DATABASE IF NOT EXISTS `semaphore`;

# create users and privileges
CREATE USER 'bookstack'@'%' IDENTIFIED BY 'sdfl39302klsdjf';
GRANT ALL PRIVILEGES ON bookstack.* TO 'bookstack'@'%';

CREATE USER 'kimai'@'%' IDENTIFIED BY 'xXW5dnQoMpAmdXrQgUgU';
GRANT ALL PRIVILEGES ON kimai.* TO 'kimai'@'%';

CREATE USER 'semaphore'@'%' IDENTIFIED BY 'Zk5FM#*9uAFzt6n6TGD!';
GRANT ALL PRIVILEGES ON semaphore.* TO 'semaphore'@'%';
