mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-13 00:12:54 +00:00
vanilla pg dokcer image setup
This commit is contained in:
18
proxy/dev/sql/include/tenant2.sql
Normal file
18
proxy/dev/sql/include/tenant2.sql
Normal 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;
|
||||
Reference in New Issue
Block a user