upadte structure db and models
This commit is contained in:
parent
cd89550678
commit
19cfa1ab75
|
@ -3,7 +3,7 @@
|
||||||
"base": "VnModel",
|
"base": "VnModel",
|
||||||
"options": {
|
"options": {
|
||||||
"mysql": {
|
"mysql": {
|
||||||
"table": "personDepartment"
|
"table": "workerDepartment"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"base": "VnModel",
|
"base": "VnModel",
|
||||||
"options": {
|
"options": {
|
||||||
"mysql": {
|
"mysql": {
|
||||||
"table": "personMedia"
|
"table": "workerMedia"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -3,7 +3,7 @@ CREATE
|
||||||
OR REPLACE ALGORITHM = UNDEFINED
|
OR REPLACE ALGORITHM = UNDEFINED
|
||||||
DEFINER = `root`@`%`
|
DEFINER = `root`@`%`
|
||||||
SQL SECURITY DEFINER
|
SQL SECURITY DEFINER
|
||||||
VIEW `personMedia` AS
|
VIEW `workerMedia` AS
|
||||||
SELECT
|
SELECT
|
||||||
`p`.`id_trabajador` AS `workerFk`,
|
`p`.`id_trabajador` AS `workerFk`,
|
||||||
`m`.`value` AS `mediaValue`
|
`m`.`value` AS `mediaValue`
|
||||||
|
|
|
@ -3,12 +3,10 @@ CREATE
|
||||||
OR REPLACE ALGORITHM = UNDEFINED
|
OR REPLACE ALGORITHM = UNDEFINED
|
||||||
DEFINER = `root`@`%`
|
DEFINER = `root`@`%`
|
||||||
SQL SECURITY DEFINER
|
SQL SECURITY DEFINER
|
||||||
VIEW `vn`.`personDepartment` AS
|
VIEW `vn`.`workerDepartment` AS
|
||||||
SELECT
|
SELECT
|
||||||
`p`.`id_trabajador` AS `workerFk`,
|
`p`.`id_trabajador` AS `workerFk`,
|
||||||
`p`.`name` AS `name`,
|
`d`.`name` AS `departmentFk`
|
||||||
`p`.`firstname` AS `firstname`,
|
|
||||||
`d`.`name` AS `department`
|
|
||||||
FROM
|
FROM
|
||||||
(((`postgresql`.`person` `p`
|
(((`postgresql`.`person` `p`
|
||||||
JOIN `postgresql`.`profile` `pr` ON ((`pr`.`person_id` = `p`.`person_id`)))
|
JOIN `postgresql`.`profile` `pr` ON ((`pr`.`person_id` = `p`.`person_id`)))
|
Loading…
Reference in New Issue