refs #4815 feat:DeviceLog Model #1705

Merged
sergiodt merged 5 commits from 4815-deviLogModel into dev 2023-09-01 10:45:19 +00:00
3 changed files with 49 additions and 0 deletions
Showing only changes of commit 8d0b3efa11 - Show all commits

View File

@ -0,0 +1,6 @@
ALTER TABLE vn.deviceLog ADD serialNumber varchar(45) DEFAULT NULL NULL;
Outdated
Review

Comilles

Comilles
INSERT INTO `salix`.`ACL` ( model, property, accessType, permission, principalType, principalId)
VALUES( 'DeviceLog', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee');
Outdated
Review

Que tingues permis de escritura en un log no es un poc extrany?
I si es aixina, si pots donarlilo sobre la ruta especifica millor (create, updateAttributes, etc...)

Que tingues permis de escritura en un log no es un poc extrany? I si es aixina, si pots donarlilo sobre la ruta especifica millor (create, updateAttributes, etc...)

View File

@ -23,6 +23,9 @@
"Device": { "Device": {
"dataSource": "vn" "dataSource": "vn"
}, },
"DeviceLog": {
"dataSource": "vn"
},
"DeviceProduction": { "DeviceProduction": {
"dataSource": "vn" "dataSource": "vn"
}, },

View File

@ -0,0 +1,40 @@
{
"name": "DeviceLog",
"base": "VnModel",
"options": {
"mysql": {
"table": "deviceLog"
}
},
"properties": {
"id": {
"id": true,
"type": "number"
},
"android_id": {
"type": "string"
},
"userFk": {
"type": "number"
},
"created": {
"type": "date"
},
"nameApp": {
"type": "string"
},
"versionApp": {
"type": "string"
},
"deviceProductionFk": {
"type": "number"
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "VnUser",
"foreignKey": "userFk"
}
}
}