entryLog section

This commit is contained in:
Bernat Exposito Domenech 2020-03-02 11:57:09 +01:00
parent 72b7300bf5
commit 686382a0e6
5 changed files with 57 additions and 5 deletions

View File

@ -0,0 +1,2 @@
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
VALUES ('EntryLog', '*', 'READ', 'ALLOW', 'ROLE', 'buyer');

View File

@ -1,5 +1,8 @@
{
"Entry": {
"dataSource": "vn"
},
"EntryLog": {
"dataSource": "vn"
}
}

View File

@ -0,0 +1,43 @@
{
"name": "EntryLog",
"base": "VnModel",
"options": {
"mysql": {
"table": "entryLog"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"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"
}
},
"scope": {
"order": ["creationDate DESC", "id DESC"]
}
}

View File

@ -9,7 +9,7 @@
{"state": "entry.index", "icon": "icon-entry"}
],
"card": [
{"state": "travel.card.log", "icon": "history"},
{"state": "entry.card.log", "icon": "history"}
]
},
"routes": [

View File

@ -1,13 +1,17 @@
{
"Travel": {
"dataSource": "vn"
},"TravelLog": {
},
"TravelLog": {
"dataSource": "vn"
},"Currency": {
},
"Currency": {
"dataSource": "vn"
},"Thermograph": {
},
"Thermograph": {
"dataSource": "vn"
},"TravelThermograph": {
},
"TravelThermograph": {
"dataSource": "vn"
}
}