51 lines
1.0 KiB
JSON
51 lines
1.0 KiB
JSON
{
|
|
"name": "WorkerDms",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model":"ClientLog",
|
|
"relation": "worker",
|
|
"showField": "dmsFk"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "workerDocument"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true
|
|
},
|
|
"dmsFk": {
|
|
"type": "Number",
|
|
"required": true,
|
|
"mysql": {
|
|
"columnName": "document"
|
|
}
|
|
},
|
|
"workerFk": {
|
|
"type": "Number",
|
|
"required": true,
|
|
"mysql": {
|
|
"columnName": "worker"
|
|
}
|
|
},
|
|
"isReadableByWorker": {
|
|
"type": "Boolean"
|
|
}
|
|
},
|
|
"relations": {
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
},
|
|
"dms": {
|
|
"type": "belongsTo",
|
|
"model": "Dms",
|
|
"foreignKey": "dmsFk"
|
|
}
|
|
}
|
|
}
|
|
|