update models
gitea/salix/2040_view_holiday This commit looks good Details

This commit is contained in:
Bernat Exposito Domenech 2020-02-04 11:20:05 +01:00
parent 711e973c23
commit 89dc8e27e0
4 changed files with 9 additions and 9 deletions

View File

@ -8,10 +8,10 @@
"Holiday": {
"dataSource": "vn"
},
"HolidayDetail": {
"CalendarHolidaysName": {
"dataSource": "vn"
},
"HolidayType": {
"CalendarHolidaysType": {
"dataSource": "vn"
},
"WorkCenter": {

View File

@ -1,9 +1,9 @@
{
"name": "HolidayDetail",
"name": "CalendarHolidaysName",
"base": "VnModel",
"options": {
"mysql": {
"table": "holidayDetail"
"table": "calendarHolidaysName"
}
},
"properties": {
@ -11,7 +11,7 @@
"id": true,
"type": "Number"
},
"description": {
"name": {
"type": "String"
}
},

View File

@ -1,9 +1,9 @@
{
"name": "HolidayType",
"name": "CalendarHolidaysType",
"base": "VnModel",
"options": {
"mysql": {
"table": "holidayType"
"table": "calendarHolidaysType"
}
},
"properties": {

View File

@ -22,12 +22,12 @@
"relations": {
"detail": {
"type": "belongsTo",
"model": "HolidayDetail",
"model": "CalendarHolidaysName",
"foreignKey": "holidayDetailFk"
},
"type": {
"type": "belongsTo",
"model": "HolidayType",
"model": "CalendarHolidaysType",
"foreignKey": "holidayTypeFk"
},
"workCenter": {