salix/modules/worker/back/models/worker-dms.json

48 lines
972 B
JSON
Raw Normal View History

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-03-02 06:50:07 +00:00
"type": "Number",
"id": true
2019-11-25 08:17:24 +00:00
},
2019-11-22 09:42:05 +00:00
"dmsFk": {
"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"
}
}
}