salix/modules/worker/back/models/holiday.json

45 lines
782 B
JSON
Raw Normal View History

2019-01-21 10:45:53 +00:00
{
2019-03-22 07:28:57 +00:00
"name": "Holiday",
2019-01-21 10:45:53 +00:00
"base": "VnModel",
"options": {
"mysql": {
2019-03-22 07:28:57 +00:00
"table": "holiday"
2019-01-21 10:45:53 +00:00
}
},
"properties": {
2019-03-22 07:28:57 +00:00
"holidayDetailFk": {
2019-01-21 10:45:53 +00:00
"id": true,
"type": "Number"
},
2019-03-22 07:28:57 +00:00
"holidayTypeFk": {
2019-01-21 10:45:53 +00:00
"id": true,
"type": "Number"
},
"dated": {
"type": "Date"
}
},
"relations": {
2019-03-22 07:28:57 +00:00
"detail": {
2019-01-21 10:45:53 +00:00
"type": "belongsTo",
2020-02-04 10:20:05 +00:00
"model": "CalendarHolidaysName",
2019-03-22 07:28:57 +00:00
"foreignKey": "holidayDetailFk"
2019-01-21 10:45:53 +00:00
},
"type": {
"type": "belongsTo",
2020-02-04 10:20:05 +00:00
"model": "CalendarHolidaysType",
2019-03-22 07:28:57 +00:00
"foreignKey": "holidayTypeFk"
2019-01-21 10:45:53 +00:00
},
"workCenter": {
"type": "belongsTo",
"model": "WorkCenter",
"foreignKey": "workCenterFk"
}
2019-03-22 07:28:57 +00:00
},
"acls": [{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}]
2019-01-21 10:45:53 +00:00
}