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

58 lines
1.2 KiB
JSON
Raw Normal View History

{
"name": "TravelThermograph",
2020-01-13 10:53:10 +00:00
"base": "Loggable",
"log": {
2020-01-21 08:00:42 +00:00
"model":"TravelLog",
"relation": "travel",
"showField": "ref"
2020-01-13 10:53:10 +00:00
},
"options": {
"mysql": {
"table": "travelThermograph"
}
},
"properties": {
"id": {
"type": "Number",
2020-01-21 08:00:42 +00:00
"description": "Identifier",
"id": true
},
"created": {
"type": "Date"
},
"temperature": {
"type": "String",
"required": true
},
"result": {
"type": "String"
},
"warehouseFk": {
"type": "Number",
"required": true
}
},
"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"
}
}
}