Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Dec 20, 2024
2 parents ddc7f14 + f2db5de commit 28e650a
Show file tree
Hide file tree
Showing 10 changed files with 123 additions and 738 deletions.
107 changes: 15 additions & 92 deletions mes-application/src/main/resources/schema/aps_db_en.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6051,7 +6051,7 @@ CREATE TABLE public.arch_materialflowresources_position (
qualityrating character varying(255),
pickingdate timestamp without time zone,
pickingworker_id bigint,
wmsposition_id bigint,
documentpart_id bigint,
archived boolean DEFAULT false
);

Expand Down Expand Up @@ -20824,7 +20824,7 @@ CREATE TABLE public.materialflowresources_position (
qualityrating character varying(255),
pickingdate timestamp without time zone,
pickingworker_id bigint,
wmsposition_id bigint
documentpart_id bigint
);


Expand Down Expand Up @@ -22025,7 +22025,8 @@ CREATE TABLE public.mobilewms_wmsdocumentpart (
pickingworker character varying(255),
document_id bigint,
parts integer,
type character varying(255) NOT NULL
type character varying(255) NOT NULL,
documentdate timestamp without time zone
);


Expand All @@ -22048,46 +22049,6 @@ CREATE SEQUENCE public.mobilewms_wmsdocumentpart_id_seq
ALTER SEQUENCE public.mobilewms_wmsdocumentpart_id_seq OWNED BY public.mobilewms_wmsdocumentpart.id;


--
-- Name: mobilewms_wmsposition; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public.mobilewms_wmsposition (
id bigint NOT NULL,
productnumber character varying(255),
storagelocationnumber character varying(255),
batchnumber character varying(255),
cartons numeric(14,5),
rest numeric(14,5),
quantity numeric(14,5),
conversion numeric(12,5),
unit character varying(255),
pickingdate timestamp without time zone,
documentpart_id bigint NOT NULL,
locationnumber character varying(255),
productname character varying(1024)
);


--
-- Name: mobilewms_wmsposition_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE public.mobilewms_wmsposition_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


--
-- Name: mobilewms_wmsposition_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--

ALTER SEQUENCE public.mobilewms_wmsposition_id_seq OWNED BY public.mobilewms_wmsposition.id;


--
-- Name: model_card_number_seq; Type: SEQUENCE; Schema: public; Owner: -
--
Expand Down Expand Up @@ -35950,13 +35911,6 @@ ALTER TABLE ONLY public.materialrequirements_materialrequirementproduct ALTER CO
ALTER TABLE ONLY public.mobilewms_wmsdocumentpart ALTER COLUMN id SET DEFAULT nextval('public.mobilewms_wmsdocumentpart_id_seq'::regclass);


--
-- Name: mobilewms_wmsposition id; Type: DEFAULT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.mobilewms_wmsposition ALTER COLUMN id SET DEFAULT nextval('public.mobilewms_wmsposition_id_seq'::regclass);


--
-- Name: nutritionfacts_nutrientcalculation id; Type: DEFAULT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -38057,7 +38011,7 @@ COPY public.arch_materialflowresources_documentstatechange (id, dateandtime, doc
-- Data for Name: arch_materialflowresources_position; Type: TABLE DATA; Schema: public; Owner: -
--

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;
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;
\.


Expand Down Expand Up @@ -42415,7 +42369,7 @@ COPY public.materialflowresources_palletmovehelper (id) FROM stdin;
-- Data for Name: materialflowresources_position; Type: TABLE DATA; Schema: public; Owner: -
--

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;
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;
\.


Expand Down Expand Up @@ -42591,15 +42545,7 @@ COPY public.materialrequirements_materialrequirementproduct (id, materialrequire
-- Data for Name: mobilewms_wmsdocumentpart; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.mobilewms_wmsdocumentpart (id, number, part, company, stateinwms, pickingworker, document_id, parts, type) FROM stdin;
\.


--
-- Data for Name: mobilewms_wmsposition; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.mobilewms_wmsposition (id, productnumber, storagelocationnumber, batchnumber, cartons, rest, quantity, conversion, unit, pickingdate, documentpart_id, locationnumber, productname) FROM stdin;
COPY public.mobilewms_wmsdocumentpart (id, number, part, company, stateinwms, pickingworker, document_id, parts, type, documentdate) FROM stdin;
\.


Expand Down Expand Up @@ -48427,13 +48373,6 @@ SELECT pg_catalog.setval('public.materialrequirements_materialrequirementproduct
SELECT pg_catalog.setval('public.mobilewms_wmsdocumentpart_id_seq', 1, false);


--
-- Name: mobilewms_wmsposition_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--

SELECT pg_catalog.setval('public.mobilewms_wmsposition_id_seq', 1, false);


--
-- Name: model_card_number_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--
Expand Down Expand Up @@ -52997,14 +52936,6 @@ ALTER TABLE ONLY public.mobilewms_wmsdocumentpart
ADD CONSTRAINT esilco_wmsdocumentpart_pkey PRIMARY KEY (id);


--
-- Name: mobilewms_wmsposition esilco_wmsposition_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.mobilewms_wmsposition
ADD CONSTRAINT esilco_wmsposition_pkey PRIMARY KEY (id);


--
-- Name: goodfood_extrusionprotocol extrusionprotocol_externalnumber_unique; Type: CONSTRAINT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -64084,6 +64015,14 @@ ALTER TABLE ONLY public.materialflowresources_position
ADD CONSTRAINT position_document_fkey FOREIGN KEY (document_id) REFERENCES public.materialflowresources_document(id) DEFERRABLE;


--
-- Name: materialflowresources_position position_documentpart_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.materialflowresources_position
ADD CONSTRAINT position_documentpart_fkey FOREIGN KEY (documentpart_id) REFERENCES public.mobilewms_wmsdocumentpart(id) DEFERRABLE;


--
-- Name: materialflowresources_position position_palletnumber_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -64140,14 +64079,6 @@ ALTER TABLE ONLY public.masterorders_position_warehousestatehelper
ADD CONSTRAINT position_warehousestatehelper_product_fkey FOREIGN KEY (product_id) REFERENCES public.basic_product(id) DEFERRABLE;


--
-- Name: materialflowresources_position position_wmsposition_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.materialflowresources_position
ADD CONSTRAINT position_wmsposition_fkey FOREIGN KEY (wmsposition_id) REFERENCES public.mobilewms_wmsposition(id) DEFERRABLE;


--
-- Name: materialflowresources_positionattributevalue positionattributevalue_attribute_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -67820,14 +67751,6 @@ ALTER TABLE ONLY public.mobilewms_wmsdocumentpart
ADD CONSTRAINT wmsdocumentpart_document_fkey FOREIGN KEY (document_id) REFERENCES public.materialflowresources_document(id) DEFERRABLE;


--
-- Name: mobilewms_wmsposition wmsposition_documentpart_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.mobilewms_wmsposition
ADD CONSTRAINT wmsposition_documentpart_fkey FOREIGN KEY (documentpart_id) REFERENCES public.mobilewms_wmsdocumentpart(id) DEFERRABLE;


--
-- Name: cmmsmachineparts_staffworktime worker_maintenanceevent_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
Expand Down
107 changes: 15 additions & 92 deletions mes-application/src/main/resources/schema/aps_db_pl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6051,7 +6051,7 @@ CREATE TABLE public.arch_materialflowresources_position (
qualityrating character varying(255),
pickingdate timestamp without time zone,
pickingworker_id bigint,
wmsposition_id bigint,
documentpart_id bigint,
archived boolean DEFAULT false
);

Expand Down Expand Up @@ -20824,7 +20824,7 @@ CREATE TABLE public.materialflowresources_position (
qualityrating character varying(255),
pickingdate timestamp without time zone,
pickingworker_id bigint,
wmsposition_id bigint
documentpart_id bigint
);


Expand Down Expand Up @@ -22025,7 +22025,8 @@ CREATE TABLE public.mobilewms_wmsdocumentpart (
pickingworker character varying(255),
document_id bigint,
parts integer,
type character varying(255) NOT NULL
type character varying(255) NOT NULL,
documentdate timestamp without time zone
);


Expand All @@ -22048,46 +22049,6 @@ CREATE SEQUENCE public.mobilewms_wmsdocumentpart_id_seq
ALTER SEQUENCE public.mobilewms_wmsdocumentpart_id_seq OWNED BY public.mobilewms_wmsdocumentpart.id;


--
-- Name: mobilewms_wmsposition; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public.mobilewms_wmsposition (
id bigint NOT NULL,
productnumber character varying(255),
storagelocationnumber character varying(255),
batchnumber character varying(255),
cartons numeric(14,5),
rest numeric(14,5),
quantity numeric(14,5),
conversion numeric(12,5),
unit character varying(255),
pickingdate timestamp without time zone,
documentpart_id bigint NOT NULL,
locationnumber character varying(255),
productname character varying(1024)
);


--
-- Name: mobilewms_wmsposition_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE public.mobilewms_wmsposition_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


--
-- Name: mobilewms_wmsposition_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--

ALTER SEQUENCE public.mobilewms_wmsposition_id_seq OWNED BY public.mobilewms_wmsposition.id;


--
-- Name: model_card_number_seq; Type: SEQUENCE; Schema: public; Owner: -
--
Expand Down Expand Up @@ -35950,13 +35911,6 @@ ALTER TABLE ONLY public.materialrequirements_materialrequirementproduct ALTER CO
ALTER TABLE ONLY public.mobilewms_wmsdocumentpart ALTER COLUMN id SET DEFAULT nextval('public.mobilewms_wmsdocumentpart_id_seq'::regclass);


--
-- Name: mobilewms_wmsposition id; Type: DEFAULT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.mobilewms_wmsposition ALTER COLUMN id SET DEFAULT nextval('public.mobilewms_wmsposition_id_seq'::regclass);


--
-- Name: nutritionfacts_nutrientcalculation id; Type: DEFAULT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -38057,7 +38011,7 @@ COPY public.arch_materialflowresources_documentstatechange (id, dateandtime, doc
-- Data for Name: arch_materialflowresources_position; Type: TABLE DATA; Schema: public; Owner: -
--

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;
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;
\.


Expand Down Expand Up @@ -42415,7 +42369,7 @@ COPY public.materialflowresources_palletmovehelper (id) FROM stdin;
-- Data for Name: materialflowresources_position; Type: TABLE DATA; Schema: public; Owner: -
--

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;
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;
\.


Expand Down Expand Up @@ -42591,15 +42545,7 @@ COPY public.materialrequirements_materialrequirementproduct (id, materialrequire
-- Data for Name: mobilewms_wmsdocumentpart; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.mobilewms_wmsdocumentpart (id, number, part, company, stateinwms, pickingworker, document_id, parts, type) FROM stdin;
\.


--
-- Data for Name: mobilewms_wmsposition; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.mobilewms_wmsposition (id, productnumber, storagelocationnumber, batchnumber, cartons, rest, quantity, conversion, unit, pickingdate, documentpart_id, locationnumber, productname) FROM stdin;
COPY public.mobilewms_wmsdocumentpart (id, number, part, company, stateinwms, pickingworker, document_id, parts, type, documentdate) FROM stdin;
\.


Expand Down Expand Up @@ -48427,13 +48373,6 @@ SELECT pg_catalog.setval('public.materialrequirements_materialrequirementproduct
SELECT pg_catalog.setval('public.mobilewms_wmsdocumentpart_id_seq', 1, false);


--
-- Name: mobilewms_wmsposition_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--

SELECT pg_catalog.setval('public.mobilewms_wmsposition_id_seq', 1, false);


--
-- Name: model_card_number_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--
Expand Down Expand Up @@ -52997,14 +52936,6 @@ ALTER TABLE ONLY public.mobilewms_wmsdocumentpart
ADD CONSTRAINT esilco_wmsdocumentpart_pkey PRIMARY KEY (id);


--
-- Name: mobilewms_wmsposition esilco_wmsposition_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.mobilewms_wmsposition
ADD CONSTRAINT esilco_wmsposition_pkey PRIMARY KEY (id);


--
-- Name: goodfood_extrusionprotocol extrusionprotocol_externalnumber_unique; Type: CONSTRAINT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -64084,6 +64015,14 @@ ALTER TABLE ONLY public.materialflowresources_position
ADD CONSTRAINT position_document_fkey FOREIGN KEY (document_id) REFERENCES public.materialflowresources_document(id) DEFERRABLE;


--
-- Name: materialflowresources_position position_documentpart_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.materialflowresources_position
ADD CONSTRAINT position_documentpart_fkey FOREIGN KEY (documentpart_id) REFERENCES public.mobilewms_wmsdocumentpart(id) DEFERRABLE;


--
-- Name: materialflowresources_position position_palletnumber_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -64140,14 +64079,6 @@ ALTER TABLE ONLY public.masterorders_position_warehousestatehelper
ADD CONSTRAINT position_warehousestatehelper_product_fkey FOREIGN KEY (product_id) REFERENCES public.basic_product(id) DEFERRABLE;


--
-- Name: materialflowresources_position position_wmsposition_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.materialflowresources_position
ADD CONSTRAINT position_wmsposition_fkey FOREIGN KEY (wmsposition_id) REFERENCES public.mobilewms_wmsposition(id) DEFERRABLE;


--
-- Name: materialflowresources_positionattributevalue positionattributevalue_attribute_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -67820,14 +67751,6 @@ ALTER TABLE ONLY public.mobilewms_wmsdocumentpart
ADD CONSTRAINT wmsdocumentpart_document_fkey FOREIGN KEY (document_id) REFERENCES public.materialflowresources_document(id) DEFERRABLE;


--
-- Name: mobilewms_wmsposition wmsposition_documentpart_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.mobilewms_wmsposition
ADD CONSTRAINT wmsposition_documentpart_fkey FOREIGN KEY (documentpart_id) REFERENCES public.mobilewms_wmsdocumentpart(id) DEFERRABLE;


--
-- Name: cmmsmachineparts_staffworktime worker_maintenanceevent_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
Expand Down
Loading

0 comments on commit 28e650a

Please sign in to comment.