salix/modules/worker/back/models/work-center-holiday.json

34 lines
591 B
JSON

{
"name": "WorkCenterHoliday",
"base": "VnModel",
"options": {
"mysql": {
"table": "workCenterHoliday"
}
},
"properties": {
"workCenterFk": {
"id": true,
"type": "Number"
},
"days": {
"type": "Number"
},
"year": {
"type": "Number"
}
},
"relations": {
"workCenter": {
"type": "belongsTo",
"model": "WorkCenter",
"foreignKey": "workCenterFk"
}
},
"acls": [{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}]
}