45 lines
831 B
JSON
45 lines
831 B
JSON
{
|
|
"name": "CalendarHoliday",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "calendarHolidays"
|
|
}
|
|
},
|
|
"properties": {
|
|
"calendarHolidaysNameFk": {
|
|
"id": true,
|
|
"type": "Number"
|
|
},
|
|
"calendarHolidaysTypeFk": {
|
|
"id": true,
|
|
"type": "Number"
|
|
},
|
|
"dated": {
|
|
"type": "Date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"detail": {
|
|
"type": "belongsTo",
|
|
"model": "CalendarHolidaysName",
|
|
"foreignKey": "calendarHolidaysNameFk"
|
|
},
|
|
"type": {
|
|
"type": "belongsTo",
|
|
"model": "CalendarHolidaysType",
|
|
"foreignKey": "calendarHolidaysTypeFk"
|
|
},
|
|
"workCenter": {
|
|
"type": "belongsTo",
|
|
"model": "WorkCenter",
|
|
"foreignKey": "workCenterFk"
|
|
}
|
|
},
|
|
"acls": [{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}]
|
|
} |