61 lines
1.2 KiB
JSON
61 lines
1.2 KiB
JSON
{
|
|
"name": "InvoiceInLog",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "invoiceInLog"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number",
|
|
"forceId": false
|
|
},
|
|
"originFk": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"userFk": {
|
|
"type": "number"
|
|
},
|
|
"action": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"changedModel": {
|
|
"type": "string"
|
|
},
|
|
"oldInstance": {
|
|
"type": "object"
|
|
},
|
|
"newInstance": {
|
|
"type": "object"
|
|
},
|
|
"creationDate": {
|
|
"type": "date"
|
|
},
|
|
"changedModelId": {
|
|
"type": "string"
|
|
},
|
|
"changedModelValue": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "Account",
|
|
"foreignKey": "userFk"
|
|
}
|
|
},
|
|
"scope": {
|
|
"order": [
|
|
"creationDate DESC",
|
|
"id DESC"
|
|
]
|
|
}
|
|
} |