From f87f60f00ac45d025c3b3ea708802265e7c13e8f Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 18 Nov 2021 09:16:36 +0100 Subject: [PATCH] feat(item-itemPackingType): add model and dumpedFixtures --- db/export-data.sh | 13 +++++----- .../item/back/models/item-packing-type.json | 26 +++++++++++++++++++ 2 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 modules/item/back/models/item-packing-type.json diff --git a/db/export-data.sh b/db/export-data.sh index 96adc7ab6..f69620812 100755 --- a/db/export-data.sh +++ b/db/export-data.sh @@ -47,19 +47,20 @@ TABLES=( cplusSubjectOp cplusTaxBreak cplusTrascendency472 - pgc - time claimResponsible claimReason claimRedelivery claimResult - ticketUpdateAction - state - sample - department component componentType continent + department + itemPackingType + pgc + sample + state + ticketUpdateAction + time volumeConfig ) dump_tables ${TABLES[@]} diff --git a/modules/item/back/models/item-packing-type.json b/modules/item/back/models/item-packing-type.json new file mode 100644 index 000000000..d77c37dd8 --- /dev/null +++ b/modules/item/back/models/item-packing-type.json @@ -0,0 +1,26 @@ +{ + "name": "ItemPackingType", + "base": "VnModel", + "options": { + "mysql": { + "table": "itemPackingType" + } + }, + "properties": { + "code": { + "type": "string", + "id": true + }, + "description": { + "type": "string" + } + }, + "acls": [ + { + "accessType": "READ", + "principalType": "ROLE", + "principalId": "$everyone", + "permission": "ALLOW" + } + ] +} \ No newline at end of file