@@ -6051,7 +6051,7 @@ CREATE TABLE public.arch_materialflowresources_position (
6051
6051
qualityrating character varying(255),
6052
6052
pickingdate timestamp without time zone,
6053
6053
pickingworker_id bigint,
6054
- wmsposition_id bigint,
6054
+ documentpart_id bigint,
6055
6055
archived boolean DEFAULT false
6056
6056
);
6057
6057
@@ -20824,7 +20824,7 @@ CREATE TABLE public.materialflowresources_position (
20824
20824
qualityrating character varying(255),
20825
20825
pickingdate timestamp without time zone,
20826
20826
pickingworker_id bigint,
20827
- wmsposition_id bigint
20827
+ documentpart_id bigint
20828
20828
);
20829
20829
20830
20830
@@ -22025,7 +22025,8 @@ CREATE TABLE public.mobilewms_wmsdocumentpart (
22025
22025
pickingworker character varying(255),
22026
22026
document_id bigint,
22027
22027
parts integer,
22028
- type character varying(255) NOT NULL
22028
+ type character varying(255) NOT NULL,
22029
+ documentdate timestamp without time zone
22029
22030
);
22030
22031
22031
22032
@@ -22048,46 +22049,6 @@ CREATE SEQUENCE public.mobilewms_wmsdocumentpart_id_seq
22048
22049
ALTER SEQUENCE public.mobilewms_wmsdocumentpart_id_seq OWNED BY public.mobilewms_wmsdocumentpart.id;
22049
22050
22050
22051
22051
- --
22052
- -- Name: mobilewms_wmsposition; Type: TABLE; Schema: public; Owner: -
22053
- --
22054
-
22055
- CREATE TABLE public.mobilewms_wmsposition (
22056
- id bigint NOT NULL,
22057
- productnumber character varying(255),
22058
- storagelocationnumber character varying(255),
22059
- batchnumber character varying(255),
22060
- cartons numeric(14,5),
22061
- rest numeric(14,5),
22062
- quantity numeric(14,5),
22063
- conversion numeric(12,5),
22064
- unit character varying(255),
22065
- pickingdate timestamp without time zone,
22066
- documentpart_id bigint NOT NULL,
22067
- locationnumber character varying(255),
22068
- productname character varying(1024)
22069
- );
22070
-
22071
-
22072
- --
22073
- -- Name: mobilewms_wmsposition_id_seq; Type: SEQUENCE; Schema: public; Owner: -
22074
- --
22075
-
22076
- CREATE SEQUENCE public.mobilewms_wmsposition_id_seq
22077
- START WITH 1
22078
- INCREMENT BY 1
22079
- NO MINVALUE
22080
- NO MAXVALUE
22081
- CACHE 1;
22082
-
22083
-
22084
- --
22085
- -- Name: mobilewms_wmsposition_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
22086
- --
22087
-
22088
- ALTER SEQUENCE public.mobilewms_wmsposition_id_seq OWNED BY public.mobilewms_wmsposition.id;
22089
-
22090
-
22091
22052
--
22092
22053
-- Name: model_card_number_seq; Type: SEQUENCE; Schema: public; Owner: -
22093
22054
--
@@ -35950,13 +35911,6 @@ ALTER TABLE ONLY public.materialrequirements_materialrequirementproduct ALTER CO
35950
35911
ALTER TABLE ONLY public.mobilewms_wmsdocumentpart ALTER COLUMN id SET DEFAULT nextval('public.mobilewms_wmsdocumentpart_id_seq'::regclass);
35951
35912
35952
35913
35953
- --
35954
- -- Name: mobilewms_wmsposition id; Type: DEFAULT; Schema: public; Owner: -
35955
- --
35956
-
35957
- ALTER TABLE ONLY public.mobilewms_wmsposition ALTER COLUMN id SET DEFAULT nextval('public.mobilewms_wmsposition_id_seq'::regclass);
35958
-
35959
-
35960
35914
--
35961
35915
-- Name: nutritionfacts_nutrientcalculation id; Type: DEFAULT; Schema: public; Owner: -
35962
35916
--
@@ -38057,7 +38011,7 @@ COPY public.arch_materialflowresources_documentstatechange (id, dateandtime, doc
38057
38011
-- Data for Name: arch_materialflowresources_position; Type: TABLE DATA; Schema: public; Owner: -
38058
38012
--
38059
38013
38060
- COPY public.arch_materialflowresources_position (id, document_id, product_id, quantity, price, productiondate, expirationdate, number, resource_id, givenunit, givenquantity, entityversion, storagelocation_id, conversion, palletnumber_id, typeofpallet, waste, resourcereceiptdocument, lastresource, resourcenumber, externaldocumentnumber, orderid, sellingprice, batch_id, qualityrating, pickingdate, pickingworker_id, wmsposition_id , archived) FROM stdin;
38014
+ COPY public.arch_materialflowresources_position (id, document_id, product_id, quantity, price, productiondate, expirationdate, number, resource_id, givenunit, givenquantity, entityversion, storagelocation_id, conversion, palletnumber_id, typeofpallet, waste, resourcereceiptdocument, lastresource, resourcenumber, externaldocumentnumber, orderid, sellingprice, batch_id, qualityrating, pickingdate, pickingworker_id, documentpart_id , archived) FROM stdin;
38061
38015
\.
38062
38016
38063
38017
@@ -42415,7 +42369,7 @@ COPY public.materialflowresources_palletmovehelper (id) FROM stdin;
42415
42369
-- Data for Name: materialflowresources_position; Type: TABLE DATA; Schema: public; Owner: -
42416
42370
--
42417
42371
42418
- COPY public.materialflowresources_position (id, document_id, product_id, quantity, price, productiondate, expirationdate, number, resource_id, givenunit, givenquantity, entityversion, storagelocation_id, conversion, palletnumber_id, typeofpallet, waste, resourcereceiptdocument, lastresource, resourcenumber, externaldocumentnumber, orderid, sellingprice, batch_id, qualityrating, pickingdate, pickingworker_id, wmsposition_id ) FROM stdin;
42372
+ COPY public.materialflowresources_position (id, document_id, product_id, quantity, price, productiondate, expirationdate, number, resource_id, givenunit, givenquantity, entityversion, storagelocation_id, conversion, palletnumber_id, typeofpallet, waste, resourcereceiptdocument, lastresource, resourcenumber, externaldocumentnumber, orderid, sellingprice, batch_id, qualityrating, pickingdate, pickingworker_id, documentpart_id ) FROM stdin;
42419
42373
\.
42420
42374
42421
42375
@@ -42591,15 +42545,7 @@ COPY public.materialrequirements_materialrequirementproduct (id, materialrequire
42591
42545
-- Data for Name: mobilewms_wmsdocumentpart; Type: TABLE DATA; Schema: public; Owner: -
42592
42546
--
42593
42547
42594
- COPY public.mobilewms_wmsdocumentpart (id, number, part, company, stateinwms, pickingworker, document_id, parts, type) FROM stdin;
42595
- \.
42596
-
42597
-
42598
- --
42599
- -- Data for Name: mobilewms_wmsposition; Type: TABLE DATA; Schema: public; Owner: -
42600
- --
42601
-
42602
- COPY public.mobilewms_wmsposition (id, productnumber, storagelocationnumber, batchnumber, cartons, rest, quantity, conversion, unit, pickingdate, documentpart_id, locationnumber, productname) FROM stdin;
42548
+ COPY public.mobilewms_wmsdocumentpart (id, number, part, company, stateinwms, pickingworker, document_id, parts, type, documentdate) FROM stdin;
42603
42549
\.
42604
42550
42605
42551
@@ -48427,13 +48373,6 @@ SELECT pg_catalog.setval('public.materialrequirements_materialrequirementproduct
48427
48373
SELECT pg_catalog.setval('public.mobilewms_wmsdocumentpart_id_seq', 1, false);
48428
48374
48429
48375
48430
- --
48431
- -- Name: mobilewms_wmsposition_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
48432
- --
48433
-
48434
- SELECT pg_catalog.setval('public.mobilewms_wmsposition_id_seq', 1, false);
48435
-
48436
-
48437
48376
--
48438
48377
-- Name: model_card_number_seq; Type: SEQUENCE SET; Schema: public; Owner: -
48439
48378
--
@@ -52997,14 +52936,6 @@ ALTER TABLE ONLY public.mobilewms_wmsdocumentpart
52997
52936
ADD CONSTRAINT esilco_wmsdocumentpart_pkey PRIMARY KEY (id);
52998
52937
52999
52938
53000
- --
53001
- -- Name: mobilewms_wmsposition esilco_wmsposition_pkey; Type: CONSTRAINT; Schema: public; Owner: -
53002
- --
53003
-
53004
- ALTER TABLE ONLY public.mobilewms_wmsposition
53005
- ADD CONSTRAINT esilco_wmsposition_pkey PRIMARY KEY (id);
53006
-
53007
-
53008
52939
--
53009
52940
-- Name: goodfood_extrusionprotocol extrusionprotocol_externalnumber_unique; Type: CONSTRAINT; Schema: public; Owner: -
53010
52941
--
@@ -64084,6 +64015,14 @@ ALTER TABLE ONLY public.materialflowresources_position
64084
64015
ADD CONSTRAINT position_document_fkey FOREIGN KEY (document_id) REFERENCES public.materialflowresources_document(id) DEFERRABLE;
64085
64016
64086
64017
64018
+ --
64019
+ -- Name: materialflowresources_position position_documentpart_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
64020
+ --
64021
+
64022
+ ALTER TABLE ONLY public.materialflowresources_position
64023
+ ADD CONSTRAINT position_documentpart_fkey FOREIGN KEY (documentpart_id) REFERENCES public.mobilewms_wmsdocumentpart(id) DEFERRABLE;
64024
+
64025
+
64087
64026
--
64088
64027
-- Name: materialflowresources_position position_palletnumber_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
64089
64028
--
@@ -64140,14 +64079,6 @@ ALTER TABLE ONLY public.masterorders_position_warehousestatehelper
64140
64079
ADD CONSTRAINT position_warehousestatehelper_product_fkey FOREIGN KEY (product_id) REFERENCES public.basic_product(id) DEFERRABLE;
64141
64080
64142
64081
64143
- --
64144
- -- Name: materialflowresources_position position_wmsposition_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
64145
- --
64146
-
64147
- ALTER TABLE ONLY public.materialflowresources_position
64148
- ADD CONSTRAINT position_wmsposition_fkey FOREIGN KEY (wmsposition_id) REFERENCES public.mobilewms_wmsposition(id) DEFERRABLE;
64149
-
64150
-
64151
64082
--
64152
64083
-- Name: materialflowresources_positionattributevalue positionattributevalue_attribute_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
64153
64084
--
@@ -67820,14 +67751,6 @@ ALTER TABLE ONLY public.mobilewms_wmsdocumentpart
67820
67751
ADD CONSTRAINT wmsdocumentpart_document_fkey FOREIGN KEY (document_id) REFERENCES public.materialflowresources_document(id) DEFERRABLE;
67821
67752
67822
67753
67823
- --
67824
- -- Name: mobilewms_wmsposition wmsposition_documentpart_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
67825
- --
67826
-
67827
- ALTER TABLE ONLY public.mobilewms_wmsposition
67828
- ADD CONSTRAINT wmsposition_documentpart_fkey FOREIGN KEY (documentpart_id) REFERENCES public.mobilewms_wmsdocumentpart(id) DEFERRABLE;
67829
-
67830
-
67831
67754
--
67832
67755
-- Name: cmmsmachineparts_staffworktime worker_maintenanceevent_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
67833
67756
--
0 commit comments