This commit is contained in:
parent
8336db59d4
commit
86e0d66f55
|
@ -0,0 +1,12 @@
|
|||
ALTER TABLE `vn2008`.`cl_est`
|
||||
ADD COLUMN `roleFk` INT(10) UNSIGNED NOT NULL DEFAULT '1' AFTER `estado`;
|
||||
|
||||
ALTER TABLE `vn2008`.`cl_est`
|
||||
ADD INDEX `roleFgn_idx` (`roleFk` ASC);
|
||||
|
||||
ALTER TABLE `vn2008`.`cl_est`
|
||||
ADD CONSTRAINT `roleFgn`
|
||||
FOREIGN KEY (`roleFk`)
|
||||
REFERENCES `account`.`role` (`id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE CASCADE;
|
|
@ -0,0 +1,11 @@
|
|||
CREATE
|
||||
OR REPLACE ALGORITHM = UNDEFINED
|
||||
DEFINER = `root`@`%`
|
||||
SQL SECURITY DEFINER
|
||||
VIEW `vn`.`claimState` AS
|
||||
SELECT
|
||||
`c`.`id` AS `id`,
|
||||
`c`.`estado` AS `description`,
|
||||
`c`.`roleFk` AS `roleFk`
|
||||
FROM
|
||||
`vn2008`.`cl_est` `c`;
|
File diff suppressed because one or more lines are too long
|
@ -1189,6 +1189,15 @@ INSERT INTO `vn`.`clientSample`(`id`, `clientFk`, `typeFk`, `created`, `workerFk
|
|||
( 4, 102, 2, CURDATE(), 18, 18, 567),
|
||||
( 5, 102, 3, CURDATE(), 19, 19, 567);
|
||||
|
||||
INSERT INTO `vn`.`claimState`(`id`, `description`, `roleFk`)
|
||||
VALUES
|
||||
( 1, 'Pendiente', 1),
|
||||
( 2, 'Gestionado', 1),
|
||||
( 3, 'Resuelto', 21),
|
||||
( 4, 'Anulado', 1),
|
||||
( 5, 'Cuestionado', 21),
|
||||
( 6, 'Mana', 1);
|
||||
|
||||
INSERT INTO `vn`.`claim`(`id`, `ticketCreated`, `claimStateFk`, `observation`, `clientFk`, `workerFk`, `responsibility`, `isChargedToMana`, `created` )
|
||||
VALUES
|
||||
( 1, CURDATE(), 1, 'observation one', 101, 18, 1, 0, CURDATE()),
|
||||
|
|
|
@ -50,7 +50,6 @@ TABLES=(
|
|||
accion_dits
|
||||
bionic_updating_options
|
||||
businessReasonEnd
|
||||
cl_est
|
||||
cl_con
|
||||
cl_res
|
||||
cl_dev
|
||||
|
|
|
@ -17,6 +17,13 @@
|
|||
"required": true
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
"role": {
|
||||
"type": "belongsTo",
|
||||
"model": "Role",
|
||||
"foreignKey": "roleFk"
|
||||
}
|
||||
},
|
||||
"acls": [
|
||||
{
|
||||
"accessType": "READ",
|
||||
|
|
Loading…
Reference in New Issue