2023-07-27 15:27:06 +00:00
|
|
|
-- Auto-generated SQL script. Actual values for binary/complex data types may differ - what you see is the default string representation of values.
|
2023-09-21 10:50:07 +00:00
|
|
|
INSERT INTO `account`.`role` (name, description)
|
2023-09-13 10:02:25 +00:00
|
|
|
VALUES ('deliveryAssistant','Jefe auxiliar repartos');
|
2023-07-27 15:27:06 +00:00
|
|
|
|
2023-09-13 10:02:25 +00:00
|
|
|
INSERT INTO `account`.`roleInherit` (role, inheritsFrom)
|
|
|
|
SELECT (SELECT id FROM account.role r1 WHERE r1.name = 'deliveryAssistant'), ri.inheritsFrom
|
|
|
|
FROM account.roleInherit ri
|
|
|
|
JOIN account.role r2 ON r2.id = ri.`role`
|
|
|
|
WHERE r2.name = 'deliveryBoss';
|
2023-07-27 15:27:06 +00:00
|
|
|
|
|
|
|
INSERT INTO `account`.`roleInherit` (role, inheritsFrom)
|
2023-09-13 10:02:25 +00:00
|
|
|
SELECT (SELECT id FROM account.role WHERE name = 'deliveryBoss') role,
|
2023-07-27 15:27:06 +00:00
|
|
|
(SELECT id FROM account.role WHERE name = 'deliveryAssistant') roleInherit;
|
|
|
|
|
2023-09-18 10:24:26 +00:00
|
|
|
|
2023-09-19 09:02:12 +00:00
|
|
|
CALL `account`.`role_syncPrivileges`();
|