diff --git a/front/core/components/log/index.html b/front/core/components/log/index.html
index 75cbb2bbf..f717bd8a0 100644
--- a/front/core/components/log/index.html
+++ b/front/core/components/log/index.html
@@ -5,7 +5,7 @@
- Date
+ Date
Changed by
Model
Action
diff --git a/modules/client/back/models/client-log.json b/modules/client/back/models/client-log.json
index 6dacdf1da..50c892e85 100644
--- a/modules/client/back/models/client-log.json
+++ b/modules/client/back/models/client-log.json
@@ -1,55 +1,58 @@
{
- "name": "ClientLog",
- "base": "VnModel",
- "options": {
- "mysql": {
- "table": "clientLog"
- }
- },
- "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"
- }
- }
+ "name": "ClientLog",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "clientLog"
+ }
+ },
+ "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"]
+ }
}
diff --git a/modules/item/back/models/item-log.json b/modules/item/back/models/item-log.json
index b8e6f79a6..c52931193 100644
--- a/modules/item/back/models/item-log.json
+++ b/modules/item/back/models/item-log.json
@@ -1,55 +1,58 @@
{
- "name": "ItemLog",
- "base": "VnModel",
- "options": {
- "mysql": {
- "table": "itemLog"
- }
- },
- "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"
- }
- }
+ "name": "ItemLog",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "itemLog"
+ }
+ },
+ "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"]
+ }
}
diff --git a/modules/ticket/back/models/ticket-log.json b/modules/ticket/back/models/ticket-log.json
index be4021637..80c501e2e 100644
--- a/modules/ticket/back/models/ticket-log.json
+++ b/modules/ticket/back/models/ticket-log.json
@@ -27,22 +27,22 @@
"type": "String"
},
"oldInstance": {
- "type": "Object"
+ "type": "Object"
},
"newInstance": {
- "type": "Object"
+ "type": "Object"
},
"creationDate": {
- "type": "Date"
+ "type": "Date"
},
"changedModelId": {
- "type": "Number"
+ "type": "Number"
},
"changedModelValue": {
- "type": "String"
+ "type": "String"
},
"description": {
- "type": "String"
+ "type": "String"
}
},
"relations": {
@@ -51,5 +51,8 @@
"model": "Account",
"foreignKey": "userFk"
}
- }
+ },
+ "scope": {
+ "order": ["creationDate DESC", "id DESC"]
+ }
}