closes #4605 Create-Model-PackagingMistake #1247

Merged
pau merged 8 commits from 4605-Create-Model-PackagingMistake into dev 2023-01-17 09:05:28 +00:00
2 changed files with 36 additions and 0 deletions

View File

@ -26,6 +26,9 @@
"PackingSiteConfig": {
"dataSource": "vn"
},
"ExpeditionMistake": {
"dataSource": "vn"
},
"PrintServerQueue": {
"dataSource": "vn"
},

View File

@ -0,0 +1,33 @@
{
"name": "ExpeditionMistake",
"base": "VnModel",
"options": {
"mysql": {
"table": "expeditionMistake"
}
},
"properties": {
"created": {
pau marked this conversation as resolved
Review

Reemplazar las fk por las relaciones al modelo correspondiente si existe.

Reemplazar las fk por las relaciones al modelo correspondiente si existe.
"type": "date"
}
},
"relations": {
"expedition": {
"type": "belongsTo",
"model": "Expedition",
"foreignKey": "expeditionFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
},
"type": {
"type": "belongsTo",
"model": "MistakeType",
"foreignKey": "typeFk"
}
}
}