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

43 lines
826 B
JSON
Raw Permalink Normal View History

2019-11-22 09:42:05 +00:00
{
"name": "WorkerDms",
"base": "VnModel",
"mixins": {
"Loggable": true
},
2019-11-22 09:42:05 +00:00
"options": {
"mysql": {
"table": "workerDms"
2019-11-22 09:42:05 +00:00
}
},
"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",
"required": true
2019-11-22 09:42:05 +00:00
},
"workerFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
"required": true
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"
}
}
}