INSERT INTO `account`.`role` (name, description)
	VALUES ('timeControl','Tablet para fichar');

INSERT INTO `account`.`roleInherit` (role, inheritsFrom)
    VALUES (127, 11);

INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
    VALUES 
        ('WorkerTimeControl', 'login', 'READ', 'ALLOW', 'ROLE', 'timeControl'),
        ('WorkerTimeControl', 'getClockIn', 'READ', 'ALLOW', 'ROLE', 'timeControl'),
        ('WorkerTimeControl', 'clockIn', 'WRITE', 'ALLOW', 'ROLE', 'timeControl'),
        ('VnUser', 'renewToken', 'WRITE', 'ALLOW', 'ROLE', 'timeControl');

CALL `account`.`role_sync`();
