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

45 lines
831 B
JSON
Raw Normal View History

2019-01-21 10:45:53 +00:00
{
2020-03-12 09:59:41 +00:00
"name": "CalendarHoliday",
2019-01-21 10:45:53 +00:00
"base": "VnModel",
"options": {
"mysql": {
2020-03-12 09:59:41 +00:00
"table": "calendarHolidays"
2019-01-21 10:45:53 +00:00
}
},
"properties": {
2020-03-12 09:59:41 +00:00
"calendarHolidaysNameFk": {
2019-01-21 10:45:53 +00:00
"id": true,
"type": "Number"
},
2020-03-12 09:59:41 +00:00
"calendarHolidaysTypeFk": {
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",
2020-03-13 12:10:04 +00:00
"foreignKey": "calendarHolidaysNameFk"
2019-01-21 10:45:53 +00:00
},
"type": {
"type": "belongsTo",
2020-02-04 10:20:05 +00:00
"model": "CalendarHolidaysType",
2020-03-13 12:10:04 +00:00
"foreignKey": "calendarHolidaysTypeFk"
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
}