2019-11-22 09:42:05 +00:00
|
|
|
{
|
|
|
|
"name": "WorkerDms",
|
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model":"ClientLog",
|
|
|
|
"relation": "worker",
|
|
|
|
"showField": "dmsFk"
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "workerDocument"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
2019-11-25 08:17:24 +00:00
|
|
|
"id": {
|
2020-02-28 07:19:37 +00:00
|
|
|
"type": "Number"
|
2019-11-25 08:17:24 +00:00
|
|
|
},
|
2019-11-22 09:42:05 +00:00
|
|
|
"dmsFk": {
|
2020-02-28 07:19:37 +00:00
|
|
|
"id": true,
|
2019-11-22 09:42:05 +00:00
|
|
|
"type": "Number",
|
|
|
|
"required": true,
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "document"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"workerFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true,
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "worker"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
},
|
|
|
|
"dms": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Dms",
|
|
|
|
"foreignKey": "dmsFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|