salix/modules/worker/back/models/device-production-user.json

53 lines
1.1 KiB
JSON
Raw Permalink Normal View History

{
"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": {
2024-05-16 12:04:21 +00:00
"type": "belongsTo",
"model": "DeviceProduction",
"foreignKey": "deviceProductionFk"
},
"user": {
"type": "belongsTo",
"model": "User",
"foreignKey": "userFk"
}
2024-05-13 06:30:20 +00:00
},
"scope": {
"include":{
"relation": "deviceProduction"
}
}
}