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
1 changed files with 18 additions and 10 deletions
Showing only changes of commit a8e4c9e1de - Show all commits

View File

@ -7,19 +7,27 @@
}
},
"properties": {
"expeditionFk": {
"id": true,
"type": "number"
},
"workerFk": {
"type": "number"
},
"typeFk": {
"type": "number"
},
"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"
}
}
}