This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
202 additions
and
263 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
-- This file is used to control access to the API database. | ||
-- You probably do not need to modify this. | ||
ALTER DEFAULT PRIVILEGES IN SCHEMA dev | ||
GRANT | ||
SELECT | ||
ON TABLES TO public; | ||
|
||
ALTER DEFAULT PRIVILEGES IN SCHEMA public | ||
GRANT | ||
SELECT | ||
ON TABLES TO public; | ||
|
||
CREATE ROLE api_staging_user LOGIN; | ||
|
||
GRANT USAGE ON SCHEMA dev TO api_staging_user; | ||
|
||
GRANT | ||
SELECT | ||
ON ALL TABLES IN SCHEMA dev TO api_staging_user; | ||
|
||
GRANT USAGE, | ||
SELECT | ||
ON ALL SEQUENCES IN SCHEMA dev TO api_staging_user; | ||
|
||
GRANT INSERT ON dev."CalendarTerm" TO api_staging_user; | ||
|
||
CREATE ROLE api_prod_user LOGIN; | ||
|
||
GRANT USAGE ON SCHEMA public TO api_prod_user; | ||
|
||
GRANT | ||
SELECT | ||
ON ALL TABLES IN SCHEMA public TO api_prod_user; | ||
|
||
GRANT USAGE, | ||
SELECT | ||
ON ALL SEQUENCES IN SCHEMA public TO api_prod_user; | ||
|
||
GRANT INSERT ON public."CalendarTerm" TO api_prod_user; | ||
|
||
CREATE ROLE api_websoc_scraper LOGIN; | ||
|
||
GRANT USAGE ON SCHEMA public TO api_websoc_scraper; | ||
|
||
GRANT USAGE, | ||
SELECT | ||
ON ALL SEQUENCES IN SCHEMA public TO api_websoc_scraper; | ||
|
||
GRANT | ||
SELECT | ||
, | ||
INSERT, | ||
UPDATE, | ||
DELETE ON public."WebsocEnrollmentHistory" TO api_websoc_scraper; | ||
|
||
GRANT | ||
SELECT | ||
, | ||
INSERT, | ||
UPDATE, | ||
DELETE ON public."WebsocSection" TO api_websoc_scraper; | ||
|
||
GRANT | ||
SELECT | ||
, | ||
INSERT, | ||
UPDATE, | ||
DELETE ON public."WebsocSectionInstructor" TO api_websoc_scraper; | ||
|
||
GRANT | ||
SELECT | ||
, | ||
INSERT, | ||
UPDATE, | ||
DELETE ON public."WebsocSectionMeeting" TO api_websoc_scraper; | ||
|
||
GRANT | ||
SELECT | ||
, | ||
INSERT, | ||
UPDATE, | ||
DELETE ON public."WebsocSectionMeetingBuilding" TO api_websoc_scraper; |
This file contains 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
Oops, something went wrong.