2020-03-02 10:57:09 +00:00
|
|
|
{
|
|
|
|
"name": "EntryLog",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "entryLog"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2020-03-04 07:58:57 +00:00
|
|
|
"type": "Number"
|
2020-03-02 10:57:09 +00:00
|
|
|
},
|
|
|
|
"originFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"userFk": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"creationDate": {
|
|
|
|
"type": "Date"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "String"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "userFk"
|
2020-03-04 07:58:57 +00:00
|
|
|
}
|
2020-03-02 10:57:09 +00:00
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"order": ["creationDate DESC", "id DESC"]
|
|
|
|
}
|
2020-03-04 07:58:57 +00:00
|
|
|
}
|