From 74c7eac1cb610c33f0e3f2f7098c32f5cb71d5e9 Mon Sep 17 00:00:00 2001 From: Vinicius Vieira Date: Thu, 24 Aug 2023 22:06:32 +0100 Subject: [PATCH] fix: removed unused entitys --- .../entities/CustomerEntity.java | 54 ------------- .../entities/DemandEntity.java | 73 ----------------- .../entities/SupplierEntity.java | 54 ------------- .../repositories/CustomerRepository.java | 28 ------- .../repositories/SupplierRepository.java | 28 ------- .../WeekBasedCapacityGroupServiceImpl.java | 38 ++++----- .../impl/WeekBasedMaterialServiceImpl.java | 25 +++--- .../V202305161804__1_add_main_tables.sql | 79 +++++++++++-------- ...951__3_create_supplier_customer_tables.sql | 39 --------- ...2306291726__3_material_demands_tables.sql} | 0 ...71630__4_create_capacity_group_tables.sql} | 0 11 files changed, 69 insertions(+), 349 deletions(-) delete mode 100644 demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CustomerEntity.java delete mode 100644 demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandEntity.java delete mode 100644 demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/SupplierEntity.java delete mode 100644 demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CustomerRepository.java delete mode 100644 demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/SupplierRepository.java delete mode 100644 demand-capacity-mgmt-backend/src/main/resources/db/migration/V202306131951__3_create_supplier_customer_tables.sql rename demand-capacity-mgmt-backend/src/main/resources/db/migration/{V202306291726__4_material_demands_tables.sql => V202306291726__3_material_demands_tables.sql} (100%) rename demand-capacity-mgmt-backend/src/main/resources/db/migration/{V202307071630__5_create_capacity_group_tables.sql => V202307071630__4_create_capacity_group_tables.sql} (100%) diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CustomerEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CustomerEntity.java deleted file mode 100644 index 3567213e..00000000 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/CustomerEntity.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * ******************************************************************************* - * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * This program and the accompanying materials are made available under the - * terms of the Apache License, Version 2.0 which is available at - * https://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ******************************************************************************** - */ - -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -@Entity -@Table(name = "CUSTOMER") -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class CustomerEntity { - - @Id - @Column(name = "ID") - private Long id; - - @Column(name = "NAME") - private String name; - - @Column(name = "LEGAL_NAME") - private String legalName; - - @Column(name = "EDC_URL") - private String edcUrl; -} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandEntity.java deleted file mode 100644 index a38c2a8f..00000000 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/DemandEntity.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * ******************************************************************************* - * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * This program and the accompanying materials are made available under the - * terms of the Apache License, Version 2.0 which is available at - * https://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ******************************************************************************** - */ - -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; - -import java.time.LocalDateTime; -import javax.persistence.*; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -@Entity -@Table(name = "DEMAND") -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class DemandEntity { - - @Id - @Column(name = "ID", nullable = false) - @GeneratedValue(strategy = GenerationType.SEQUENCE) - private Long id; - - @ManyToOne - @JoinColumn(name = "COMPANY_ID", referencedColumnName = "ID") - private CompanyEntity company; - - @Column(name = "REQUIRED_VALUE") - private Double requiredValue; - - @Column(name = "DELIVERED_VALUE") - private Double deliveredValue; - - @Column(name = "MAXIMUM_VALUE") - private Double maximumValue; - - @Column(name = "DESCRIPTION") - private String description; - - @Column(name = "DEMAND_CATEGORY") - private String demandCategory; - - @Column(name = "START_DATE", nullable = false) - private LocalDateTime startDate; - - @Column(name = "END_DATE", nullable = false) - private LocalDateTime endDate; - - @ManyToOne - @JoinColumn(name = "UNIT_MEASURE_ID", referencedColumnName = "ID") - private UnitMeasureEntity unitMeasure; -} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/SupplierEntity.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/SupplierEntity.java deleted file mode 100644 index 425e99cf..00000000 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/entities/SupplierEntity.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * ******************************************************************************* - * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * This program and the accompanying materials are made available under the - * terms of the Apache License, Version 2.0 which is available at - * https://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ******************************************************************************** - */ - -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -@Entity -@Table(name = "SUPPLIER") -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class SupplierEntity { - - @Id - @Column(name = "ID") - private Long id; - - @Column(name = "NAME") - private String name; - - @Column(name = "LEGAL_NAME") - private String legalName; - - @Column(name = "EDC_URL") - private String edcUrl; -} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CustomerRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CustomerRepository.java deleted file mode 100644 index 663872a1..00000000 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/CustomerRepository.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * ******************************************************************************* - * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * This program and the accompanying materials are made available under the - * terms of the Apache License, Version 2.0 which is available at - * https://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ******************************************************************************** - */ - -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; - -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CustomerEntity; -import org.springframework.data.jpa.repository.JpaRepository; - -public interface CustomerRepository extends JpaRepository {} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/SupplierRepository.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/SupplierRepository.java deleted file mode 100644 index 192a3cbf..00000000 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/repositories/SupplierRepository.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * ******************************************************************************* - * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * This program and the accompanying materials are made available under the - * terms of the Apache License, Version 2.0 which is available at - * https://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ******************************************************************************** - */ - -package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories; - -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.SupplierEntity; -import org.springframework.data.jpa.repository.JpaRepository; - -public interface SupplierRepository extends JpaRepository {} diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedCapacityGroupServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedCapacityGroupServiceImpl.java index e6eba98e..cc7fa2d4 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedCapacityGroupServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedCapacityGroupServiceImpl.java @@ -23,26 +23,18 @@ package org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.impl; import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedCapacityGroupRequest; -import java.util.LinkedList; import java.util.List; -import java.util.Optional; -import java.util.stream.Collectors; import lombok.RequiredArgsConstructor; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.CustomerEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.SupplierEntity; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedCapacityGroupEntity; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.jsonEntities.Capacity; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.jsonEntities.DemandCategory; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.jsonEntities.LikedDemandSeries; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.jsonEntities.WeekBasedCapacityGroup; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.BadRequestException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.CustomerRepository; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.WeekBasedCapacityGroupRepository; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedCapacityGroupService; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UUIDUtil; -import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; -import org.springframework.web.client.RestTemplate; @RequiredArgsConstructor @Service @@ -50,8 +42,6 @@ public class WeekBasedCapacityGroupServiceImpl implements WeekBasedCapacityGroup private final WeekBasedCapacityGroupRepository weekBasedCapacityGroupRepository; - private final CustomerRepository customerRepository; - @Override public void createWeekBasedCapacityGroup(List weekBasedCapacityGroupRequestList) { weekBasedCapacityGroupRequestList.forEach( @@ -75,19 +65,21 @@ public void receiveWeekBasedCapacityGroup() { @Override public void sendWeekBasedCapacityGroup() { - Optional supplierEntityOpt = customerRepository.findById(1l); - - //TODO we still dont have defined the demand or the capacity structure yet, this is just an example of the flux - if (supplierEntityOpt.isPresent()) { - CustomerEntity supplierEntity = supplierEntityOpt.get(); - - //todo put this part of the code in the ConsumerHTTP class - RestTemplate restTemplate = new RestTemplate(); - String fooResourceUrl = supplierEntity.getEdcUrl(); - - //TODO create the Actual Demand and send to the supplier - ResponseEntity response = restTemplate.getForEntity(fooResourceUrl, String.class); - } +// Optional supplierEntityOpt = customerRepository.findById(1l); +// +// //TODO we still dont have defined the demand or the capacity structure yet, this is just an example of the flux +// if (supplierEntityOpt.isPresent()) { +// //todo change this to company entity +// //CustomerEntity supplierEntity = supplierEntityOpt.get(); +// +// //todo put this part of the code in the ConsumerHTTP class +// RestTemplate restTemplate = new RestTemplate(); +// +// //String fooResourceUrl = supplierEntity.getEdcUrl(); +// +// //TODO create the Actual Demand and send to the supplier +// ResponseEntity response = restTemplate.getForEntity("", String.class); +// } } private void validateFields(WeekBasedCapacityGroupRequest weekBasedCapacityGroupRequest) { diff --git a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedMaterialServiceImpl.java b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedMaterialServiceImpl.java index 386e47d0..fe311dec 100644 --- a/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedMaterialServiceImpl.java +++ b/demand-capacity-mgmt-backend/src/main/java/org/eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/services/impl/WeekBasedMaterialServiceImpl.java @@ -24,22 +24,17 @@ import eclipse.tractusx.demand_capacity_mgmt_specification.model.WeekBasedMaterialDemandRequestDto; import java.util.List; -import java.util.Optional; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.MaterialDemandEntity; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.SupplierEntity; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.entities.WeekBasedMaterialDemandEntity; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.exceptions.BadRequestException; -import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.SupplierRepository; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.repositories.WeekBasedMaterialDemandRepository; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.LinkDemandService; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.services.WeekBasedMaterialService; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.DataConverterUtil; import org.eclipse.tractusx.demandcapacitymgmt.demandcapacitymgmtbackend.utils.UUIDUtil; -import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; -import org.springframework.web.client.RestTemplate; @RequiredArgsConstructor @Service @@ -48,7 +43,6 @@ public class WeekBasedMaterialServiceImpl implements WeekBasedMaterialService { private final WeekBasedMaterialDemandRepository weekBasedMaterialDemandRepository; - private final SupplierRepository supplierRepository; private final LinkDemandService linkDemandService; @@ -68,16 +62,17 @@ public void createWeekBasedMaterial(List week @Override public void sendWeekBasedMaterial() { - Optional supplierEntityOpt = supplierRepository.findById(1l); - if (supplierEntityOpt.isPresent()) { - SupplierEntity supplierEntity = supplierEntityOpt.get(); - RestTemplate restTemplate = new RestTemplate(); - String fooResourceUrl = supplierEntity.getEdcUrl(); - - //TODO create the Actual Demand and send to the supplier - ResponseEntity response = restTemplate.getForEntity(fooResourceUrl, String.class); - } +// Optional supplierEntityOpt = supplierRepository.findById(1l); +// +// if (supplierEntityOpt.isPresent()) { +// SupplierEntity supplierEntity = supplierEntityOpt.get(); +// RestTemplate restTemplate = new RestTemplate(); +// String fooResourceUrl = supplierEntity.getEdcUrl(); +// +// //TODO create the Actual Demand and send to the supplier +// ResponseEntity response = restTemplate.getForEntity(fooResourceUrl, String.class); +// } } @Override diff --git a/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202305161804__1_add_main_tables.sql b/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202305161804__1_add_main_tables.sql index d1674c36..959286a9 100644 --- a/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202305161804__1_add_main_tables.sql +++ b/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202305161804__1_add_main_tables.sql @@ -20,52 +20,61 @@ * ******************************************************************************** */ -create table project +CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; + +create table demand_category ( - id float constraint id_pk primary key, - name varchar(400), - initial_date timestamp not null, - final_date timestamp, - type varchar(30) + id uuid DEFAULT uuid_generate_v4() primary key , + demand_category_code varchar(400), + demand_category_name varchar(400) ); -create table company +create table unity_of_measure ( - id float constraint company_pk primary key, - type varchar(10), - name varchar(400) + id uuid constraint unity_of_measure_pk primary key, + code_value varchar(400) , + display_value varchar(400) ); -create table unit_measure +create table company_base_data ( - id float constraint unit_measure_id primary key, - un varchar(3), - name varchar(40) + id uuid constraint company_base_data_pk primary key, + bpn varchar(400), + company_name varchar(400), + street varchar(400), + number varchar(400), + zip_code varchar(400), + country varchar(400), + my_company varchar(400), + edc_url varchar(400) ); -create table demand +create table material_demand ( - id float not null constraint demand_pk primary key, - project_id float constraint project_id references project(id), - company_id float constraint company_id references company(id), - required_value numeric, - delivered_value numeric, - maximum_value numeric, - demand_category varchar(50), - unit_measure_id integer constraint unit_measure_id references unit_measure(id), - description varchar(400), - start_date timestamp not null, - end_date timestamp, - updated_date timestamp + id uuid DEFAULT uuid_generate_v4() primary key, + material_description_customer varchar(400), + material_number_customer varchar(400), + material_number_supplier varchar(400), + changed_at timestamp, + customer_id uuid constraint customer_id references company_base_data(id), + supplier_id uuid constraint supplier_id references company_base_data(id), + unity_of_measure_id uuid constraint unity_of_measure_id references unity_of_measure(id) ); +create table demand_series +( + id uuid DEFAULT uuid_generate_v4() primary key, + material_demand_id uuid constraint material_demand_id references material_demand(id), + customer_location_id uuid constraint customer_location_id references company_base_data(id), + expected_supplier_location_id varchar(720), + demand_category_code_id uuid constraint demand_category_code_id references demand_category(id) +); -CREATE SEQUENCE hibernate_sequence START 1; - - - - - - - +create table demand_series_values +( + id uuid DEFAULT uuid_generate_v4() primary key, + demand_series_id uuid constraint demand_series_id references demand_series(id), + calendar_week timestamp not null, + demand numeric +) \ No newline at end of file diff --git a/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202306131951__3_create_supplier_customer_tables.sql b/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202306131951__3_create_supplier_customer_tables.sql deleted file mode 100644 index 5f19eb58..00000000 --- a/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202306131951__3_create_supplier_customer_tables.sql +++ /dev/null @@ -1,39 +0,0 @@ -/* - * ******************************************************************************* - * Copyright (c) 2023 BMW AG - * Copyright (c) 2023 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * This program and the accompanying materials are made available under the - * terms of the Apache License, Version 2.0 which is available at - * https://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ******************************************************************************** - */ - -create table supplier -( - id integer constraint supplier_pk primary key, - name varchar(400), - legal_name varchar(400), - edc_url varchar(400), - viewed boolean -); - -create table customer -( - id integer constraint customer_pk primary key, - name varchar(400), - legal_name varchar(400), - edc_url varchar(400), - viewed boolean -); \ No newline at end of file diff --git a/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202306291726__4_material_demands_tables.sql b/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202306291726__3_material_demands_tables.sql similarity index 100% rename from demand-capacity-mgmt-backend/src/main/resources/db/migration/V202306291726__4_material_demands_tables.sql rename to demand-capacity-mgmt-backend/src/main/resources/db/migration/V202306291726__3_material_demands_tables.sql diff --git a/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202307071630__5_create_capacity_group_tables.sql b/demand-capacity-mgmt-backend/src/main/resources/db/migration/V202307071630__4_create_capacity_group_tables.sql similarity index 100% rename from demand-capacity-mgmt-backend/src/main/resources/db/migration/V202307071630__5_create_capacity_group_tables.sql rename to demand-capacity-mgmt-backend/src/main/resources/db/migration/V202307071630__4_create_capacity_group_tables.sql