Merge branch 'dev' of https://git.verdnatura.es/salix into dev
This commit is contained in:
commit
8cbe02a1b6
|
@ -568,6 +568,14 @@ INSERT INTO `vn`.`itemTag`(`id`,`itemFk`,`tagFk`,`value`,`priority`)
|
|||
(19, 4, 4, 'Manhattan', 2),
|
||||
(20, 4, 5, 'Tony Stark', 1);
|
||||
|
||||
INSERT INTO `vn`.`itemTypeTag`(`id`, `itemTypeFk`, `tagFk`, `priority`)
|
||||
VALUES
|
||||
( 1, 1, 1, 0),
|
||||
( 2, 2, 2, 0),
|
||||
( 3, 3, 3, 1),
|
||||
( 4, 1, 4, 1),
|
||||
( 5, 1, 5, 1);
|
||||
|
||||
INSERT INTO `vn`.`itemLog` (`id`, `originFk`, `userFk`, `action`, `description`)
|
||||
VALUES
|
||||
('1', '1', '1', 'insert', 'We made a change!');
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"name": "ItemTypeTag",
|
||||
"base": "VnModel",
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "itemTypeTag",
|
||||
"database": "vn"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "Number",
|
||||
"id": true,
|
||||
"description": "Identifier"
|
||||
},
|
||||
"priority": {
|
||||
"type": "Number"
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
"type": {
|
||||
"type": "belongsTo",
|
||||
"model": "ItemType",
|
||||
"foreignKey": "itemTypeFk"
|
||||
},
|
||||
"tag": {
|
||||
"type": "belongsTo",
|
||||
"model": "Tag",
|
||||
"foreignKey": "tagFk"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -34,5 +34,8 @@
|
|||
},
|
||||
"Genus": {
|
||||
"dataSource": "edi"
|
||||
},
|
||||
"ItemTypeTag": {
|
||||
"dataSource": "vn"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue