refs #5318 eliminido triggers y añadido loggable en salix
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
736d0375f6
commit
58750aa065
|
@ -0,0 +1,5 @@
|
|||
DROP TRIGGER `vn`.`deviceProduction_afterInsert`;
|
||||
DROP TRIGGER `vn`.`deviceProduction_afterUpdate`;
|
||||
|
||||
DROP TRIGGER `vn`.`deviceProductionUser_afterDelete`;
|
||||
|
|
@ -23,6 +23,9 @@
|
|||
"DeviceProduction": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"DeviceProductionLog": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"DeviceProductionModels": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"name": "DeviceProductionLog",
|
||||
"base": "VnModel",
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "deviceProductionLog"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"id": {
|
||||
"id": true,
|
||||
"type": "number",
|
||||
"forceId": false
|
||||
},
|
||||
"originFk": {
|
||||
"type": "number",
|
||||
"required": true
|
||||
},
|
||||
"userFk": {
|
||||
"type": "number"
|
||||
},
|
||||
"deviceProduction": {
|
||||
"type": "number"
|
||||
},
|
||||
"action": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"created": {
|
||||
"type": "date"
|
||||
},
|
||||
"oldInstance": {
|
||||
"type": "object"
|
||||
},
|
||||
"newInstance": {
|
||||
"type": "object"
|
||||
},
|
||||
"changedModel": {
|
||||
"type": "string"
|
||||
},
|
||||
"changedModelId": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"model": "Account",
|
||||
"foreignKey": "userFk"
|
||||
}
|
||||
},
|
||||
"scope": {
|
||||
"order": ["created DESC", "id DESC"]
|
||||
}
|
||||
}
|
|
@ -1,6 +1,10 @@
|
|||
{
|
||||
"name": "DeviceProductionUser",
|
||||
"base": "VnModel",
|
||||
"base": "Loggable",
|
||||
"log": {
|
||||
"model": "DeviceProductionLog",
|
||||
"relation": "deviceProduction"
|
||||
},
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "deviceProductionUser"
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"name": "DeviceProduction",
|
||||
"base": "VnModel",
|
||||
"base": "Loggable",
|
||||
"log": {
|
||||
"model": "DeviceProductionLog"
|
||||
},
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "deviceProduction"
|
||||
|
|
|
@ -31,11 +31,12 @@
|
|||
value-field="id"
|
||||
show-field="serialNumber">
|
||||
<tpl-item>
|
||||
<span>ID: {{id}}</span>
|
||||
<span class="separator"></span>
|
||||
<span>{{'Model' | translate}}: {{modelFk}}</span>
|
||||
<span class="separator"></span>
|
||||
<span>{{'Serial Number' | translate}}: {{serialNumber}}</span>
|
||||
<div>
|
||||
ID: {{id}}
|
||||
</div>
|
||||
<div class="text-caption text-secondary">
|
||||
{{modelFk}}, {{serialNumber}}
|
||||
</div>
|
||||
</tpl-item>
|
||||
</vn-autocomplete>
|
||||
</vn-horizontal>
|
||||
|
|
Loading…
Reference in New Issue