Merge pull request 'closes #4605 Create-Model-PackagingMistake' (!1247) from 4605-Create-Model-PackagingMistake into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #1247
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Pau 2023-01-17 09:05:19 +00:00
commit ba1e46f8d7
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": {
"type": "date"
}
},
"relations": {
"expedition": {
"type": "belongsTo",
"model": "Expedition",
"foreignKey": "expeditionFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
},
"type": {
"type": "belongsTo",
"model": "MistakeType",
"foreignKey": "typeFk"
}
}
}