2019-01-21 10:45:53 +00:00
|
|
|
{
|
|
|
|
"name": "WorkCenter",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2019-03-22 07:28:57 +00:00
|
|
|
"table": "workCenter"
|
2019-01-21 10:45:53 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "String"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
2019-03-22 07:28:57 +00:00
|
|
|
},
|
|
|
|
"holidays": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "Holiday",
|
|
|
|
"foreignKey": "workCenterFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}]
|
2019-01-21 10:45:53 +00:00
|
|
|
}
|