2019-05-17 11:27:51 +00:00
|
|
|
{
|
|
|
|
"name": "WorkerTimeControl",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "workerTimeControl"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"timed": {
|
|
|
|
"type": "Date"
|
|
|
|
},
|
|
|
|
"manual": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
|
|
|
"order": {
|
|
|
|
"type": "Number"
|
2019-11-05 07:59:48 +00:00
|
|
|
},
|
|
|
|
"direction": {
|
|
|
|
"type": "string"
|
2019-05-17 11:27:51 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "userFk"
|
2019-11-05 07:59:48 +00:00
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "userFk"
|
2019-05-17 11:27:51 +00:00
|
|
|
},
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|