salix/modules/travel/back/models/travel-thermograph.json

64 lines
1.4 KiB
JSON
Raw Normal View History

{
"name": "TravelThermograph",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
"table": "travelThermograph"
}
},
"properties": {
"id": {
"type": "number",
2020-01-21 08:00:42 +00:00
"description": "Identifier",
"id": true
},
"created": {
"type": "date"
},
"temperatureFk": {
"type": "string",
"required": true
},
"result": {
"type": "string"
},
"warehouseFk": {
"type": "number",
"required": true
},
"maxTemperature": {
"type": "number",
"description": "Maximum temperature"
},
"minTemperature": {
"type": "number",
"description": "Minimum temperature"
}
},
"relations": {
"travel": {
"type": "belongsTo",
"model": "Travel",
"foreignKey": "travelFk"
},
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
},
"dms": {
"type": "belongsTo",
"model": "Dms",
"foreignKey": "dmsFk"
},
"thermograph": {
"type": "belongsTo",
"model": "Thermograph",
"foreignKey": "thermographFk"
}
}
}