2019-03-22 07:28:57 +00:00
|
|
|
{
|
2020-08-10 12:29:25 +00:00
|
|
|
"name": "Calendar",
|
2019-03-22 07:28:57 +00:00
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2020-08-10 12:29:25 +00:00
|
|
|
"table": "calendar"
|
2019-03-22 07:28:57 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
2020-07-08 13:05:56 +00:00
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2019-03-22 07:28:57 +00:00
|
|
|
"businessFk": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"dated": {
|
|
|
|
"type": "Date"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"absenceType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "AbsenceType",
|
2020-08-10 12:29:25 +00:00
|
|
|
"foreignKey": "dayOffTypeFk"
|
2019-03-22 07:28:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|