@open-mercato/core 0.10.1-develop.7709.1.046124599c → 0.10.1-develop.7714.1.9dbb8200d8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/dist/generated/entities/asn/index.js +19 -0
- package/dist/generated/entities/asn/index.js.map +7 -0
- package/dist/generated/entities/putaway_task/index.js +25 -0
- package/dist/generated/entities/putaway_task/index.js.map +7 -0
- package/dist/generated/entities/receiving_line/index.js +21 -0
- package/dist/generated/entities/receiving_line/index.js.map +7 -0
- package/dist/generated/entities.ids.generated.js +4 -1
- package/dist/generated/entities.ids.generated.js.map +2 -2
- package/dist/generated/entity-fields-registry.js +34 -0
- package/dist/generated/entity-fields-registry.js.map +2 -2
- package/dist/modules/communication_channels/lib/sanitize-channel-html.js +22 -3
- package/dist/modules/communication_channels/lib/sanitize-channel-html.js.map +2 -2
- package/dist/modules/communication_channels/widgets/injection/channel-payload-renderer/widget.client.js +40 -11
- package/dist/modules/communication_channels/widgets/injection/channel-payload-renderer/widget.client.js.map +2 -2
- package/dist/modules/customers/components/calendar/CalendarEventEditor.js +13 -2
- package/dist/modules/customers/components/calendar/CalendarEventEditor.js.map +2 -2
- package/dist/modules/wms/acl.js +2 -0
- package/dist/modules/wms/acl.js.map +2 -2
- package/dist/modules/wms/api/asns/[id]/complete/route.js +61 -0
- package/dist/modules/wms/api/asns/[id]/complete/route.js.map +7 -0
- package/dist/modules/wms/api/asns/[id]/receive/route.js +68 -0
- package/dist/modules/wms/api/asns/[id]/receive/route.js.map +7 -0
- package/dist/modules/wms/api/asns/route.js +197 -0
- package/dist/modules/wms/api/asns/route.js.map +7 -0
- package/dist/modules/wms/api/inventory/helpers.js +42 -34
- package/dist/modules/wms/api/inventory/helpers.js.map +2 -2
- package/dist/modules/wms/api/inventory/receive/route.js +1 -1
- package/dist/modules/wms/api/inventory/receive/route.js.map +2 -2
- package/dist/modules/wms/api/listEnrichers.js +23 -0
- package/dist/modules/wms/api/listEnrichers.js.map +2 -2
- package/dist/modules/wms/api/putaway-tasks/[id]/assign/route.js +56 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/assign/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/cancel/route.js +56 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/cancel/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/complete/route.js +65 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/complete/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/start/route.js +56 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/start/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/create-from-balance/route.js +51 -0
- package/dist/modules/wms/api/putaway-tasks/create-from-balance/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/route.js +192 -0
- package/dist/modules/wms/api/putaway-tasks/route.js.map +7 -0
- package/dist/modules/wms/api/receiving-lines/route.js +180 -0
- package/dist/modules/wms/api/receiving-lines/route.js.map +7 -0
- package/dist/modules/wms/api/scan/putaway/route.js +104 -0
- package/dist/modules/wms/api/scan/putaway/route.js.map +7 -0
- package/dist/modules/wms/api/scan/receive/route.js +109 -0
- package/dist/modules/wms/api/scan/receive/route.js.map +7 -0
- package/dist/modules/wms/api/scan/resolve-location/route.js +89 -0
- package/dist/modules/wms/api/scan/resolve-location/route.js.map +7 -0
- package/dist/modules/wms/api/scan/resolve-lot/route.js +89 -0
- package/dist/modules/wms/api/scan/resolve-lot/route.js.map +7 -0
- package/dist/modules/wms/backend/wms/asns/[id]/page.js +9 -0
- package/dist/modules/wms/backend/wms/asns/[id]/page.js.map +7 -0
- package/dist/modules/wms/backend/wms/asns/[id]/page.meta.js +18 -0
- package/dist/modules/wms/backend/wms/asns/[id]/page.meta.js.map +7 -0
- package/dist/modules/wms/backend/wms/asns/page.js +9 -0
- package/dist/modules/wms/backend/wms/asns/page.js.map +7 -0
- package/dist/modules/wms/backend/wms/asns/page.meta.js +18 -0
- package/dist/modules/wms/backend/wms/asns/page.meta.js.map +7 -0
- package/dist/modules/wms/backend/wms/putaway/page.js +9 -0
- package/dist/modules/wms/backend/wms/putaway/page.js.map +7 -0
- package/dist/modules/wms/backend/wms/putaway/page.meta.js +18 -0
- package/dist/modules/wms/backend/wms/putaway/page.meta.js.map +7 -0
- package/dist/modules/wms/backend/wms/receiving/page.js +8 -0
- package/dist/modules/wms/backend/wms/receiving/page.js.map +7 -0
- package/dist/modules/wms/backend/wms/receiving/page.meta.js +18 -0
- package/dist/modules/wms/backend/wms/receiving/page.meta.js.map +7 -0
- package/dist/modules/wms/ce.js +27 -0
- package/dist/modules/wms/ce.js.map +2 -2
- package/dist/modules/wms/commands/asn.js +1746 -0
- package/dist/modules/wms/commands/asn.js.map +7 -0
- package/dist/modules/wms/commands/index.js +2 -0
- package/dist/modules/wms/commands/index.js.map +2 -2
- package/dist/modules/wms/commands/inventory-actions.js +347 -243
- package/dist/modules/wms/commands/inventory-actions.js.map +2 -2
- package/dist/modules/wms/commands/putaway.js +945 -0
- package/dist/modules/wms/commands/putaway.js.map +7 -0
- package/dist/modules/wms/commands/shared.js +51 -0
- package/dist/modules/wms/commands/shared.js.map +2 -2
- package/dist/modules/wms/components/backend/AssignPutawayTaskDialog.js +278 -0
- package/dist/modules/wms/components/backend/AssignPutawayTaskDialog.js.map +7 -0
- package/dist/modules/wms/components/backend/CompletePutawayTaskDialog.js +327 -0
- package/dist/modules/wms/components/backend/CompletePutawayTaskDialog.js.map +7 -0
- package/dist/modules/wms/components/backend/CreateAsnDialog.js +404 -0
- package/dist/modules/wms/components/backend/CreateAsnDialog.js.map +7 -0
- package/dist/modules/wms/components/backend/InventoryOperationsSection.js +16 -3
- package/dist/modules/wms/components/backend/InventoryOperationsSection.js.map +2 -2
- package/dist/modules/wms/components/backend/ReceiveAsnLineDialog.js +476 -0
- package/dist/modules/wms/components/backend/ReceiveAsnLineDialog.js.map +7 -0
- package/dist/modules/wms/components/backend/ReceiveInventoryDialog.js +2 -2
- package/dist/modules/wms/components/backend/ReceiveInventoryDialog.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsAsnDetailPage.js +524 -0
- package/dist/modules/wms/components/backend/WmsAsnDetailPage.js.map +7 -0
- package/dist/modules/wms/components/backend/WmsAsnsListPage.js +339 -0
- package/dist/modules/wms/components/backend/WmsAsnsListPage.js.map +7 -0
- package/dist/modules/wms/components/backend/WmsLocationDetailPage.js +5 -6
- package/dist/modules/wms/components/backend/WmsLocationDetailPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsLotDetailPage.js +5 -6
- package/dist/modules/wms/components/backend/WmsLotDetailPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsOperationalDashboardPage.js +14 -10
- package/dist/modules/wms/components/backend/WmsOperationalDashboardPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsPutawayQueuePage.js +598 -0
- package/dist/modules/wms/components/backend/WmsPutawayQueuePage.js.map +7 -0
- package/dist/modules/wms/components/backend/WmsSkuDetailPage.js +5 -6
- package/dist/modules/wms/components/backend/WmsSkuDetailPage.js.map +2 -2
- package/dist/modules/wms/components/backend/asnCompleteOptimisticLock.js +32 -0
- package/dist/modules/wms/components/backend/asnCompleteOptimisticLock.js.map +7 -0
- package/dist/modules/wms/components/backend/asnReceivingLinesLoader.js +36 -0
- package/dist/modules/wms/components/backend/asnReceivingLinesLoader.js.map +7 -0
- package/dist/modules/wms/components/backend/inboundStatusUi.js +106 -0
- package/dist/modules/wms/components/backend/inboundStatusUi.js.map +7 -0
- package/dist/modules/wms/components/backend/inventoryMutationLoaders.js +17 -0
- package/dist/modules/wms/components/backend/inventoryMutationLoaders.js.map +2 -2
- package/dist/modules/wms/components/backend/putawayQueueOptimisticLock.js +14 -0
- package/dist/modules/wms/components/backend/putawayQueueOptimisticLock.js.map +7 -0
- package/dist/modules/wms/components/backend/useWmsInventoryMutationAccess.js +4 -0
- package/dist/modules/wms/components/backend/useWmsInventoryMutationAccess.js.map +2 -2
- package/dist/modules/wms/data/enrichers.js +117 -12
- package/dist/modules/wms/data/enrichers.js.map +2 -2
- package/dist/modules/wms/data/entities.js +150 -1
- package/dist/modules/wms/data/entities.js.map +2 -2
- package/dist/modules/wms/data/validators.js +214 -0
- package/dist/modules/wms/data/validators.js.map +2 -2
- package/dist/modules/wms/events.js +12 -1
- package/dist/modules/wms/events.js.map +2 -2
- package/dist/modules/wms/extension-points.js +3 -1
- package/dist/modules/wms/extension-points.js.map +2 -2
- package/dist/modules/wms/lib/asnReceiving.js +124 -0
- package/dist/modules/wms/lib/asnReceiving.js.map +7 -0
- package/dist/modules/wms/lib/asnVendor.js +52 -0
- package/dist/modules/wms/lib/asnVendor.js.map +7 -0
- package/dist/modules/wms/lib/flashMutationError.js +4 -0
- package/dist/modules/wms/lib/flashMutationError.js.map +2 -2
- package/dist/modules/wms/lib/inventoryDisplayUi.js +24 -0
- package/dist/modules/wms/lib/inventoryDisplayUi.js.map +2 -2
- package/dist/modules/wms/lib/inventoryPolicy.js +17 -0
- package/dist/modules/wms/lib/inventoryPolicy.js.map +2 -2
- package/dist/modules/wms/lib/loadOperationalDashboard.js +67 -1
- package/dist/modules/wms/lib/loadOperationalDashboard.js.map +2 -2
- package/dist/modules/wms/lib/putaway.js +141 -0
- package/dist/modules/wms/lib/putaway.js.map +7 -0
- package/dist/modules/wms/lib/roleFeatures.js +3 -1
- package/dist/modules/wms/lib/roleFeatures.js.map +2 -2
- package/dist/modules/wms/lib/salesOrderInventoryAutomation.js +99 -1
- package/dist/modules/wms/lib/salesOrderInventoryAutomation.js.map +2 -2
- package/dist/modules/wms/lib/scanResolve.js +147 -0
- package/dist/modules/wms/lib/scanResolve.js.map +7 -0
- package/dist/modules/wms/lib/wmsIntegrationToggles.js +1 -1
- package/dist/modules/wms/lib/wmsIntegrationToggles.js.map +2 -2
- package/dist/modules/wms/migrations/Migration20260812120000.js +43 -0
- package/dist/modules/wms/migrations/Migration20260812120000.js.map +7 -0
- package/dist/modules/wms/migrations/Migration20260812130000.js +30 -0
- package/dist/modules/wms/migrations/Migration20260812130000.js.map +7 -0
- package/dist/modules/wms/migrations/Migration20260822120000.js +17 -0
- package/dist/modules/wms/migrations/Migration20260822120000.js.map +7 -0
- package/dist/modules/wms/migrations/Migration20260822130000.js +17 -0
- package/dist/modules/wms/migrations/Migration20260822130000.js.map +7 -0
- package/dist/modules/wms/migrations/Migration20261029120000.js +13 -0
- package/dist/modules/wms/migrations/Migration20261029120000.js.map +7 -0
- package/dist/modules/wms/search.js +85 -0
- package/dist/modules/wms/search.js.map +2 -2
- package/dist/modules/wms/subscribers/asn-line-received-reevaluate-reservations.js +14 -0
- package/dist/modules/wms/subscribers/asn-line-received-reevaluate-reservations.js.map +7 -0
- package/dist/modules/wms/subscribers/invalidate-enricher-cache-asn.js +12 -0
- package/dist/modules/wms/subscribers/invalidate-enricher-cache-asn.js.map +7 -0
- package/dist/modules/wms/subscribers/procurement-goods-receipt-created.js +163 -0
- package/dist/modules/wms/subscribers/procurement-goods-receipt-created.js.map +7 -0
- package/dist/modules/wms/subscribers/putaway-completed-reevaluate-reservations.js +14 -0
- package/dist/modules/wms/subscribers/putaway-completed-reevaluate-reservations.js.map +7 -0
- package/dist/modules/wms/widgets/injection/sales-order-stock-context/widget.client.js +37 -8
- package/dist/modules/wms/widgets/injection/sales-order-stock-context/widget.client.js.map +2 -2
- package/generated/entities/asn/index.ts +8 -0
- package/generated/entities/putaway_task/index.ts +11 -0
- package/generated/entities/receiving_line/index.ts +9 -0
- package/generated/entities.ids.generated.ts +4 -1
- package/generated/entity-fields-registry.ts +34 -0
- package/package.json +7 -7
- package/src/modules/auth/i18n/de.json +2 -0
- package/src/modules/auth/i18n/en.json +2 -0
- package/src/modules/auth/i18n/es.json +2 -0
- package/src/modules/auth/i18n/ko.json +2 -0
- package/src/modules/auth/i18n/pl.json +2 -0
- package/src/modules/communication_channels/i18n/de.json +2 -0
- package/src/modules/communication_channels/i18n/en.json +2 -0
- package/src/modules/communication_channels/i18n/es.json +2 -0
- package/src/modules/communication_channels/i18n/ko.json +2 -0
- package/src/modules/communication_channels/i18n/pl.json +2 -0
- package/src/modules/communication_channels/lib/sanitize-channel-html.ts +23 -3
- package/src/modules/communication_channels/widgets/injection/channel-payload-renderer/widget.client.tsx +44 -12
- package/src/modules/customers/components/calendar/CalendarEventEditor.tsx +16 -2
- package/src/modules/wms/acl.ts +2 -0
- package/src/modules/wms/api/asns/[id]/complete/route.ts +62 -0
- package/src/modules/wms/api/asns/[id]/receive/route.ts +74 -0
- package/src/modules/wms/api/asns/route.ts +200 -0
- package/src/modules/wms/api/inventory/helpers.ts +57 -34
- package/src/modules/wms/api/inventory/receive/route.ts +2 -1
- package/src/modules/wms/api/listEnrichers.ts +38 -0
- package/src/modules/wms/api/putaway-tasks/[id]/assign/route.ts +56 -0
- package/src/modules/wms/api/putaway-tasks/[id]/cancel/route.ts +56 -0
- package/src/modules/wms/api/putaway-tasks/[id]/complete/route.ts +66 -0
- package/src/modules/wms/api/putaway-tasks/[id]/start/route.ts +56 -0
- package/src/modules/wms/api/putaway-tasks/create-from-balance/route.ts +50 -0
- package/src/modules/wms/api/putaway-tasks/route.ts +199 -0
- package/src/modules/wms/api/receiving-lines/route.ts +180 -0
- package/src/modules/wms/api/scan/putaway/route.ts +108 -0
- package/src/modules/wms/api/scan/receive/route.ts +118 -0
- package/src/modules/wms/api/scan/resolve-location/route.ts +92 -0
- package/src/modules/wms/api/scan/resolve-lot/route.ts +92 -0
- package/src/modules/wms/backend/wms/asns/[id]/page.meta.ts +14 -0
- package/src/modules/wms/backend/wms/asns/[id]/page.tsx +5 -0
- package/src/modules/wms/backend/wms/asns/page.meta.ts +14 -0
- package/src/modules/wms/backend/wms/asns/page.tsx +5 -0
- package/src/modules/wms/backend/wms/putaway/page.meta.ts +14 -0
- package/src/modules/wms/backend/wms/putaway/page.tsx +5 -0
- package/src/modules/wms/backend/wms/receiving/page.meta.ts +14 -0
- package/src/modules/wms/backend/wms/receiving/page.tsx +5 -0
- package/src/modules/wms/ce.ts +27 -0
- package/src/modules/wms/commands/asn.ts +2122 -0
- package/src/modules/wms/commands/index.ts +2 -0
- package/src/modules/wms/commands/inventory-actions.ts +413 -243
- package/src/modules/wms/commands/putaway.ts +1169 -0
- package/src/modules/wms/commands/shared.ts +51 -0
- package/src/modules/wms/components/backend/AssignPutawayTaskDialog.tsx +328 -0
- package/src/modules/wms/components/backend/CompletePutawayTaskDialog.tsx +366 -0
- package/src/modules/wms/components/backend/CreateAsnDialog.tsx +427 -0
- package/src/modules/wms/components/backend/InventoryOperationsSection.tsx +20 -2
- package/src/modules/wms/components/backend/ReceiveAsnLineDialog.tsx +535 -0
- package/src/modules/wms/components/backend/ReceiveInventoryDialog.tsx +2 -2
- package/src/modules/wms/components/backend/WmsAsnDetailPage.tsx +647 -0
- package/src/modules/wms/components/backend/WmsAsnsListPage.tsx +407 -0
- package/src/modules/wms/components/backend/WmsLocationDetailPage.tsx +4 -5
- package/src/modules/wms/components/backend/WmsLotDetailPage.tsx +4 -5
- package/src/modules/wms/components/backend/WmsOperationalDashboardPage.tsx +12 -8
- package/src/modules/wms/components/backend/WmsPutawayQueuePage.tsx +677 -0
- package/src/modules/wms/components/backend/WmsSkuDetailPage.tsx +4 -5
- package/src/modules/wms/components/backend/asnCompleteOptimisticLock.ts +52 -0
- package/src/modules/wms/components/backend/asnReceivingLinesLoader.ts +83 -0
- package/src/modules/wms/components/backend/inboundStatusUi.ts +154 -0
- package/src/modules/wms/components/backend/inventoryMutationLoaders.ts +20 -0
- package/src/modules/wms/components/backend/putawayQueueOptimisticLock.ts +20 -0
- package/src/modules/wms/components/backend/useWmsInventoryMutationAccess.ts +4 -0
- package/src/modules/wms/data/enrichers.ts +175 -13
- package/src/modules/wms/data/entities.ts +155 -0
- package/src/modules/wms/data/validators.ts +256 -0
- package/src/modules/wms/events.ts +11 -0
- package/src/modules/wms/extension-points.ts +2 -0
- package/src/modules/wms/i18n/de.json +205 -3
- package/src/modules/wms/i18n/en.json +205 -3
- package/src/modules/wms/i18n/es.json +205 -3
- package/src/modules/wms/i18n/ko.json +205 -3
- package/src/modules/wms/i18n/pl.json +205 -3
- package/src/modules/wms/lib/asnReceiving.ts +226 -0
- package/src/modules/wms/lib/asnVendor.ts +80 -0
- package/src/modules/wms/lib/flashMutationError.ts +4 -0
- package/src/modules/wms/lib/inventoryDisplayUi.ts +46 -0
- package/src/modules/wms/lib/inventoryPolicy.ts +31 -1
- package/src/modules/wms/lib/loadOperationalDashboard.ts +89 -1
- package/src/modules/wms/lib/putaway.ts +210 -0
- package/src/modules/wms/lib/roleFeatures.ts +2 -0
- package/src/modules/wms/lib/salesOrderInventoryAutomation.ts +150 -1
- package/src/modules/wms/lib/scanResolve.ts +185 -0
- package/src/modules/wms/lib/wmsIntegrationToggles.ts +2 -1
- package/src/modules/wms/migrations/.snapshot-open-mercato.json +1000 -0
- package/src/modules/wms/migrations/Migration20260812120000.ts +43 -0
- package/src/modules/wms/migrations/Migration20260812130000.ts +28 -0
- package/src/modules/wms/migrations/Migration20260822120000.ts +17 -0
- package/src/modules/wms/migrations/Migration20260822130000.ts +15 -0
- package/src/modules/wms/migrations/Migration20261029120000.ts +11 -0
- package/src/modules/wms/search.ts +95 -0
- package/src/modules/wms/subscribers/asn-line-received-reevaluate-reservations.ts +21 -0
- package/src/modules/wms/subscribers/invalidate-enricher-cache-asn.ts +12 -0
- package/src/modules/wms/subscribers/procurement-goods-receipt-created.ts +238 -0
- package/src/modules/wms/subscribers/putaway-completed-reevaluate-reservations.ts +21 -0
- package/src/modules/wms/widgets/injection/sales-order-stock-context/widget.client.tsx +63 -13
|
@@ -2873,6 +2873,1006 @@
|
|
|
2873
2873
|
}
|
|
2874
2874
|
},
|
|
2875
2875
|
"nativeEnums": {}
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
"name": "wms_asns",
|
|
2879
|
+
"schema": "public",
|
|
2880
|
+
"columns": {
|
|
2881
|
+
"id": {
|
|
2882
|
+
"name": "id",
|
|
2883
|
+
"type": "uuid",
|
|
2884
|
+
"unsigned": false,
|
|
2885
|
+
"autoincrement": false,
|
|
2886
|
+
"primary": true,
|
|
2887
|
+
"nullable": false,
|
|
2888
|
+
"unique": false,
|
|
2889
|
+
"length": null,
|
|
2890
|
+
"precision": null,
|
|
2891
|
+
"scale": null,
|
|
2892
|
+
"default": "gen_random_uuid()",
|
|
2893
|
+
"comment": null,
|
|
2894
|
+
"enumItems": [],
|
|
2895
|
+
"mappedType": "uuid"
|
|
2896
|
+
},
|
|
2897
|
+
"organization_id": {
|
|
2898
|
+
"name": "organization_id",
|
|
2899
|
+
"type": "uuid",
|
|
2900
|
+
"unsigned": false,
|
|
2901
|
+
"autoincrement": false,
|
|
2902
|
+
"primary": false,
|
|
2903
|
+
"nullable": false,
|
|
2904
|
+
"unique": false,
|
|
2905
|
+
"length": null,
|
|
2906
|
+
"precision": null,
|
|
2907
|
+
"scale": null,
|
|
2908
|
+
"default": null,
|
|
2909
|
+
"comment": null,
|
|
2910
|
+
"enumItems": [],
|
|
2911
|
+
"mappedType": "uuid"
|
|
2912
|
+
},
|
|
2913
|
+
"tenant_id": {
|
|
2914
|
+
"name": "tenant_id",
|
|
2915
|
+
"type": "uuid",
|
|
2916
|
+
"unsigned": false,
|
|
2917
|
+
"autoincrement": false,
|
|
2918
|
+
"primary": false,
|
|
2919
|
+
"nullable": false,
|
|
2920
|
+
"unique": false,
|
|
2921
|
+
"length": null,
|
|
2922
|
+
"precision": null,
|
|
2923
|
+
"scale": null,
|
|
2924
|
+
"default": null,
|
|
2925
|
+
"comment": null,
|
|
2926
|
+
"enumItems": [],
|
|
2927
|
+
"mappedType": "uuid"
|
|
2928
|
+
},
|
|
2929
|
+
"metadata": {
|
|
2930
|
+
"name": "metadata",
|
|
2931
|
+
"type": "jsonb",
|
|
2932
|
+
"unsigned": false,
|
|
2933
|
+
"autoincrement": false,
|
|
2934
|
+
"primary": false,
|
|
2935
|
+
"nullable": true,
|
|
2936
|
+
"unique": false,
|
|
2937
|
+
"length": null,
|
|
2938
|
+
"precision": null,
|
|
2939
|
+
"scale": null,
|
|
2940
|
+
"default": null,
|
|
2941
|
+
"comment": null,
|
|
2942
|
+
"enumItems": [],
|
|
2943
|
+
"mappedType": "json"
|
|
2944
|
+
},
|
|
2945
|
+
"created_at": {
|
|
2946
|
+
"name": "created_at",
|
|
2947
|
+
"type": "timestamptz",
|
|
2948
|
+
"unsigned": false,
|
|
2949
|
+
"autoincrement": false,
|
|
2950
|
+
"primary": false,
|
|
2951
|
+
"nullable": false,
|
|
2952
|
+
"unique": false,
|
|
2953
|
+
"length": 6,
|
|
2954
|
+
"precision": null,
|
|
2955
|
+
"scale": null,
|
|
2956
|
+
"default": null,
|
|
2957
|
+
"comment": null,
|
|
2958
|
+
"enumItems": [],
|
|
2959
|
+
"mappedType": "datetime"
|
|
2960
|
+
},
|
|
2961
|
+
"updated_at": {
|
|
2962
|
+
"name": "updated_at",
|
|
2963
|
+
"type": "timestamptz",
|
|
2964
|
+
"unsigned": false,
|
|
2965
|
+
"autoincrement": false,
|
|
2966
|
+
"primary": false,
|
|
2967
|
+
"nullable": false,
|
|
2968
|
+
"unique": false,
|
|
2969
|
+
"length": 6,
|
|
2970
|
+
"precision": null,
|
|
2971
|
+
"scale": null,
|
|
2972
|
+
"default": null,
|
|
2973
|
+
"comment": null,
|
|
2974
|
+
"enumItems": [],
|
|
2975
|
+
"mappedType": "datetime"
|
|
2976
|
+
},
|
|
2977
|
+
"deleted_at": {
|
|
2978
|
+
"name": "deleted_at",
|
|
2979
|
+
"type": "timestamptz",
|
|
2980
|
+
"unsigned": false,
|
|
2981
|
+
"autoincrement": false,
|
|
2982
|
+
"primary": false,
|
|
2983
|
+
"nullable": true,
|
|
2984
|
+
"unique": false,
|
|
2985
|
+
"length": 6,
|
|
2986
|
+
"precision": null,
|
|
2987
|
+
"scale": null,
|
|
2988
|
+
"default": null,
|
|
2989
|
+
"comment": null,
|
|
2990
|
+
"enumItems": [],
|
|
2991
|
+
"mappedType": "datetime"
|
|
2992
|
+
},
|
|
2993
|
+
"warehouse_id": {
|
|
2994
|
+
"name": "warehouse_id",
|
|
2995
|
+
"type": "uuid",
|
|
2996
|
+
"unsigned": false,
|
|
2997
|
+
"autoincrement": false,
|
|
2998
|
+
"primary": false,
|
|
2999
|
+
"nullable": false,
|
|
3000
|
+
"unique": false,
|
|
3001
|
+
"length": null,
|
|
3002
|
+
"precision": null,
|
|
3003
|
+
"scale": null,
|
|
3004
|
+
"default": null,
|
|
3005
|
+
"comment": null,
|
|
3006
|
+
"enumItems": [],
|
|
3007
|
+
"mappedType": "uuid"
|
|
3008
|
+
},
|
|
3009
|
+
"vendor_id": {
|
|
3010
|
+
"name": "vendor_id",
|
|
3011
|
+
"type": "uuid",
|
|
3012
|
+
"unsigned": false,
|
|
3013
|
+
"autoincrement": false,
|
|
3014
|
+
"primary": false,
|
|
3015
|
+
"nullable": true,
|
|
3016
|
+
"unique": false,
|
|
3017
|
+
"length": null,
|
|
3018
|
+
"precision": null,
|
|
3019
|
+
"scale": null,
|
|
3020
|
+
"default": null,
|
|
3021
|
+
"comment": null,
|
|
3022
|
+
"enumItems": [],
|
|
3023
|
+
"mappedType": "uuid"
|
|
3024
|
+
},
|
|
3025
|
+
"status": {
|
|
3026
|
+
"name": "status",
|
|
3027
|
+
"type": "text",
|
|
3028
|
+
"unsigned": false,
|
|
3029
|
+
"autoincrement": false,
|
|
3030
|
+
"primary": false,
|
|
3031
|
+
"nullable": false,
|
|
3032
|
+
"unique": false,
|
|
3033
|
+
"length": null,
|
|
3034
|
+
"precision": null,
|
|
3035
|
+
"scale": null,
|
|
3036
|
+
"default": "'draft'",
|
|
3037
|
+
"comment": null,
|
|
3038
|
+
"enumItems": [],
|
|
3039
|
+
"mappedType": "text"
|
|
3040
|
+
},
|
|
3041
|
+
"expected_at": {
|
|
3042
|
+
"name": "expected_at",
|
|
3043
|
+
"type": "timestamptz",
|
|
3044
|
+
"unsigned": false,
|
|
3045
|
+
"autoincrement": false,
|
|
3046
|
+
"primary": false,
|
|
3047
|
+
"nullable": false,
|
|
3048
|
+
"unique": false,
|
|
3049
|
+
"length": 6,
|
|
3050
|
+
"precision": null,
|
|
3051
|
+
"scale": null,
|
|
3052
|
+
"default": null,
|
|
3053
|
+
"comment": null,
|
|
3054
|
+
"enumItems": [],
|
|
3055
|
+
"mappedType": "datetime"
|
|
3056
|
+
},
|
|
3057
|
+
"reference_number": {
|
|
3058
|
+
"name": "reference_number",
|
|
3059
|
+
"type": "text",
|
|
3060
|
+
"unsigned": false,
|
|
3061
|
+
"autoincrement": false,
|
|
3062
|
+
"primary": false,
|
|
3063
|
+
"nullable": true,
|
|
3064
|
+
"unique": false,
|
|
3065
|
+
"length": null,
|
|
3066
|
+
"precision": null,
|
|
3067
|
+
"scale": null,
|
|
3068
|
+
"default": null,
|
|
3069
|
+
"comment": null,
|
|
3070
|
+
"enumItems": [],
|
|
3071
|
+
"mappedType": "text"
|
|
3072
|
+
},
|
|
3073
|
+
"source_key": {
|
|
3074
|
+
"name": "source_key",
|
|
3075
|
+
"type": "text",
|
|
3076
|
+
"unsigned": false,
|
|
3077
|
+
"autoincrement": false,
|
|
3078
|
+
"primary": false,
|
|
3079
|
+
"nullable": true,
|
|
3080
|
+
"unique": false,
|
|
3081
|
+
"length": null,
|
|
3082
|
+
"precision": null,
|
|
3083
|
+
"scale": null,
|
|
3084
|
+
"default": null,
|
|
3085
|
+
"comment": null,
|
|
3086
|
+
"enumItems": [],
|
|
3087
|
+
"mappedType": "text"
|
|
3088
|
+
},
|
|
3089
|
+
"notes": {
|
|
3090
|
+
"name": "notes",
|
|
3091
|
+
"type": "text",
|
|
3092
|
+
"unsigned": false,
|
|
3093
|
+
"autoincrement": false,
|
|
3094
|
+
"primary": false,
|
|
3095
|
+
"nullable": true,
|
|
3096
|
+
"unique": false,
|
|
3097
|
+
"length": null,
|
|
3098
|
+
"precision": null,
|
|
3099
|
+
"scale": null,
|
|
3100
|
+
"default": null,
|
|
3101
|
+
"comment": null,
|
|
3102
|
+
"enumItems": [],
|
|
3103
|
+
"mappedType": "text"
|
|
3104
|
+
}
|
|
3105
|
+
},
|
|
3106
|
+
"indexes": [
|
|
3107
|
+
{
|
|
3108
|
+
"keyName": "wms_asns_org_warehouse_status_expected_idx",
|
|
3109
|
+
"columnNames": [
|
|
3110
|
+
"organization_id",
|
|
3111
|
+
"warehouse_id",
|
|
3112
|
+
"status",
|
|
3113
|
+
"expected_at"
|
|
3114
|
+
],
|
|
3115
|
+
"composite": true,
|
|
3116
|
+
"constraint": false,
|
|
3117
|
+
"primary": false,
|
|
3118
|
+
"unique": false
|
|
3119
|
+
},
|
|
3120
|
+
{
|
|
3121
|
+
"keyName": "wms_asns_org_vendor_expected_idx",
|
|
3122
|
+
"columnNames": [],
|
|
3123
|
+
"composite": false,
|
|
3124
|
+
"constraint": false,
|
|
3125
|
+
"primary": false,
|
|
3126
|
+
"unique": false,
|
|
3127
|
+
"expression": "create index \"wms_asns_org_vendor_expected_idx\" on \"wms_asns\" (\"organization_id\", \"vendor_id\", \"expected_at\" desc) where deleted_at is null"
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
"keyName": "wms_asns_org_source_key_unique_idx",
|
|
3131
|
+
"columnNames": [
|
|
3132
|
+
"organization_id",
|
|
3133
|
+
"source_key"
|
|
3134
|
+
],
|
|
3135
|
+
"composite": true,
|
|
3136
|
+
"constraint": false,
|
|
3137
|
+
"primary": false,
|
|
3138
|
+
"unique": false,
|
|
3139
|
+
"expression": "create unique index \"wms_asns_org_source_key_unique_idx\" on \"wms_asns\" (\"organization_id\", \"source_key\") where source_key is not null and deleted_at is null"
|
|
3140
|
+
},
|
|
3141
|
+
{
|
|
3142
|
+
"keyName": "wms_asns_org_tenant_idx",
|
|
3143
|
+
"columnNames": [
|
|
3144
|
+
"organization_id",
|
|
3145
|
+
"tenant_id"
|
|
3146
|
+
],
|
|
3147
|
+
"composite": true,
|
|
3148
|
+
"constraint": false,
|
|
3149
|
+
"primary": false,
|
|
3150
|
+
"unique": false
|
|
3151
|
+
},
|
|
3152
|
+
{
|
|
3153
|
+
"keyName": "wms_asns_pkey",
|
|
3154
|
+
"columnNames": [
|
|
3155
|
+
"id"
|
|
3156
|
+
],
|
|
3157
|
+
"composite": false,
|
|
3158
|
+
"constraint": true,
|
|
3159
|
+
"primary": true,
|
|
3160
|
+
"unique": true
|
|
3161
|
+
}
|
|
3162
|
+
],
|
|
3163
|
+
"checks": [],
|
|
3164
|
+
"foreignKeys": {
|
|
3165
|
+
"wms_asns_warehouse_id_foreign": {
|
|
3166
|
+
"constraintName": "wms_asns_warehouse_id_foreign",
|
|
3167
|
+
"columnNames": [
|
|
3168
|
+
"warehouse_id"
|
|
3169
|
+
],
|
|
3170
|
+
"localTableName": "public.wms_asns",
|
|
3171
|
+
"referencedColumnNames": [
|
|
3172
|
+
"id"
|
|
3173
|
+
],
|
|
3174
|
+
"referencedTableName": "public.wms_warehouses",
|
|
3175
|
+
"updateRule": "no action",
|
|
3176
|
+
"deleteRule": "no action"
|
|
3177
|
+
}
|
|
3178
|
+
},
|
|
3179
|
+
"nativeEnums": {}
|
|
3180
|
+
},
|
|
3181
|
+
{
|
|
3182
|
+
"name": "wms_receiving_lines",
|
|
3183
|
+
"schema": "public",
|
|
3184
|
+
"columns": {
|
|
3185
|
+
"id": {
|
|
3186
|
+
"name": "id",
|
|
3187
|
+
"type": "uuid",
|
|
3188
|
+
"unsigned": false,
|
|
3189
|
+
"autoincrement": false,
|
|
3190
|
+
"primary": true,
|
|
3191
|
+
"nullable": false,
|
|
3192
|
+
"unique": false,
|
|
3193
|
+
"length": null,
|
|
3194
|
+
"precision": null,
|
|
3195
|
+
"scale": null,
|
|
3196
|
+
"default": "gen_random_uuid()",
|
|
3197
|
+
"comment": null,
|
|
3198
|
+
"enumItems": [],
|
|
3199
|
+
"mappedType": "uuid"
|
|
3200
|
+
},
|
|
3201
|
+
"organization_id": {
|
|
3202
|
+
"name": "organization_id",
|
|
3203
|
+
"type": "uuid",
|
|
3204
|
+
"unsigned": false,
|
|
3205
|
+
"autoincrement": false,
|
|
3206
|
+
"primary": false,
|
|
3207
|
+
"nullable": false,
|
|
3208
|
+
"unique": false,
|
|
3209
|
+
"length": null,
|
|
3210
|
+
"precision": null,
|
|
3211
|
+
"scale": null,
|
|
3212
|
+
"default": null,
|
|
3213
|
+
"comment": null,
|
|
3214
|
+
"enumItems": [],
|
|
3215
|
+
"mappedType": "uuid"
|
|
3216
|
+
},
|
|
3217
|
+
"tenant_id": {
|
|
3218
|
+
"name": "tenant_id",
|
|
3219
|
+
"type": "uuid",
|
|
3220
|
+
"unsigned": false,
|
|
3221
|
+
"autoincrement": false,
|
|
3222
|
+
"primary": false,
|
|
3223
|
+
"nullable": false,
|
|
3224
|
+
"unique": false,
|
|
3225
|
+
"length": null,
|
|
3226
|
+
"precision": null,
|
|
3227
|
+
"scale": null,
|
|
3228
|
+
"default": null,
|
|
3229
|
+
"comment": null,
|
|
3230
|
+
"enumItems": [],
|
|
3231
|
+
"mappedType": "uuid"
|
|
3232
|
+
},
|
|
3233
|
+
"metadata": {
|
|
3234
|
+
"name": "metadata",
|
|
3235
|
+
"type": "jsonb",
|
|
3236
|
+
"unsigned": false,
|
|
3237
|
+
"autoincrement": false,
|
|
3238
|
+
"primary": false,
|
|
3239
|
+
"nullable": true,
|
|
3240
|
+
"unique": false,
|
|
3241
|
+
"length": null,
|
|
3242
|
+
"precision": null,
|
|
3243
|
+
"scale": null,
|
|
3244
|
+
"default": null,
|
|
3245
|
+
"comment": null,
|
|
3246
|
+
"enumItems": [],
|
|
3247
|
+
"mappedType": "json"
|
|
3248
|
+
},
|
|
3249
|
+
"created_at": {
|
|
3250
|
+
"name": "created_at",
|
|
3251
|
+
"type": "timestamptz",
|
|
3252
|
+
"unsigned": false,
|
|
3253
|
+
"autoincrement": false,
|
|
3254
|
+
"primary": false,
|
|
3255
|
+
"nullable": false,
|
|
3256
|
+
"unique": false,
|
|
3257
|
+
"length": 6,
|
|
3258
|
+
"precision": null,
|
|
3259
|
+
"scale": null,
|
|
3260
|
+
"default": null,
|
|
3261
|
+
"comment": null,
|
|
3262
|
+
"enumItems": [],
|
|
3263
|
+
"mappedType": "datetime"
|
|
3264
|
+
},
|
|
3265
|
+
"updated_at": {
|
|
3266
|
+
"name": "updated_at",
|
|
3267
|
+
"type": "timestamptz",
|
|
3268
|
+
"unsigned": false,
|
|
3269
|
+
"autoincrement": false,
|
|
3270
|
+
"primary": false,
|
|
3271
|
+
"nullable": false,
|
|
3272
|
+
"unique": false,
|
|
3273
|
+
"length": 6,
|
|
3274
|
+
"precision": null,
|
|
3275
|
+
"scale": null,
|
|
3276
|
+
"default": null,
|
|
3277
|
+
"comment": null,
|
|
3278
|
+
"enumItems": [],
|
|
3279
|
+
"mappedType": "datetime"
|
|
3280
|
+
},
|
|
3281
|
+
"deleted_at": {
|
|
3282
|
+
"name": "deleted_at",
|
|
3283
|
+
"type": "timestamptz",
|
|
3284
|
+
"unsigned": false,
|
|
3285
|
+
"autoincrement": false,
|
|
3286
|
+
"primary": false,
|
|
3287
|
+
"nullable": true,
|
|
3288
|
+
"unique": false,
|
|
3289
|
+
"length": 6,
|
|
3290
|
+
"precision": null,
|
|
3291
|
+
"scale": null,
|
|
3292
|
+
"default": null,
|
|
3293
|
+
"comment": null,
|
|
3294
|
+
"enumItems": [],
|
|
3295
|
+
"mappedType": "datetime"
|
|
3296
|
+
},
|
|
3297
|
+
"asn_id": {
|
|
3298
|
+
"name": "asn_id",
|
|
3299
|
+
"type": "uuid",
|
|
3300
|
+
"unsigned": false,
|
|
3301
|
+
"autoincrement": false,
|
|
3302
|
+
"primary": false,
|
|
3303
|
+
"nullable": false,
|
|
3304
|
+
"unique": false,
|
|
3305
|
+
"length": null,
|
|
3306
|
+
"precision": null,
|
|
3307
|
+
"scale": null,
|
|
3308
|
+
"default": null,
|
|
3309
|
+
"comment": null,
|
|
3310
|
+
"enumItems": [],
|
|
3311
|
+
"mappedType": "uuid"
|
|
3312
|
+
},
|
|
3313
|
+
"catalog_variant_id": {
|
|
3314
|
+
"name": "catalog_variant_id",
|
|
3315
|
+
"type": "uuid",
|
|
3316
|
+
"unsigned": false,
|
|
3317
|
+
"autoincrement": false,
|
|
3318
|
+
"primary": false,
|
|
3319
|
+
"nullable": false,
|
|
3320
|
+
"unique": false,
|
|
3321
|
+
"length": null,
|
|
3322
|
+
"precision": null,
|
|
3323
|
+
"scale": null,
|
|
3324
|
+
"default": null,
|
|
3325
|
+
"comment": null,
|
|
3326
|
+
"enumItems": [],
|
|
3327
|
+
"mappedType": "uuid"
|
|
3328
|
+
},
|
|
3329
|
+
"expected_qty": {
|
|
3330
|
+
"name": "expected_qty",
|
|
3331
|
+
"type": "numeric(16,4)",
|
|
3332
|
+
"unsigned": false,
|
|
3333
|
+
"autoincrement": false,
|
|
3334
|
+
"primary": false,
|
|
3335
|
+
"nullable": false,
|
|
3336
|
+
"unique": false,
|
|
3337
|
+
"length": null,
|
|
3338
|
+
"precision": 16,
|
|
3339
|
+
"scale": 4,
|
|
3340
|
+
"default": null,
|
|
3341
|
+
"comment": null,
|
|
3342
|
+
"enumItems": [],
|
|
3343
|
+
"mappedType": "decimal"
|
|
3344
|
+
},
|
|
3345
|
+
"received_qty": {
|
|
3346
|
+
"name": "received_qty",
|
|
3347
|
+
"type": "numeric(16,4)",
|
|
3348
|
+
"unsigned": false,
|
|
3349
|
+
"autoincrement": false,
|
|
3350
|
+
"primary": false,
|
|
3351
|
+
"nullable": false,
|
|
3352
|
+
"unique": false,
|
|
3353
|
+
"length": null,
|
|
3354
|
+
"precision": 16,
|
|
3355
|
+
"scale": 4,
|
|
3356
|
+
"default": "'0'",
|
|
3357
|
+
"comment": null,
|
|
3358
|
+
"enumItems": [],
|
|
3359
|
+
"mappedType": "decimal"
|
|
3360
|
+
},
|
|
3361
|
+
"lot_number": {
|
|
3362
|
+
"name": "lot_number",
|
|
3363
|
+
"type": "text",
|
|
3364
|
+
"unsigned": false,
|
|
3365
|
+
"autoincrement": false,
|
|
3366
|
+
"primary": false,
|
|
3367
|
+
"nullable": true,
|
|
3368
|
+
"unique": false,
|
|
3369
|
+
"length": null,
|
|
3370
|
+
"precision": null,
|
|
3371
|
+
"scale": null,
|
|
3372
|
+
"default": null,
|
|
3373
|
+
"comment": null,
|
|
3374
|
+
"enumItems": [],
|
|
3375
|
+
"mappedType": "text"
|
|
3376
|
+
},
|
|
3377
|
+
"serial_numbers": {
|
|
3378
|
+
"name": "serial_numbers",
|
|
3379
|
+
"type": "jsonb",
|
|
3380
|
+
"unsigned": false,
|
|
3381
|
+
"autoincrement": false,
|
|
3382
|
+
"primary": false,
|
|
3383
|
+
"nullable": true,
|
|
3384
|
+
"unique": false,
|
|
3385
|
+
"length": null,
|
|
3386
|
+
"precision": null,
|
|
3387
|
+
"scale": null,
|
|
3388
|
+
"default": null,
|
|
3389
|
+
"comment": null,
|
|
3390
|
+
"enumItems": [],
|
|
3391
|
+
"mappedType": "json"
|
|
3392
|
+
},
|
|
3393
|
+
"qc_status": {
|
|
3394
|
+
"name": "qc_status",
|
|
3395
|
+
"type": "text",
|
|
3396
|
+
"unsigned": false,
|
|
3397
|
+
"autoincrement": false,
|
|
3398
|
+
"primary": false,
|
|
3399
|
+
"nullable": false,
|
|
3400
|
+
"unique": false,
|
|
3401
|
+
"length": null,
|
|
3402
|
+
"precision": null,
|
|
3403
|
+
"scale": null,
|
|
3404
|
+
"default": "'pending'",
|
|
3405
|
+
"comment": null,
|
|
3406
|
+
"enumItems": [],
|
|
3407
|
+
"mappedType": "text"
|
|
3408
|
+
},
|
|
3409
|
+
"target_staging_location_id": {
|
|
3410
|
+
"name": "target_staging_location_id",
|
|
3411
|
+
"type": "uuid",
|
|
3412
|
+
"unsigned": false,
|
|
3413
|
+
"autoincrement": false,
|
|
3414
|
+
"primary": false,
|
|
3415
|
+
"nullable": true,
|
|
3416
|
+
"unique": false,
|
|
3417
|
+
"length": null,
|
|
3418
|
+
"precision": null,
|
|
3419
|
+
"scale": null,
|
|
3420
|
+
"default": null,
|
|
3421
|
+
"comment": null,
|
|
3422
|
+
"enumItems": [],
|
|
3423
|
+
"mappedType": "uuid"
|
|
3424
|
+
},
|
|
3425
|
+
"rejection_reason": {
|
|
3426
|
+
"name": "rejection_reason",
|
|
3427
|
+
"type": "text",
|
|
3428
|
+
"unsigned": false,
|
|
3429
|
+
"autoincrement": false,
|
|
3430
|
+
"primary": false,
|
|
3431
|
+
"nullable": true,
|
|
3432
|
+
"unique": false,
|
|
3433
|
+
"length": null,
|
|
3434
|
+
"precision": null,
|
|
3435
|
+
"scale": null,
|
|
3436
|
+
"default": null,
|
|
3437
|
+
"comment": null,
|
|
3438
|
+
"enumItems": [],
|
|
3439
|
+
"mappedType": "text"
|
|
3440
|
+
}
|
|
3441
|
+
},
|
|
3442
|
+
"indexes": [
|
|
3443
|
+
{
|
|
3444
|
+
"keyName": "wms_receiving_lines_org_variant_qc_idx",
|
|
3445
|
+
"columnNames": [
|
|
3446
|
+
"organization_id",
|
|
3447
|
+
"catalog_variant_id",
|
|
3448
|
+
"qc_status"
|
|
3449
|
+
],
|
|
3450
|
+
"composite": true,
|
|
3451
|
+
"constraint": false,
|
|
3452
|
+
"primary": false,
|
|
3453
|
+
"unique": false
|
|
3454
|
+
},
|
|
3455
|
+
{
|
|
3456
|
+
"keyName": "wms_receiving_lines_org_asn_idx",
|
|
3457
|
+
"columnNames": [
|
|
3458
|
+
"organization_id",
|
|
3459
|
+
"asn_id"
|
|
3460
|
+
],
|
|
3461
|
+
"composite": true,
|
|
3462
|
+
"constraint": false,
|
|
3463
|
+
"primary": false,
|
|
3464
|
+
"unique": false
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
"keyName": "wms_receiving_lines_org_tenant_idx",
|
|
3468
|
+
"columnNames": [
|
|
3469
|
+
"organization_id",
|
|
3470
|
+
"tenant_id"
|
|
3471
|
+
],
|
|
3472
|
+
"composite": true,
|
|
3473
|
+
"constraint": false,
|
|
3474
|
+
"primary": false,
|
|
3475
|
+
"unique": false
|
|
3476
|
+
},
|
|
3477
|
+
{
|
|
3478
|
+
"keyName": "wms_receiving_lines_pkey",
|
|
3479
|
+
"columnNames": [
|
|
3480
|
+
"id"
|
|
3481
|
+
],
|
|
3482
|
+
"composite": false,
|
|
3483
|
+
"constraint": true,
|
|
3484
|
+
"primary": true,
|
|
3485
|
+
"unique": true
|
|
3486
|
+
}
|
|
3487
|
+
],
|
|
3488
|
+
"checks": [],
|
|
3489
|
+
"foreignKeys": {
|
|
3490
|
+
"wms_receiving_lines_asn_id_foreign": {
|
|
3491
|
+
"constraintName": "wms_receiving_lines_asn_id_foreign",
|
|
3492
|
+
"columnNames": [
|
|
3493
|
+
"asn_id"
|
|
3494
|
+
],
|
|
3495
|
+
"localTableName": "public.wms_receiving_lines",
|
|
3496
|
+
"referencedColumnNames": [
|
|
3497
|
+
"id"
|
|
3498
|
+
],
|
|
3499
|
+
"referencedTableName": "public.wms_asns",
|
|
3500
|
+
"updateRule": "no action",
|
|
3501
|
+
"deleteRule": "no action"
|
|
3502
|
+
}
|
|
3503
|
+
},
|
|
3504
|
+
"nativeEnums": {}
|
|
3505
|
+
},
|
|
3506
|
+
{
|
|
3507
|
+
"name": "wms_putaway_tasks",
|
|
3508
|
+
"schema": "public",
|
|
3509
|
+
"columns": {
|
|
3510
|
+
"id": {
|
|
3511
|
+
"name": "id",
|
|
3512
|
+
"type": "uuid",
|
|
3513
|
+
"unsigned": false,
|
|
3514
|
+
"autoincrement": false,
|
|
3515
|
+
"primary": true,
|
|
3516
|
+
"nullable": false,
|
|
3517
|
+
"unique": false,
|
|
3518
|
+
"length": null,
|
|
3519
|
+
"precision": null,
|
|
3520
|
+
"scale": null,
|
|
3521
|
+
"default": "gen_random_uuid()",
|
|
3522
|
+
"comment": null,
|
|
3523
|
+
"enumItems": [],
|
|
3524
|
+
"mappedType": "uuid"
|
|
3525
|
+
},
|
|
3526
|
+
"organization_id": {
|
|
3527
|
+
"name": "organization_id",
|
|
3528
|
+
"type": "uuid",
|
|
3529
|
+
"unsigned": false,
|
|
3530
|
+
"autoincrement": false,
|
|
3531
|
+
"primary": false,
|
|
3532
|
+
"nullable": false,
|
|
3533
|
+
"unique": false,
|
|
3534
|
+
"length": null,
|
|
3535
|
+
"precision": null,
|
|
3536
|
+
"scale": null,
|
|
3537
|
+
"default": null,
|
|
3538
|
+
"comment": null,
|
|
3539
|
+
"enumItems": [],
|
|
3540
|
+
"mappedType": "uuid"
|
|
3541
|
+
},
|
|
3542
|
+
"tenant_id": {
|
|
3543
|
+
"name": "tenant_id",
|
|
3544
|
+
"type": "uuid",
|
|
3545
|
+
"unsigned": false,
|
|
3546
|
+
"autoincrement": false,
|
|
3547
|
+
"primary": false,
|
|
3548
|
+
"nullable": false,
|
|
3549
|
+
"unique": false,
|
|
3550
|
+
"length": null,
|
|
3551
|
+
"precision": null,
|
|
3552
|
+
"scale": null,
|
|
3553
|
+
"default": null,
|
|
3554
|
+
"comment": null,
|
|
3555
|
+
"enumItems": [],
|
|
3556
|
+
"mappedType": "uuid"
|
|
3557
|
+
},
|
|
3558
|
+
"metadata": {
|
|
3559
|
+
"name": "metadata",
|
|
3560
|
+
"type": "jsonb",
|
|
3561
|
+
"unsigned": false,
|
|
3562
|
+
"autoincrement": false,
|
|
3563
|
+
"primary": false,
|
|
3564
|
+
"nullable": true,
|
|
3565
|
+
"unique": false,
|
|
3566
|
+
"length": null,
|
|
3567
|
+
"precision": null,
|
|
3568
|
+
"scale": null,
|
|
3569
|
+
"default": null,
|
|
3570
|
+
"comment": null,
|
|
3571
|
+
"enumItems": [],
|
|
3572
|
+
"mappedType": "json"
|
|
3573
|
+
},
|
|
3574
|
+
"created_at": {
|
|
3575
|
+
"name": "created_at",
|
|
3576
|
+
"type": "timestamptz",
|
|
3577
|
+
"unsigned": false,
|
|
3578
|
+
"autoincrement": false,
|
|
3579
|
+
"primary": false,
|
|
3580
|
+
"nullable": false,
|
|
3581
|
+
"unique": false,
|
|
3582
|
+
"length": 6,
|
|
3583
|
+
"precision": null,
|
|
3584
|
+
"scale": null,
|
|
3585
|
+
"default": null,
|
|
3586
|
+
"comment": null,
|
|
3587
|
+
"enumItems": [],
|
|
3588
|
+
"mappedType": "datetime"
|
|
3589
|
+
},
|
|
3590
|
+
"updated_at": {
|
|
3591
|
+
"name": "updated_at",
|
|
3592
|
+
"type": "timestamptz",
|
|
3593
|
+
"unsigned": false,
|
|
3594
|
+
"autoincrement": false,
|
|
3595
|
+
"primary": false,
|
|
3596
|
+
"nullable": false,
|
|
3597
|
+
"unique": false,
|
|
3598
|
+
"length": 6,
|
|
3599
|
+
"precision": null,
|
|
3600
|
+
"scale": null,
|
|
3601
|
+
"default": null,
|
|
3602
|
+
"comment": null,
|
|
3603
|
+
"enumItems": [],
|
|
3604
|
+
"mappedType": "datetime"
|
|
3605
|
+
},
|
|
3606
|
+
"deleted_at": {
|
|
3607
|
+
"name": "deleted_at",
|
|
3608
|
+
"type": "timestamptz",
|
|
3609
|
+
"unsigned": false,
|
|
3610
|
+
"autoincrement": false,
|
|
3611
|
+
"primary": false,
|
|
3612
|
+
"nullable": true,
|
|
3613
|
+
"unique": false,
|
|
3614
|
+
"length": 6,
|
|
3615
|
+
"precision": null,
|
|
3616
|
+
"scale": null,
|
|
3617
|
+
"default": null,
|
|
3618
|
+
"comment": null,
|
|
3619
|
+
"enumItems": [],
|
|
3620
|
+
"mappedType": "datetime"
|
|
3621
|
+
},
|
|
3622
|
+
"warehouse_id": {
|
|
3623
|
+
"name": "warehouse_id",
|
|
3624
|
+
"type": "uuid",
|
|
3625
|
+
"unsigned": false,
|
|
3626
|
+
"autoincrement": false,
|
|
3627
|
+
"primary": false,
|
|
3628
|
+
"nullable": false,
|
|
3629
|
+
"unique": false,
|
|
3630
|
+
"length": null,
|
|
3631
|
+
"precision": null,
|
|
3632
|
+
"scale": null,
|
|
3633
|
+
"default": null,
|
|
3634
|
+
"comment": null,
|
|
3635
|
+
"enumItems": [],
|
|
3636
|
+
"mappedType": "uuid"
|
|
3637
|
+
},
|
|
3638
|
+
"source_location_id": {
|
|
3639
|
+
"name": "source_location_id",
|
|
3640
|
+
"type": "uuid",
|
|
3641
|
+
"unsigned": false,
|
|
3642
|
+
"autoincrement": false,
|
|
3643
|
+
"primary": false,
|
|
3644
|
+
"nullable": false,
|
|
3645
|
+
"unique": false,
|
|
3646
|
+
"length": null,
|
|
3647
|
+
"precision": null,
|
|
3648
|
+
"scale": null,
|
|
3649
|
+
"default": null,
|
|
3650
|
+
"comment": null,
|
|
3651
|
+
"enumItems": [],
|
|
3652
|
+
"mappedType": "uuid"
|
|
3653
|
+
},
|
|
3654
|
+
"target_location_id": {
|
|
3655
|
+
"name": "target_location_id",
|
|
3656
|
+
"type": "uuid",
|
|
3657
|
+
"unsigned": false,
|
|
3658
|
+
"autoincrement": false,
|
|
3659
|
+
"primary": false,
|
|
3660
|
+
"nullable": true,
|
|
3661
|
+
"unique": false,
|
|
3662
|
+
"length": null,
|
|
3663
|
+
"precision": null,
|
|
3664
|
+
"scale": null,
|
|
3665
|
+
"default": null,
|
|
3666
|
+
"comment": null,
|
|
3667
|
+
"enumItems": [],
|
|
3668
|
+
"mappedType": "uuid"
|
|
3669
|
+
},
|
|
3670
|
+
"catalog_variant_id": {
|
|
3671
|
+
"name": "catalog_variant_id",
|
|
3672
|
+
"type": "uuid",
|
|
3673
|
+
"unsigned": false,
|
|
3674
|
+
"autoincrement": false,
|
|
3675
|
+
"primary": false,
|
|
3676
|
+
"nullable": false,
|
|
3677
|
+
"unique": false,
|
|
3678
|
+
"length": null,
|
|
3679
|
+
"precision": null,
|
|
3680
|
+
"scale": null,
|
|
3681
|
+
"default": null,
|
|
3682
|
+
"comment": null,
|
|
3683
|
+
"enumItems": [],
|
|
3684
|
+
"mappedType": "uuid"
|
|
3685
|
+
},
|
|
3686
|
+
"lot_id": {
|
|
3687
|
+
"name": "lot_id",
|
|
3688
|
+
"type": "uuid",
|
|
3689
|
+
"unsigned": false,
|
|
3690
|
+
"autoincrement": false,
|
|
3691
|
+
"primary": false,
|
|
3692
|
+
"nullable": true,
|
|
3693
|
+
"unique": false,
|
|
3694
|
+
"length": null,
|
|
3695
|
+
"precision": null,
|
|
3696
|
+
"scale": null,
|
|
3697
|
+
"default": null,
|
|
3698
|
+
"comment": null,
|
|
3699
|
+
"enumItems": [],
|
|
3700
|
+
"mappedType": "uuid"
|
|
3701
|
+
},
|
|
3702
|
+
"serial_number": {
|
|
3703
|
+
"name": "serial_number",
|
|
3704
|
+
"type": "text",
|
|
3705
|
+
"unsigned": false,
|
|
3706
|
+
"autoincrement": false,
|
|
3707
|
+
"primary": false,
|
|
3708
|
+
"nullable": true,
|
|
3709
|
+
"unique": false,
|
|
3710
|
+
"length": null,
|
|
3711
|
+
"precision": null,
|
|
3712
|
+
"scale": null,
|
|
3713
|
+
"default": null,
|
|
3714
|
+
"comment": null,
|
|
3715
|
+
"enumItems": [],
|
|
3716
|
+
"mappedType": "text"
|
|
3717
|
+
},
|
|
3718
|
+
"quantity": {
|
|
3719
|
+
"name": "quantity",
|
|
3720
|
+
"type": "numeric(16,4)",
|
|
3721
|
+
"unsigned": false,
|
|
3722
|
+
"autoincrement": false,
|
|
3723
|
+
"primary": false,
|
|
3724
|
+
"nullable": false,
|
|
3725
|
+
"unique": false,
|
|
3726
|
+
"length": null,
|
|
3727
|
+
"precision": 16,
|
|
3728
|
+
"scale": 4,
|
|
3729
|
+
"default": null,
|
|
3730
|
+
"comment": null,
|
|
3731
|
+
"enumItems": [],
|
|
3732
|
+
"mappedType": "decimal"
|
|
3733
|
+
},
|
|
3734
|
+
"status": {
|
|
3735
|
+
"name": "status",
|
|
3736
|
+
"type": "text",
|
|
3737
|
+
"unsigned": false,
|
|
3738
|
+
"autoincrement": false,
|
|
3739
|
+
"primary": false,
|
|
3740
|
+
"nullable": false,
|
|
3741
|
+
"unique": false,
|
|
3742
|
+
"length": null,
|
|
3743
|
+
"precision": null,
|
|
3744
|
+
"scale": null,
|
|
3745
|
+
"default": "'open'",
|
|
3746
|
+
"comment": null,
|
|
3747
|
+
"enumItems": [],
|
|
3748
|
+
"mappedType": "text"
|
|
3749
|
+
},
|
|
3750
|
+
"assigned_to": {
|
|
3751
|
+
"name": "assigned_to",
|
|
3752
|
+
"type": "uuid",
|
|
3753
|
+
"unsigned": false,
|
|
3754
|
+
"autoincrement": false,
|
|
3755
|
+
"primary": false,
|
|
3756
|
+
"nullable": true,
|
|
3757
|
+
"unique": false,
|
|
3758
|
+
"length": null,
|
|
3759
|
+
"precision": null,
|
|
3760
|
+
"scale": null,
|
|
3761
|
+
"default": null,
|
|
3762
|
+
"comment": null,
|
|
3763
|
+
"enumItems": [],
|
|
3764
|
+
"mappedType": "uuid"
|
|
3765
|
+
},
|
|
3766
|
+
"priority": {
|
|
3767
|
+
"name": "priority",
|
|
3768
|
+
"type": "int",
|
|
3769
|
+
"unsigned": false,
|
|
3770
|
+
"autoincrement": false,
|
|
3771
|
+
"primary": false,
|
|
3772
|
+
"nullable": false,
|
|
3773
|
+
"unique": false,
|
|
3774
|
+
"length": null,
|
|
3775
|
+
"precision": null,
|
|
3776
|
+
"scale": null,
|
|
3777
|
+
"default": "5",
|
|
3778
|
+
"comment": null,
|
|
3779
|
+
"enumItems": [],
|
|
3780
|
+
"mappedType": "integer"
|
|
3781
|
+
},
|
|
3782
|
+
"putaway_key": {
|
|
3783
|
+
"name": "putaway_key",
|
|
3784
|
+
"type": "text",
|
|
3785
|
+
"unsigned": false,
|
|
3786
|
+
"autoincrement": false,
|
|
3787
|
+
"primary": false,
|
|
3788
|
+
"nullable": true,
|
|
3789
|
+
"unique": false,
|
|
3790
|
+
"length": null,
|
|
3791
|
+
"precision": null,
|
|
3792
|
+
"scale": null,
|
|
3793
|
+
"default": null,
|
|
3794
|
+
"comment": null,
|
|
3795
|
+
"enumItems": [],
|
|
3796
|
+
"mappedType": "text"
|
|
3797
|
+
}
|
|
3798
|
+
},
|
|
3799
|
+
"indexes": [
|
|
3800
|
+
{
|
|
3801
|
+
"keyName": "wms_putaway_tasks_org_warehouse_status_priority_idx",
|
|
3802
|
+
"columnNames": [
|
|
3803
|
+
"organization_id",
|
|
3804
|
+
"warehouse_id",
|
|
3805
|
+
"status",
|
|
3806
|
+
"priority"
|
|
3807
|
+
],
|
|
3808
|
+
"composite": true,
|
|
3809
|
+
"constraint": false,
|
|
3810
|
+
"primary": false,
|
|
3811
|
+
"unique": false
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
"keyName": "wms_putaway_tasks_org_assigned_status_idx",
|
|
3815
|
+
"columnNames": [
|
|
3816
|
+
"organization_id",
|
|
3817
|
+
"assigned_to",
|
|
3818
|
+
"status"
|
|
3819
|
+
],
|
|
3820
|
+
"composite": true,
|
|
3821
|
+
"constraint": false,
|
|
3822
|
+
"primary": false,
|
|
3823
|
+
"unique": false
|
|
3824
|
+
},
|
|
3825
|
+
{
|
|
3826
|
+
"keyName": "wms_putaway_tasks_org_tenant_idx",
|
|
3827
|
+
"columnNames": [
|
|
3828
|
+
"organization_id",
|
|
3829
|
+
"tenant_id"
|
|
3830
|
+
],
|
|
3831
|
+
"composite": true,
|
|
3832
|
+
"constraint": false,
|
|
3833
|
+
"primary": false,
|
|
3834
|
+
"unique": false
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
"keyName": "wms_putaway_tasks_org_putaway_key_unique_idx",
|
|
3838
|
+
"columnNames": [
|
|
3839
|
+
"organization_id",
|
|
3840
|
+
"putaway_key"
|
|
3841
|
+
],
|
|
3842
|
+
"composite": true,
|
|
3843
|
+
"constraint": false,
|
|
3844
|
+
"primary": false,
|
|
3845
|
+
"unique": true,
|
|
3846
|
+
"expression": "create unique index \"wms_putaway_tasks_org_putaway_key_unique_idx\" on \"wms_putaway_tasks\" (\"organization_id\", \"putaway_key\") where putaway_key is not null and deleted_at is null and status <> 'cancelled'"
|
|
3847
|
+
},
|
|
3848
|
+
{
|
|
3849
|
+
"keyName": "wms_putaway_tasks_pkey",
|
|
3850
|
+
"columnNames": [
|
|
3851
|
+
"id"
|
|
3852
|
+
],
|
|
3853
|
+
"composite": false,
|
|
3854
|
+
"constraint": true,
|
|
3855
|
+
"primary": true,
|
|
3856
|
+
"unique": true
|
|
3857
|
+
}
|
|
3858
|
+
],
|
|
3859
|
+
"checks": [],
|
|
3860
|
+
"foreignKeys": {
|
|
3861
|
+
"wms_putaway_tasks_warehouse_id_foreign": {
|
|
3862
|
+
"constraintName": "wms_putaway_tasks_warehouse_id_foreign",
|
|
3863
|
+
"columnNames": [
|
|
3864
|
+
"warehouse_id"
|
|
3865
|
+
],
|
|
3866
|
+
"localTableName": "public.wms_putaway_tasks",
|
|
3867
|
+
"referencedColumnNames": [
|
|
3868
|
+
"id"
|
|
3869
|
+
],
|
|
3870
|
+
"referencedTableName": "public.wms_warehouses",
|
|
3871
|
+
"updateRule": "no action",
|
|
3872
|
+
"deleteRule": "no action"
|
|
3873
|
+
}
|
|
3874
|
+
},
|
|
3875
|
+
"nativeEnums": {}
|
|
2876
3876
|
}
|
|
2877
3877
|
],
|
|
2878
3878
|
"views": [],
|