Реализация на 5

This commit is contained in:
Grbisba
2026-11-18 11:36:21 +03:00
parent 20afc2c790
commit de4d471d80
255 changed files with 21516 additions and 124 deletions
+10
View File
@@ -0,0 +1,10 @@
REVOKE CREATE ON SCHEMA public FROM PUBLIC;
GRANT USAGE ON SCHEMA public TO api_role,worker_role,dispatcher_role;
GRANT SELECT,INSERT,UPDATE ON users,refresh_tokens,chats,chat_members,messages,message_idempotency,message_attachments,attachments,attachment_jobs,job_slo,outbox TO api_role;
GRANT SELECT ON attachment_variants TO api_role;
GRANT SELECT,UPDATE ON attachments,attachment_jobs,job_slo TO worker_role;
GRANT INSERT,SELECT ON attachment_variants,job_audit TO worker_role;
GRANT USAGE ON SEQUENCE job_audit_id_seq TO worker_role;
GRANT INSERT,SELECT ON outbox TO worker_role;
GRANT SELECT,UPDATE ON outbox,job_slo,attachments,attachment_jobs TO dispatcher_role;
GRANT SELECT ON attachment_variants TO dispatcher_role;