34 lines
713 B
JSON
34 lines
713 B
JSON
{
|
|
"name": "DeviceProductionUser",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "deviceProductionUser"
|
|
}
|
|
},
|
|
"properties": {
|
|
"deviceProductionFk": {
|
|
"type": "number",
|
|
"id": true
|
|
},
|
|
"userFk": {
|
|
"type": "number"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"deviceProduction": {
|
|
"type": "belongsTo",
|
|
"model": "DeviceProduction",
|
|
"foreignKey": "deviceProductionFk"
|
|
},
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "User",
|
|
"foreignKey": "userFk"
|
|
}
|
|
}
|
|
}
|