salix/modules/agency/back/models/labour-holiday.json

39 lines
662 B
JSON

{
"name": "LabourHoliday",
"base": "VnModel",
"options": {
"mysql": {
"table": "labourHoliday"
}
},
"properties": {
"labourHolidayLegendFk": {
"id": true,
"type": "Number"
},
"labourHolidayTypeFk": {
"id": true,
"type": "Number"
},
"dated": {
"type": "Date"
}
},
"relations": {
"legend": {
"type": "belongsTo",
"model": "LabourHolidayLegend",
"foreignKey": "labourHolidayLegendFk"
},
"type": {
"type": "belongsTo",
"model": "LabourHolidayType",
"foreignKey": "labourHolidayTypeFk"
},
"workCenter": {
"type": "belongsTo",
"model": "WorkCenter",
"foreignKey": "workCenterFk"
}
}
}