2023-02-28 06:49:34 +00:00
|
|
|
{
|
|
|
|
"name": "DeviceProductionUser",
|
2023-12-05 06:48:56 +00:00
|
|
|
"base": "VnModel",
|
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
|
|
|
},
|
2023-04-12 08:02:06 +00:00
|
|
|
"log": {
|
|
|
|
"model": "DeviceProductionLog",
|
|
|
|
"relation": "deviceProduction"
|
|
|
|
},
|
2023-02-28 06:49:34 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "deviceProductionUser"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
2024-05-03 12:22:48 +00:00
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true
|
|
|
|
},
|
2023-02-28 06:49:34 +00:00
|
|
|
"deviceProductionFk": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true
|
|
|
|
},
|
|
|
|
"userFk": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2024-05-03 12:22:48 +00:00
|
|
|
"simSerialNumber": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-28 06:49:34 +00:00
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"deviceProduction": {
|
2024-05-16 08:23:33 +00:00
|
|
|
"type": "hasOne",
|
2023-02-28 06:49:34 +00:00
|
|
|
"model": "DeviceProduction",
|
2024-05-16 08:23:33 +00:00
|
|
|
"foreignKey": "id"
|
2023-02-28 06:49:34 +00:00
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "User",
|
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
2024-05-13 06:30:20 +00:00
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"include":{
|
|
|
|
"relation": "deviceProduction"
|
|
|
|
}
|
2023-02-28 06:49:34 +00:00
|
|
|
}
|
|
|
|
}
|