diff --git a/{{cookiecutter.name}}/postgres/sql/initdb.d/003.create.sql b/{{cookiecutter.name}}/postgres/sql/initdb.d/003.create.sql index bba611b..9a40ce7 100644 --- a/{{cookiecutter.name}}/postgres/sql/initdb.d/003.create.sql +++ b/{{cookiecutter.name}}/postgres/sql/initdb.d/003.create.sql @@ -5,3 +5,8 @@ create extension if not exists tablefunc; create schema if not exists {{cookiecutter.name}}; grant usage on schema {{cookiecutter.name}} to public; + +create user if not exists {{cookiecutter.name}} with password 'password'; +grant usage on schema {{coockiecutter.name}} to {{cookiecutter.name}}; +grant all privileges on all tables in schema {{cookiecutter.name}} to {{cookiecutter.name}}; +alter default privileges in schema {{cookiecutter.name}} grant all privileges on tables to {{cookiecutter.name}};