update model agency
This commit is contained in:
parent
6b64b2b419
commit
2cd2c6bdae
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE `vn2008`.`agency`
|
||||
ADD COLUMN `code` VARCHAR(45) NULL DEFAULT NULL AFTER `zone_label`;
|
|
@ -0,0 +1,18 @@
|
|||
USE `vn`;
|
||||
CREATE
|
||||
OR REPLACE ALGORITHM = UNDEFINED
|
||||
DEFINER = `root`@`%`
|
||||
SQL SECURITY DEFINER
|
||||
VIEW `agency` AS
|
||||
SELECT
|
||||
`a`.`agency_id` AS `id`,
|
||||
`a`.`name` AS `name`,
|
||||
`a`.`warehouse_id` AS `warehouseFk`,
|
||||
`a`.`por_volumen` AS `isVolumetric`,
|
||||
`a`.`Id_Banco` AS `bankFk`,
|
||||
`a`.`warehouse_alias_id` AS `warehouseAliasFk`,
|
||||
`a`.`propios` AS `own`,
|
||||
`a`.`zone_label` AS `labelZone`,
|
||||
`a`.`code` AS `code`
|
||||
FROM
|
||||
`vn2008`.`agency` `a`;
|
|
@ -15,6 +15,10 @@
|
|||
"name": {
|
||||
"type": "String",
|
||||
"required": false
|
||||
},
|
||||
"code": {
|
||||
"type": "String",
|
||||
"required": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue