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

45 lines
782 B
JSON

{
"name": "Holiday",
"base": "VnModel",
"options": {
"mysql": {
"table": "holiday"
}
},
"properties": {
"holidayDetailFk": {
"id": true,
"type": "Number"
},
"holidayTypeFk": {
"id": true,
"type": "Number"
},
"dated": {
"type": "Date"
}
},
"relations": {
"detail": {
"type": "belongsTo",
"model": "CalendarHolidaysName",
"foreignKey": "holidayDetailFk"
},
"type": {
"type": "belongsTo",
"model": "CalendarHolidaysType",
"foreignKey": "holidayTypeFk"
},
"workCenter": {
"type": "belongsTo",
"model": "WorkCenter",
"foreignKey": "workCenterFk"
}
},
"acls": [{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}]
}