refs #5858 feat zoneIncludedCheck model

This commit is contained in:
Javier Segarra 2023-12-19 12:55:27 +01:00
parent 2d4fb9d2f8
commit 243319b113
2 changed files with 47 additions and 0 deletions

View File

@ -32,6 +32,9 @@
"ZoneIncluded": { "ZoneIncluded": {
"dataSource": "vn" "dataSource": "vn"
}, },
"ZoneIncludedCheck": {
"dataSource": "vn"
},
"ZoneWarehouse": { "ZoneWarehouse": {
"dataSource": "vn" "dataSource": "vn"
}, },

View File

@ -0,0 +1,44 @@
{
"name": "ZoneIncludedCheck",
"base": "Loggable",
"options": {
"mysql": {
"table": "zoneIncludedCheck"
}
},
"properties": {
"id": {
"id": true,
"type": "number"
},
"zoneFk": {
"type": "int"
},
"geoFk": {
"type": "int"
},
"userFk": {
"type": "int"
},
"action": {
"type": "string"
}
},
"relations": {
"zone": {
"type": "belongsTo",
"model": "Zone",
"foreignKey": "zoneFk"
},
"geo": {
"type": "belongsTo",
"model": "ZoneGeo",
"foreignKey": "geoFk"
},
"user": {
"type": "belongsTo",
"model": "VnUser",
"foreignKey": "userFk"
}
}
}