48 lines
948 B
JSON
48 lines
948 B
JSON
{
|
|
"name": "WorkerTimeControl",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "workerTimeControl"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number"
|
|
},
|
|
"timed": {
|
|
"type": "date"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"order": {
|
|
"type": "number"
|
|
},
|
|
"direction": {
|
|
"type": "string"
|
|
},
|
|
"isSendMail": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "VnUser",
|
|
"foreignKey": "userFk"
|
|
},
|
|
"worker": {
|
|
"type": "hasOne",
|
|
"model": "Worker",
|
|
"foreignKey": "id"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
}
|
|
}
|
|
}
|