From ed1d8ca94f4ef6ec8a6f78eab0f30c19c7895f59 Mon Sep 17 00:00:00 2001 From: sergiodt Date: Fri, 22 Sep 2023 12:29:56 +0200 Subject: [PATCH] refs #5134 feat: models --- .../models/item-shelving-placement-supply.json | 6 ++++++ modules/item/back/models/item-shelving.json | 6 ++++++ modules/shelving/back/models/shelving.json | 3 +-- modules/ticket/back/model-config.json | 6 ++++++ modules/ticket/back/models/expeditionPallet.json | 16 ++++++++++++++++ modules/ticket/back/models/expeditionScan.json | 16 ++++++++++++++++ 6 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 modules/ticket/back/models/expeditionPallet.json create mode 100644 modules/ticket/back/models/expeditionScan.json diff --git a/modules/item/back/models/item-shelving-placement-supply.json b/modules/item/back/models/item-shelving-placement-supply.json index a54013e05..18d0a8d56 100644 --- a/modules/item/back/models/item-shelving-placement-supply.json +++ b/modules/item/back/models/item-shelving-placement-supply.json @@ -26,11 +26,17 @@ "shelving": { "type": "string" }, + "subName": { + "type": "string" + }, "packing": { "type": "number" }, "stock": { "type": "number" + }, + "size": { + "type": "number" } } } \ No newline at end of file diff --git a/modules/item/back/models/item-shelving.json b/modules/item/back/models/item-shelving.json index 8628bfeee..7f82f48b3 100644 --- a/modules/item/back/models/item-shelving.json +++ b/modules/item/back/models/item-shelving.json @@ -20,10 +20,16 @@ }, "created": { "type": "date" + }, + "grouping": { + "type": "number" }, "isChecked": { "type": "boolean" }, + "packing": { + "type": "number" + }, "visible": { "type": "number" }, diff --git a/modules/shelving/back/models/shelving.json b/modules/shelving/back/models/shelving.json index 5f60318a5..5459e29fd 100644 --- a/modules/shelving/back/models/shelving.json +++ b/modules/shelving/back/models/shelving.json @@ -9,12 +9,11 @@ "properties": { "id": { "type": "number", - "id": true, "description": "Identifier" }, "code": { "type": "string", - "required": true + "id": true }, "parkingFk": { "type": "number" diff --git a/modules/ticket/back/model-config.json b/modules/ticket/back/model-config.json index e90d0409f..247e18d01 100644 --- a/modules/ticket/back/model-config.json +++ b/modules/ticket/back/model-config.json @@ -17,6 +17,12 @@ "Expedition": { "dataSource": "vn" }, + "ExpeditionPallet": { + "dataSource": "vn" + }, + "ExpeditionScan": { + "dataSource": "vn" + }, "ExpeditionState": { "dataSource": "vn" }, diff --git a/modules/ticket/back/models/expeditionPallet.json b/modules/ticket/back/models/expeditionPallet.json new file mode 100644 index 000000000..2c56a65e0 --- /dev/null +++ b/modules/ticket/back/models/expeditionPallet.json @@ -0,0 +1,16 @@ +{ + "name": "ExpeditionPallet", + "options": { + "mysql": { + "table": "expeditionPallet" + } + }, + "acls": [{ + "accessType": "WRITE", + "principalType": "ROLE", + "principalId": "production", + "permission": "ALLOW" + }] + + } + diff --git a/modules/ticket/back/models/expeditionScan.json b/modules/ticket/back/models/expeditionScan.json new file mode 100644 index 000000000..f43ad0539 --- /dev/null +++ b/modules/ticket/back/models/expeditionScan.json @@ -0,0 +1,16 @@ +{ + "name": "ExpeditionScan", + "options": { + "mysql": { + "table": "expeditionScan" + } + }, + "acls": [{ + "accessType": "WRITE", + "principalType": "ROLE", + "principalId": "production", + "permission": "ALLOW" + }] + + } +