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

36 lines
645 B
JSON
Raw Permalink Normal View History

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,
2022-05-12 07:47:47 +00:00
"type": "number"
2019-01-21 10:45:53 +00:00
},
"name": {
2022-05-12 07:47:47 +00:00
"type": "string"
2019-01-21 10:45:53 +00:00
}
},
"relations": {
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
2019-03-22 07:28:57 +00:00
},
"holidays": {
"type": "hasMany",
2020-03-12 09:59:41 +00:00
"model": "CalendarHoliday",
2019-03-22 07:28:57 +00:00
"foreignKey": "workCenterFk"
}
},
"acls": [{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}]
2019-01-21 10:45:53 +00:00
}