vanilla pg dokcer image setup

This commit is contained in:
Ruslan Talpa
2025-06-20 09:33:45 +03:00
parent cc3af6f7dd
commit 3e36d516c2
8 changed files with 229 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
CREATE SCHEMA IF NOT EXISTS test;
CREATE TABLE IF NOT EXISTS test.items (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL
);
INSERT INTO test.items (name) VALUES
('test item 1'),
('test item 2'),
('test item 3');
CREATE ROLE test_role NOINHERIT;
GRANT ROLE test_role TO authenticator;
GRANT USAGE ON SCHEMA test TO test_role;
GRANT ALL ON ALL TABLES IN SCHEMA test TO test_role;