salix/modules/worker/back/models/worker-time-control.json

48 lines
952 B
JSON
Raw Normal View History

2019-05-17 11:27:51 +00:00
{
"name": "WorkerTimeControl",
"base": "VnModel",
"options": {
"mysql": {
"table": "workerTimeControl"
}
},
"properties": {
"id": {
"id": true,
2021-06-17 13:09:04 +00:00
"type": "number"
2019-05-17 11:27:51 +00:00
},
"timed": {
2021-06-17 13:09:04 +00:00
"type": "date"
2019-05-17 11:27:51 +00:00
},
"manual": {
2021-06-17 13:09:04 +00:00
"type": "boolean"
2019-05-17 11:27:51 +00:00
},
"order": {
2021-06-17 13:09:04 +00:00
"type": "number"
2019-11-05 07:59:48 +00:00
},
"direction": {
"type": "string"
},
"isSendMail": {
"type": "boolean"
2019-05-17 11:27:51 +00:00
}
},
"relations": {
"user": {
"type": "belongsTo",
2023-01-24 08:05:50 +00:00
"model": "VnUser",
2019-05-17 11:27:51 +00:00
"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"
}
}
}