59 lines
844 B
JSON
59 lines
844 B
JSON
|
{
|
||
|
"name": "TravelLog",
|
||
|
"base": "VnModel",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "travelLog"
|
||
|
}
|
||
|
},
|
||
|
"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": "Number"
|
||
|
},
|
||
|
"changedModelValue": {
|
||
|
"type": "String"
|
||
|
},
|
||
|
"description": {
|
||
|
"type": "String"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"user": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Account",
|
||
|
"foreignKey": "userFk"
|
||
|
}
|
||
|
},
|
||
|
"scope": {
|
||
|
"order": ["creationDate DESC", "id DESC"]
|
||
|
}
|
||
|
}
|