36 lines
645 B
JSON
36 lines
645 B
JSON
{
|
|
"name": "WorkCenter",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "workCenter"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "Number"
|
|
},
|
|
"name": {
|
|
"type": "String"
|
|
}
|
|
},
|
|
"relations": {
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
},
|
|
"holidays": {
|
|
"type": "hasMany",
|
|
"model": "CalendarHoliday",
|
|
"foreignKey": "workCenterFk"
|
|
}
|
|
},
|
|
"acls": [{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}]
|
|
} |