-- create the databases;
CREATE DATABASE nextcloud;

CREATE DATABASE gitea;

-- create users and privileges
CREATE USER nextcloud WITH PASSWORD 'jX9hKI2POvt1VrjVbBs4';
GRANT ALL PRIVILEGES ON DATABASE nextcloud TO nextcloud;

CREATE USER gitea WITH PASSWORD 'sadlkf0234lsdf';
GRANT ALL PRIVILEGES ON DATABASE gitea TO gitea;