CREATE ROLE ervu_account_applications WITH
  LOGIN
  NOSUPERUSER
  INHERIT
  NOCREATEDB
  NOCREATEROLE
  NOREPLICATION
  PASSWORD 'ervu_account_applications';

CREATE ROLE ervu_jbpm WITH
  LOGIN
  NOSUPERUSER
  INHERIT
  NOCREATEDB
  NOCREATEROLE
  NOREPLICATION
  PASSWORD 'ervu_jbpm';


CREATE DATABASE account_applications
    WITH
    OWNER = ervu_account_applications;

CREATE DATABASE account_applications_jbpm
    WITH
    OWNER = ervu_jbpm;
