apiVersion: v1
data:
  init-db.sql:
    CREATE DATABASE druid;
    CREATE USER druid WITH PASSWORD 'FoolishPassword';
    GRANT ALL PRIVILEGES ON DATABASE druid TO druid;

    CREATE USER love_and_marriage WITH PASSWORD 'FoolishPassword';

    CREATE DATABASE covid;
    CREATE DATABASE users;
    GRANT ALL PRIVILEGES ON DATABASE users TO love_and_marriage;
    GRANT ALL PRIVILEGES ON DATABASE covid TO love_and_marriage;

kind: ConfigMap
metadata:
  namespace: love-and-marriage
  name: init-postgres-db-config