2019-11-22 09:42:05 +00:00
|
|
|
{
|
|
|
|
"name": "WorkerDms",
|
|
|
|
"base": "Loggable",
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|