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
|
|
|
},
|
2024-01-31 08:04:30 +00:00
|
|
|
"direction": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
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
|
|
|
},
|
2024-01-31 08:04:30 +00:00
|
|
|
"device": {
|
2019-11-05 07:59:48 +00:00
|
|
|
"type": "string"
|
2022-10-31 06:34:34 +00:00
|
|
|
},
|
|
|
|
"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
|
|
|
},
|
2024-06-13 11:43:28 +00:00
|
|
|
"worker": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "id"
|
2019-05-17 11:27:51 +00:00
|
|
|
},
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
|
|
|
}
|
2024-06-13 11:43:28 +00:00
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"property": "updateMailState",
|
|
|
|
"accessType": "WRITE",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$owner"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|