CREATE DATABASE vtdocs;

CREATE USER vtdocs WITH PASSWORD :pwd;

GRANT vtdocs TO current_user;

ALTER DATABASE vtdocs OWNER TO vtdocs;

GRANT ALL PRIVILEGES ON DATABASE vtdocs TO vtdocs;

ALTER ROLE "vtdocs" WITH LOGIN CREATEDB;

CREATE EXTENSION IF NOT EXISTS pgcrypto;
