37 lines
721 B
JSON
37 lines
721 B
JSON
{
|
|
"name": "Calendar",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "calendar"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number"
|
|
},
|
|
"businessFk": {
|
|
"type": "number"
|
|
},
|
|
"dated": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"absenceType": {
|
|
"type": "belongsTo",
|
|
"model": "AbsenceType",
|
|
"foreignKey": "dayOffTypeFk"
|
|
},
|
|
"labour": {
|
|
"type": "belongsTo",
|
|
"model": "WorkerLabour",
|
|
"foreignKey": "businessFk"
|
|
}
|
|
}
|
|
}
|