36 lines
637 B
JSON
36 lines
637 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": "Holiday",
|
|
"foreignKey": "workCenterFk"
|
|
}
|
|
},
|
|
"acls": [{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}]
|
|
} |