Created
September 20, 2024 18:06
-
-
Save rayrayzayzay/5b7db5db112a919f918b69d4c981861a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER felt_user WITH PASSWORD 'your_secure_password'; | |
GRANT CONNECT ON DATABASE your_database TO felt_user; | |
GRANT USAGE ON SCHEMA public TO felt_user; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO felt_user; | |
-- Grant select permission on future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO felt_user; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment