refs #4815 feat:DeviceLog Model
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Sergio De la torre 2023-08-14 09:39:40 +02:00
parent 674a28d967
commit 8d0b3efa11
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,6 @@
ALTER TABLE vn.deviceLog ADD serialNumber varchar(45) DEFAULT NULL NULL;
INSERT INTO `salix`.`ACL` ( model, property, accessType, permission, principalType, principalId)
VALUES( 'DeviceLog', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee');

View File

@ -23,6 +23,9 @@
"Device": {
"dataSource": "vn"
},
"DeviceLog": {
"dataSource": "vn"
},
"DeviceProduction": {
"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"
}
}
}