local db inserts update
This commit is contained in:
parent
bc1fef18f2
commit
d839ba2aca
|
@ -1,22 +1,275 @@
|
|||
INSERT INTO `salix`.`Role`(`id`, `name`, `description`, `created`, `modified`)
|
||||
INSERT INTO `account`.`role`(`id`, `name`, `description`)
|
||||
VALUES
|
||||
(1, 'employee', 'Privilegios básicos de un empleado', CURDATE(), CURDATE()),
|
||||
(2, 'customer', 'Privilegios básicos de un cliente', CURDATE(), CURDATE()),
|
||||
(3, 'administrative', 'Tareas relacionadas con la contabilidad', CURDATE(), CURDATE()),
|
||||
(4, 'salesPerson', 'Departamento de ventas', CURDATE(), CURDATE());
|
||||
(1, 'employee', 'Privilegios básicos de un empleado'),
|
||||
(2, 'customer', 'Privilegios básicos de un cliente'),
|
||||
(3, 'agency', 'Consultar tablas de predicciones de bultos'),
|
||||
(5, 'administrative', 'Tareas relacionadas con la contabilidad'),
|
||||
(6, 'guest', 'Privilegios para usuarios sin cuenta'),
|
||||
(9, 'developer', 'Desarrolladores del sistema'),
|
||||
(11, 'account', 'Privilegios relacionados con el login'),
|
||||
(13, 'teamBoss', 'Jefe de departamento'),
|
||||
(14, 'manageEmployee', 'Privilegios para gestión de empleados'),
|
||||
(15, 'logistic', 'Departamento de logística'),
|
||||
(16, 'logisticBoss', 'Jefe del departamento de logística'),
|
||||
(17, 'adminBoss', 'Jefe del departamento de administración'),
|
||||
(18, 'salesPerson', 'Departamento de ventas'),
|
||||
(19, 'salesBoss', 'Jefe del departamento de ventas'),
|
||||
(20, 'manager', 'Departamento de gerencia'),
|
||||
(21, 'salesAssistant', 'Jefe auxiliar de ventas'),
|
||||
(22, 'teamManager', 'Jefe de departamento con privilegios de auxiliar de venta.'),
|
||||
(30, 'financialBoss', 'Director finaciero'),
|
||||
(31, 'freelancer', 'Trabajadores por cuenta ajena'),
|
||||
(32, 'ett', 'Trabajadores de empresa temporal'),
|
||||
(33, 'root', 'Rol con todos los privilegios');
|
||||
|
||||
UPDATE `account`.`role` SET `id` = 0 WHERE `id` = 33;
|
||||
|
||||
INSERT INTO `account`.`roleRole`(`role`, `inheritsFrom`)
|
||||
VALUES
|
||||
(0, 0),
|
||||
(0, 1),
|
||||
(0, 2),
|
||||
(0, 3),
|
||||
(0, 5),
|
||||
(0, 6),
|
||||
(0, 9),
|
||||
(0, 11),
|
||||
(0, 13),
|
||||
(0, 14),
|
||||
(0, 15),
|
||||
(0, 16),
|
||||
(0, 17),
|
||||
(0, 18),
|
||||
(0, 19),
|
||||
(0, 20),
|
||||
(0, 21),
|
||||
(0, 22),
|
||||
(0, 30),
|
||||
(0, 31),
|
||||
(0, 32),
|
||||
(1, 1),
|
||||
(1, 2),
|
||||
(1, 3),
|
||||
(1, 6),
|
||||
(1, 11),
|
||||
(2, 2),
|
||||
(2, 6),
|
||||
(2, 11),
|
||||
(3, 3),
|
||||
(3, 6),
|
||||
(3, 11),
|
||||
(5, 1),
|
||||
(5, 2),
|
||||
(5, 3),
|
||||
(5, 5),
|
||||
(5, 6),
|
||||
(5, 11),
|
||||
(5, 13),
|
||||
(5, 14),
|
||||
(5, 18),
|
||||
(5, 19),
|
||||
(5, 21),
|
||||
(6, 6),
|
||||
(9, 0),
|
||||
(9, 1),
|
||||
(9, 2),
|
||||
(9, 3),
|
||||
(9, 5),
|
||||
(9, 6),
|
||||
(9, 9),
|
||||
(9, 11),
|
||||
(9, 13),
|
||||
(9, 14),
|
||||
(9, 15),
|
||||
(9, 16),
|
||||
(9, 17),
|
||||
(9, 18),
|
||||
(9, 19),
|
||||
(9, 20),
|
||||
(9, 21),
|
||||
(9, 22),
|
||||
(9, 30),
|
||||
(9, 31),
|
||||
(9, 32),
|
||||
(11, 6),
|
||||
(11, 11),
|
||||
(13, 1),
|
||||
(13, 2),
|
||||
(13, 3),
|
||||
(13, 6),
|
||||
(13, 11),
|
||||
(13, 13),
|
||||
(13, 14),
|
||||
(14, 14),
|
||||
(15, 1),
|
||||
(15, 2),
|
||||
(15, 3),
|
||||
(15, 6),
|
||||
(15, 11),
|
||||
(15, 15),
|
||||
(16, 1),
|
||||
(16, 2),
|
||||
(16, 3),
|
||||
(16, 6),
|
||||
(16, 11),
|
||||
(16, 13),
|
||||
(16, 14),
|
||||
(16, 15),
|
||||
(16, 16),
|
||||
(17, 1),
|
||||
(17, 2),
|
||||
(17, 3),
|
||||
(17, 5),
|
||||
(17, 6),
|
||||
(17, 11),
|
||||
(17, 13),
|
||||
(17, 14),
|
||||
(17, 17),
|
||||
(17, 18),
|
||||
(17, 19),
|
||||
(17, 20),
|
||||
(17, 21),
|
||||
(18, 1),
|
||||
(18, 2),
|
||||
(18, 3),
|
||||
(18, 6),
|
||||
(18, 11),
|
||||
(18, 18),
|
||||
(19, 1),
|
||||
(19, 2),
|
||||
(19, 3),
|
||||
(19, 6),
|
||||
(19, 11),
|
||||
(19, 13),
|
||||
(19, 14),
|
||||
(19, 18),
|
||||
(19, 19),
|
||||
(19, 21),
|
||||
(20, 1),
|
||||
(20, 2),
|
||||
(20, 3),
|
||||
(20, 6),
|
||||
(20, 11),
|
||||
(20, 13),
|
||||
(20, 14),
|
||||
(20, 20),
|
||||
(21, 1),
|
||||
(21, 2),
|
||||
(21, 3),
|
||||
(21, 6),
|
||||
(21, 11),
|
||||
(21, 18),
|
||||
(21, 21),
|
||||
(22, 1),
|
||||
(22, 2),
|
||||
(22, 3),
|
||||
(22, 6),
|
||||
(22, 11),
|
||||
(22, 13),
|
||||
(22, 14),
|
||||
(22, 18),
|
||||
(22, 21),
|
||||
(22, 22),
|
||||
(30, 1),
|
||||
(30, 2),
|
||||
(30, 3),
|
||||
(30, 5),
|
||||
(30, 6),
|
||||
(30, 11),
|
||||
(30, 13),
|
||||
(30, 14),
|
||||
(30, 18),
|
||||
(30, 19),
|
||||
(30, 20),
|
||||
(30, 21),
|
||||
(30, 22),
|
||||
(30, 30),
|
||||
(31, 1),
|
||||
(31, 2),
|
||||
(31, 3),
|
||||
(31, 6),
|
||||
(31, 11),
|
||||
(31, 31),
|
||||
(32, 1),
|
||||
(32, 2),
|
||||
(32, 3),
|
||||
(32, 6),
|
||||
(32, 11),
|
||||
(32, 32);
|
||||
|
||||
INSERT INTO `account`.`roleInherit`(`role`, `inheritsFrom`)
|
||||
VALUES
|
||||
(9, 0),
|
||||
(5, 1),
|
||||
(13, 1),
|
||||
(15, 1),
|
||||
(18, 1),
|
||||
(31, 1),
|
||||
(32, 1),
|
||||
(1, 2),
|
||||
(5, 2),
|
||||
(1, 3),
|
||||
(17, 5),
|
||||
(30, 5),
|
||||
(11, 6),
|
||||
(1, 11),
|
||||
(2, 11),
|
||||
(3, 11),
|
||||
(16, 13),
|
||||
(17, 13),
|
||||
(19, 13),
|
||||
(20, 13),
|
||||
(22, 13),
|
||||
(5, 14),
|
||||
(13, 14),
|
||||
(16, 15),
|
||||
(21, 18),
|
||||
(5, 19),
|
||||
(17, 20),
|
||||
(30, 20),
|
||||
(19, 21),
|
||||
(22, 21),
|
||||
(30, 22);
|
||||
|
||||
INSERT INTO `salix`.`ACL`(`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
||||
VALUES
|
||||
(1, 'Account', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(2, 'Account', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(3, 'Address', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(4, 'Address', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(5, 'AgencyService', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(6, 'AgencyService', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(7, 'Client', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(8, 'Client', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(9, 'ClientObservation', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(10, 'ClientObservation', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(11, 'ContactChannel', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(12, 'ContactChannel', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(13, 'Employee', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(14, 'PayMethod', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(15, 'PayMethod', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(16, 'FakeProduction', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(17, 'Warehouse', '* ', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(18, 'State', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(19, 'FakeProduction', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(20, 'TicketState', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(22, 'TicketState', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(23, 'TicketState', '*', 'EXECUTE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(24, 'Delivery', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(25, 'Zone', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
||||
|
||||
INSERT INTO `salix`.`Account`(`id`,`name`,`password`,`roleFk`,`active`,`email`)
|
||||
VALUES
|
||||
(1, 'BruceWayne', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'BruceWayne@verdnatura.es'),
|
||||
(2, 'PetterParker', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'PetterParker@verdnatura.es'),
|
||||
(3, 'ClarkKent', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'ClarkKent@verdnatura.es'),
|
||||
(4, 'TonyStark', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'TonyStark@verdnatura.es'),
|
||||
(5, 'MaxEisenhardt', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'MaxEisenhardt@verdnatura.es'),
|
||||
(6, 'DavidCharlesHaller', 'ac754a330530832ba1bf7687f577da91', 1, 1, 'DavidCharlesHaller@verdnatura.es'),
|
||||
(7, 'HankPym', 'ac754a330530832ba1bf7687f577da91', 1, 1, 'HankPym@verdnatura.es'),
|
||||
(8, 'CharlesXavier', 'ac754a330530832ba1bf7687f577da91', 4, 1, 'CharlesXavier@verdnatura.es'),
|
||||
(9, 'BruceBanner', 'ac754a330530832ba1bf7687f577da91', 1, 1, 'BruceBanner@verdnatura.es'),
|
||||
(10, 'JessicaJones', 'ac754a330530832ba1bf7687f577da91', 3, 1, 'JessicaJones@verdnatura.es');
|
||||
(1, 'BruceWayne', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'BruceWayne@verdnatura.es'),
|
||||
(2, 'PetterParker', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'PetterParker@verdnatura.es'),
|
||||
(3, 'ClarkKent', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'ClarkKent@verdnatura.es'),
|
||||
(4, 'TonyStark', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'TonyStark@verdnatura.es'),
|
||||
(5, 'MaxEisenhardt', 'ac754a330530832ba1bf7687f577da91', 2, 1, 'MaxEisenhardt@verdnatura.es'),
|
||||
(6, 'DavidCharlesHaller', 'ac754a330530832ba1bf7687f577da91', 1, 1, 'DavidCharlesHaller@verdnatura.es'),
|
||||
(7, 'HankPym', 'ac754a330530832ba1bf7687f577da91', 1, 1, 'HankPym@verdnatura.es'),
|
||||
(8, 'CharlesXavier', 'ac754a330530832ba1bf7687f577da91', 18, 1, 'CharlesXavier@verdnatura.es'),
|
||||
(9, 'BruceBanner', 'ac754a330530832ba1bf7687f577da91', 1, 1, 'BruceBanner@verdnatura.es'),
|
||||
(10, 'JessicaJones', 'ac754a330530832ba1bf7687f577da91', 9, 1, 'JessicaJones@verdnatura.es');
|
||||
|
||||
INSERT INTO `salix`.`Country`(`id`, `name`, `inCee`, `code`, `currencyFk`, `realCountryFk`)
|
||||
VALUES
|
||||
|
@ -156,9 +409,9 @@ INSERT INTO `salix`.`ClientCredit`(`id`, `clientFk`, `employeeFk`, `amount`, `cr
|
|||
|
||||
INSERT INTO `salix`.`ClientCreditLimit`(`id`, `maxAmount`, `roleFk`)
|
||||
VALUES
|
||||
(1, 10000, 3),
|
||||
(2, 600, 3),
|
||||
(3, 0, 3);
|
||||
(1, 10000, 5),
|
||||
(2, 600, 5),
|
||||
(3, 0, 5);
|
||||
|
||||
INSERT INTO `salix`.`ClientObservation`(`id`, `clientFk`, `employeeFk`, `text`, `created`)
|
||||
VALUES
|
||||
|
@ -242,47 +495,4 @@ INSERT INTO `salix`.`Vehicle`(`id`, `numberPlate`, `tradeMark`, `model`, `compan
|
|||
|
||||
INSERT INTO `vn`.`config`(`id`, `mdbServer`, `fakeEmail`, `defaultersMaxAmount`)
|
||||
VALUES
|
||||
(1, 'beta-server', 'nightmare@verdnatura.es', '200');
|
||||
|
||||
INSERT INTO `salix`.`ACL`(`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
||||
VALUES
|
||||
(1, 'Account', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(2, 'Account', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(3, 'Address', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(4, 'Address', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(5, 'AgencyService', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(6, 'AgencyService', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(7, 'Client', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(8, 'Client', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(9, 'ClientObservation', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(10, 'ClientObservation', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(11, 'ContactChannel', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(12, 'ContactChannel', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(13, 'Employee', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(14, 'PayMethod', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(15, 'PayMethod', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(16, 'FakeProduction', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(17, 'Warehouse', '* ', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(18, 'State', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(19, 'FakeProduction', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(20, 'TicketState', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(22, 'TicketState', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(23, 'TicketState', '*', 'EXECUTE', 'ALLOW', 'ROLE', 'employee'),
|
||||
(24, 'Delivery', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
(25, 'Zone', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
||||
|
||||
INSERT INTO `account`.`roleRole` (`role`,`inheritsFrom`)
|
||||
VALUES
|
||||
(1, 1),
|
||||
(1, 2),
|
||||
(2, 2),
|
||||
(3, 1),
|
||||
(3, 2),
|
||||
(3, 3),
|
||||
(3, 4),
|
||||
(4, 1),
|
||||
(4, 2),
|
||||
(4, 4);
|
||||
|
||||
|
||||
|
||||
(1, 'beta-server', 'nightmare@verdnatura.es', '200');
|
Loading…
Reference in New Issue