58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
{
|
|
"name": "DeviceProduction",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model": "DeviceProductionLog"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "deviceProduction"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true
|
|
},
|
|
"imei": {
|
|
"type": "string"
|
|
},
|
|
"modelFk": {
|
|
"type": "number"
|
|
},
|
|
"macWifi": {
|
|
"type" : "string"
|
|
},
|
|
"serialNumber": {
|
|
"type" : "string"
|
|
},
|
|
"android_id": {
|
|
"type" : "string"
|
|
},
|
|
"purchased": {
|
|
"type" : "date"
|
|
},
|
|
"stateFk": {
|
|
"type" : "string"
|
|
},
|
|
"isInScaleFusion": {
|
|
"type" : "boolean"
|
|
},
|
|
"description": {
|
|
"type" : "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"model": {
|
|
"type": "belongsTo",
|
|
"model": "DeviceProductionModels",
|
|
"foreignKey": "modelFk"
|
|
},
|
|
"state": {
|
|
"type": "belongsTo",
|
|
"model": "DeviceProductionState",
|
|
"foreignKey": "stateFk"
|
|
}
|
|
}
|
|
}
|