59 lines
1.2 KiB
JSON
59 lines
1.2 KiB
JSON
{
|
|
"name": "WorkerTimeControl",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "workerTimeControl"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number"
|
|
},
|
|
"timed": {
|
|
"type": "date"
|
|
},
|
|
"direction": {
|
|
"type": "string"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"order": {
|
|
"type": "number"
|
|
},
|
|
"device": {
|
|
"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"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"property": "updateMailState",
|
|
"accessType": "WRITE",
|
|
"permission": "ALLOW",
|
|
"principalType": "ROLE",
|
|
"principalId": "$owner"
|
|
}
|
|
]
|
|
} |