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

51 lines
1.0 KiB
JSON
Raw Permalink 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": {
2022-05-12 07:47:47 +00:00
"type": "number",
2020-03-02 06:50:07 +00:00
"id": true
2019-11-25 08:17:24 +00:00
},
2019-11-22 09:42:05 +00:00
"dmsFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
2019-11-22 09:42:05 +00:00
"required": true,
"mysql": {
"columnName": "document"
}
},
"workerFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
2019-11-22 09:42:05 +00:00
"required": true,
"mysql": {
"columnName": "worker"
}
2020-03-24 16:34:23 +00:00
},
"isReadableByWorker": {
2022-05-12 07:47:47 +00:00
"type": "boolean"
2019-11-22 09:42:05 +00:00
}
},
"relations": {
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
},
"dms": {
"type": "belongsTo",
"model": "Dms",
"foreignKey": "dmsFk"
}
}
}