58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
{
|
|
"name": "TravelThermograph",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model":"TravelLog",
|
|
"relation": "travel",
|
|
"showField": "ref"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "travelThermograph"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"description": "Identifier",
|
|
"id": true
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"temperatureFk": {
|
|
"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"
|
|
}
|
|
}
|
|
}
|