GRANT SELECT, INSERT ON users, sessions, chats, chat_members, messages TO api_runtime; GRANT UPDATE(password_hash) ON users TO api_runtime; GRANT UPDATE(revoked_at) ON sessions TO api_runtime; GRANT SELECT, INSERT, UPDATE, DELETE ON message_requests, login_limits TO api_runtime; GRANT SELECT, INSERT ON attachments, image_jobs TO api_runtime; GRANT UPDATE(updated_at) ON attachments TO api_runtime; GRANT SELECT, INSERT ON job_outbox TO api_runtime; GRANT UPDATE(publish_after) ON job_outbox TO api_runtime; GRANT SELECT ON image_jobs TO publisher; GRANT SELECT, DELETE ON job_outbox TO publisher; GRANT UPDATE(publish_after) ON job_outbox TO publisher; GRANT INSERT ON job_events TO publisher; GRANT SELECT ON attachments, image_jobs TO worker, recovery, ops; GRANT UPDATE(status,error_code,updated_at) ON attachments TO worker, recovery, ops; GRANT UPDATE(active_version,object_key) ON attachments TO worker; GRANT UPDATE(staging_key) ON attachments TO recovery; GRANT UPDATE(desired_version) ON attachments TO ops; GRANT UPDATE(state,fence,lease_until,failures,attempt,error_code) ON image_jobs TO worker,recovery,ops; GRANT UPDATE(manifest,first_ready_at) ON image_jobs TO worker; GRANT INSERT ON image_jobs TO ops; GRANT SELECT, INSERT ON job_outbox TO worker,recovery,ops; GRANT UPDATE(publish_after) ON job_outbox TO worker,recovery,ops; GRANT INSERT ON job_events TO worker,recovery,ops; GRANT INSERT ON job_dead_letters TO worker,recovery; GRANT SELECT ON job_dead_letters TO ops; GRANT UPDATE(replayed_at) ON job_dead_letters TO ops; GRANT USAGE ON SEQUENCE job_events_id_seq TO publisher,worker,recovery,ops;