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,18 @@
CREATE SCHEMA IF NOT EXISTS tenant2;
CREATE TABLE IF NOT EXISTS tenant2.items (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL
);
INSERT INTO tenant2.items (name) VALUES
('tenant2 item 1'),
('tenant2 item 2'),
('tenant2 item 3');
CREATE ROLE tenant2_role NOINHERIT;
GRANT ROLE tenant2_role TO authenticator;
GRANT USAGE ON SCHEMA tenant2 TO tenant2_role;
GRANT ALL ON ALL TABLES IN SCHEMA tenant2 TO tenant2_role;