mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-16 03:34:48 +00:00
7 lines
258 B
MySQL
7 lines
258 B
MySQL
|
|
CREATE OR REPLACE VIEW eventstore.role_permissions AS
|
||
|
|
SELECT instance_id, aggregate_id, object_id as role, text_value as permission
|
||
|
|
FROM eventstore.fields
|
||
|
|
WHERE aggregate_type = 'permission'
|
||
|
|
AND object_type = 'role_permission'
|
||
|
|
AND field_name = 'permission';
|