3069-client.shelving #1029

Merged
joan merged 16 commits from 3069-client.shelving into dev 2022-08-05 09:18:56 +00:00
3 changed files with 42 additions and 38 deletions
Showing only changes of commit 771c86ba4b - Show all commits

View File

@ -12,3 +12,7 @@ ALTER TABLE `vn`.`itemShelving` ADD CONSTRAINT itemShelving_fk2 FOREIGN KEY (she
ALTER TABLE `vn`.`shelvingLog` ADD CONSTRAINT shelvingLog_FK_ibfk_1 FOREIGN KEY (originFk) REFERENCES `vn`.`shelving`(code) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE `vn`.`shelvingLog` ADD CONSTRAINT shelvingLog_FK_ibfk_1 FOREIGN KEY (originFk) REFERENCES `vn`.`shelving`(code) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE `vn`.`smartTag` ADD CONSTRAINT smartTag_FK FOREIGN KEY (shelvingFk) REFERENCES `vn`.`shelving`(code) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE `vn`.`smartTag` ADD CONSTRAINT smartTag_FK FOREIGN KEY (shelvingFk) REFERENCES `vn`.`shelving`(code) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE `vn`.`workerShelving` ADD CONSTRAINT workerShelving_FK_1 FOREIGN KEY (shelvingFk) REFERENCES `vn`.`shelving`(code) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE `vn`.`workerShelving` ADD CONSTRAINT workerShelving_FK_1 FOREIGN KEY (shelvingFk) REFERENCES `vn`.`shelving`(code) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE vn.shelvingLog DROP FOREIGN KEY shelvingLog_FK_ibfk_1;
ALTER TABLE vn.shelvingLog MODIFY COLUMN originFk INT NOT NULL;
ALTER TABLE vn.shelvingLog ADD CONSTRAINT shelvingLog_FK FOREIGN KEY (originFk) REFERENCES vn.shelving(id) ON DELETE CASCADE ON UPDATE CASCADE;

View File

@ -6,45 +6,45 @@
"table": "shelvingLog" "table": "shelvingLog"
} }
}, },
"properties": { "properties": {
"id": { "id": {
"id": true, "id": true,
"type": "number", "type": "number",
"forceId": false "forceId": false
}, },
"originFk": { "originFk": {
"type": "string", "type": "number",
"required": true
},
"userFk": {
"type": "number"
},
"action": {
"type": "string",
"required": true "required": true
}, },
"creationDate": { "userFk": {
"type": "date" "type": "number"
}, },
"description": { "action": {
"type": "string" "type": "string",
}, "required": true
"changedModel": { },
"type": "string" "changedModel": {
}, "type": "string"
"oldInstance": { },
"type": "string" "oldInstance": {
}, "type": "object"
"newInstance": { },
"type": "string" "newInstance": {
}, "type": "object"
"changedModelId": { },
"type": "number" "creationDate": {
}, "type": "date"
"changedModelValue": { },
"type": "string" "changedModelId": {
} "type": "number"
}, },
"changedModelValue": {
"type": "string"
},
"description": {
"type": "string"
}
},
"relations": { "relations": {
"user": { "user": {
"type": "belongsTo", "type": "belongsTo",

View File

@ -1 +1 @@
<vn-log url="ShelvingLogs" origin-id="$ctrl.$params.code"></vn-log> <vn-log url="ShelvingLogs" origin-id="$ctrl.$params.id"></vn-log>