48 lines
1009 B
JSON
48 lines
1009 B
JSON
{
|
|
"name": "DeviceProductionUser",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"log": {
|
|
"model": "DeviceProductionLog",
|
|
"relation": "deviceProduction"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "deviceProductionUser"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true
|
|
},
|
|
"deviceProductionFk": {
|
|
"type": "number",
|
|
"id": true
|
|
},
|
|
"userFk": {
|
|
"type": "number"
|
|
},
|
|
"simSerialNumber": {
|
|
"type": "string"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"deviceProduction": {
|
|
"type": "belongsTo",
|
|
"model": "DeviceProduction",
|
|
"foreignKey": "deviceProductionFk"
|
|
},
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "User",
|
|
"foreignKey": "userFk"
|
|
}
|
|
}
|
|
}
|