upadte structure db and models

This commit is contained in:
Bernat 2019-01-31 09:12:29 +01:00
parent cd89550678
commit 19cfa1ab75
4 changed files with 5 additions and 7 deletions

View File

@ -3,7 +3,7 @@
"base": "VnModel", "base": "VnModel",
"options": { "options": {
"mysql": { "mysql": {
"table": "personDepartment" "table": "workerDepartment"
} }
}, },
"properties": { "properties": {

View File

@ -3,7 +3,7 @@
"base": "VnModel", "base": "VnModel",
"options": { "options": {
"mysql": { "mysql": {
"table": "personMedia" "table": "workerMedia"
} }
}, },
"properties": { "properties": {

View File

@ -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`

View File

@ -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`)))