56 lines
854 B
JSON
56 lines
854 B
JSON
{
|
|
"name": "DeviceProductionLog",
|
|
"base": "Log",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "deviceProductionLog"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number",
|
|
"forceId": false
|
|
},
|
|
"originFk": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"userFk": {
|
|
"type": "number"
|
|
},
|
|
"deviceProduction": {
|
|
"type": "number"
|
|
},
|
|
"action": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"oldInstance": {
|
|
"type": "object"
|
|
},
|
|
"newInstance": {
|
|
"type": "object"
|
|
},
|
|
"changedModel": {
|
|
"type": "string"
|
|
},
|
|
"changedModelId": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "Account",
|
|
"foreignKey": "userFk"
|
|
}
|
|
},
|
|
"scope": {
|
|
"order": ["created DESC", "id DESC"]
|
|
}
|
|
}
|