diff --git a/src/administration/Administration.Service/Administration.Service.csproj b/src/administration/Administration.Service/Administration.Service.csproj
index 289740f278..fabf070f18 100644
--- a/src/administration/Administration.Service/Administration.Service.csproj
+++ b/src/administration/Administration.Service/Administration.Service.csproj
@@ -52,10 +52,8 @@
-
-
diff --git a/src/externalsystems/Bpdm.Library/Bpdm.Library.csproj b/src/externalsystems/Bpdm.Library/Bpdm.Library.csproj
index 28d742280e..d415c0d2de 100644
--- a/src/externalsystems/Bpdm.Library/Bpdm.Library.csproj
+++ b/src/externalsystems/Bpdm.Library/Bpdm.Library.csproj
@@ -28,7 +28,6 @@
-
diff --git a/src/externalsystems/BpnDidResolver.Library/BpnDidResolver.Library.csproj b/src/externalsystems/BpnDidResolver.Library/BpnDidResolver.Library.csproj
index cac4cbe241..cd3b267855 100644
--- a/src/externalsystems/BpnDidResolver.Library/BpnDidResolver.Library.csproj
+++ b/src/externalsystems/BpnDidResolver.Library/BpnDidResolver.Library.csproj
@@ -29,7 +29,6 @@
-
diff --git a/src/externalsystems/Clearinghouse.Library/Clearinghouse.Library.csproj b/src/externalsystems/Clearinghouse.Library/Clearinghouse.Library.csproj
index 7a61f75701..c29ec0ea95 100644
--- a/src/externalsystems/Clearinghouse.Library/Clearinghouse.Library.csproj
+++ b/src/externalsystems/Clearinghouse.Library/Clearinghouse.Library.csproj
@@ -28,7 +28,6 @@
-
diff --git a/src/externalsystems/Custodian.Library/Custodian.Library.csproj b/src/externalsystems/Custodian.Library/Custodian.Library.csproj
index b2a20ebee9..e5eb3aae37 100644
--- a/src/externalsystems/Custodian.Library/Custodian.Library.csproj
+++ b/src/externalsystems/Custodian.Library/Custodian.Library.csproj
@@ -29,7 +29,6 @@
-
diff --git a/src/externalsystems/Dim.Library/Dim.Library.csproj b/src/externalsystems/Dim.Library/Dim.Library.csproj
index ace175cf8d..7b9d676762 100644
--- a/src/externalsystems/Dim.Library/Dim.Library.csproj
+++ b/src/externalsystems/Dim.Library/Dim.Library.csproj
@@ -29,7 +29,6 @@
-
diff --git a/src/externalsystems/IssuerComponent.Library/IssuerComponent.Library.csproj b/src/externalsystems/IssuerComponent.Library/IssuerComponent.Library.csproj
index 5d230b62b0..48efb9bc75 100644
--- a/src/externalsystems/IssuerComponent.Library/IssuerComponent.Library.csproj
+++ b/src/externalsystems/IssuerComponent.Library/IssuerComponent.Library.csproj
@@ -29,7 +29,6 @@
-
diff --git a/src/externalsystems/OfferProvider.Library/OfferProvider.Library.csproj b/src/externalsystems/OfferProvider.Library/OfferProvider.Library.csproj
index f153c9104b..2348279cba 100644
--- a/src/externalsystems/OfferProvider.Library/OfferProvider.Library.csproj
+++ b/src/externalsystems/OfferProvider.Library/OfferProvider.Library.csproj
@@ -28,7 +28,6 @@
-
diff --git a/src/externalsystems/OnboardingServiceProvider.Library/OnboardingServiceProvider.Library.csproj b/src/externalsystems/OnboardingServiceProvider.Library/OnboardingServiceProvider.Library.csproj
index 27add3e676..0873f612e1 100644
--- a/src/externalsystems/OnboardingServiceProvider.Library/OnboardingServiceProvider.Library.csproj
+++ b/src/externalsystems/OnboardingServiceProvider.Library/OnboardingServiceProvider.Library.csproj
@@ -28,7 +28,6 @@
-
diff --git a/src/externalsystems/SdFactory.Library/SdFactory.Library.csproj b/src/externalsystems/SdFactory.Library/SdFactory.Library.csproj
index 87ba3d329f..234265f87b 100644
--- a/src/externalsystems/SdFactory.Library/SdFactory.Library.csproj
+++ b/src/externalsystems/SdFactory.Library/SdFactory.Library.csproj
@@ -28,7 +28,6 @@
-
diff --git a/src/framework/Framework.DBAccess/Repositories.cs b/src/framework/Framework.DBAccess/AbstractRepositories.cs
similarity index 76%
rename from src/framework/Framework.DBAccess/Repositories.cs
rename to src/framework/Framework.DBAccess/AbstractRepositories.cs
index 79dc070c18..5aa2a247c7 100644
--- a/src/framework/Framework.DBAccess/Repositories.cs
+++ b/src/framework/Framework.DBAccess/AbstractRepositories.cs
@@ -22,9 +22,23 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.DBAccess;
-public abstract class Repositories(IDbContext dbContext) : IRepositories
+public abstract class AbstractRepositories(TDbContext dbContext) : IRepositories
+ where TDbContext : class, IDbContext
{
- public abstract T GetInstance();
+ protected static KeyValuePair> CreateTypeEntry(Func createFunc) => KeyValuePair.Create(typeof(T), createFunc);
+ protected abstract IReadOnlyDictionary> RepositoryTypes { get; }
+
+ public RepositoryType GetInstance()
+ {
+ object? repository = default;
+
+ if (RepositoryTypes.TryGetValue(typeof(RepositoryType), out var createFunc))
+ {
+ repository = createFunc(dbContext);
+ }
+
+ return (RepositoryType)(repository ?? throw new ArgumentException($"unexpected type {typeof(RepositoryType).Name}", nameof(RepositoryType)));
+ }
///
public TEntity Attach(TEntity entity, Action? setOptionalParameters = null) where TEntity : class
diff --git a/src/framework/Framework.Identity/IdentityTypeId.cs b/src/framework/Framework.Identity/IdentityTypeId.cs
index a3d9043e09..7a0e3c920e 100644
--- a/src/framework/Framework.Identity/IdentityTypeId.cs
+++ b/src/framework/Framework.Identity/IdentityTypeId.cs
@@ -22,5 +22,5 @@ namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Identity;
public enum IdentityTypeId
{
COMPANY_USER = 1,
- COMPANY_SERVICE_ACCOUNT = 2
+ TECHNICAL_USER = 2
}
diff --git a/src/framework/Framework.Processes.Library.Concrete/Context/ProcessDbContext.cs b/src/framework/Framework.Processes.Library.Concrete/Context/ProcessDbContext.cs
index 5df52e955d..d7337faa7e 100644
--- a/src/framework/Framework.Processes.Library.Concrete/Context/ProcessDbContext.cs
+++ b/src/framework/Framework.Processes.Library.Concrete/Context/ProcessDbContext.cs
@@ -21,30 +21,24 @@
using Org.Eclipse.TractusX.Portal.Backend.Framework.DBAccess;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Context;
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Entities;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Enums;
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Context;
-public class ProcessDbContext :
- DbContext,
- IProcessDbContext, ProcessStep, ProcessStepStatus, TProcessTypeId, TProcessStepTypeId>,
+public class ProcessDbContext(DbContextOptions options) :
+ DbContext(options),
+ IProcessDbContext, ProcessStep, TProcessTypeId, TProcessStepTypeId>,
IDbContext
+ where TProcess : class, IProcess, IProcessNavigation, ProcessStep, TProcessTypeId, TProcessStepTypeId>
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
{
- protected ProcessDbContext()
- {
- throw new InvalidOperationException("IdentityService should never be null");
- }
-
- public ProcessDbContext(DbContextOptions options)
- : base(options)
- {
- }
-
- public virtual DbSet> Processes { get; set; } = default!;
- public virtual DbSet> ProcessSteps { get; set; } = default!;
- public virtual DbSet> ProcessStepStatuses { get; set; } = default!;
+ public virtual DbSet Processes { get; set; } = default!;
+ public virtual DbSet> ProcessSteps { get; set; } = default!;
+ public virtual DbSet> ProcessStepStatuses { get; set; } = default!;
+ public virtual DbSet> ProcessStepTypes { get; set; } = default!;
+ public virtual DbSet> ProcessTypes { get; set; } = default!;
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
@@ -53,28 +47,50 @@ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
- modelBuilder.Entity>(p =>
+ modelBuilder.Entity(p =>
{
+ p.HasOne(d => d.ProcessType)
+ .WithMany(p => p!.Processes)
+ .HasForeignKey(d => d.ProcessTypeId)
+ .OnDelete(DeleteBehavior.ClientSetNull);
p.ToTable("processes");
});
- modelBuilder.Entity>(ps =>
+ modelBuilder.Entity>(ps =>
{
- ps
- .HasOne(d => d.Process)
+ ps.HasOne(d => d.Process)
.WithMany(p => p.ProcessSteps)
.HasForeignKey(d => d.ProcessId)
.OnDelete(DeleteBehavior.ClientSetNull);
+ ps.HasOne(d => d.ProcessStepStatus)
+ .WithMany(p => p.ProcessSteps)
+ .HasForeignKey(d => d.ProcessStepStatusId)
+ .OnDelete(DeleteBehavior.ClientSetNull);
+
ps.ToTable("process_steps");
});
- modelBuilder.Entity>(pss =>
+ modelBuilder.Entity>()
+ .HasData(
+ Enum.GetValues(typeof(TProcessTypeId))
+ .Cast()
+ .Select(e => new ProcessType(e))
+ );
+
+ modelBuilder.Entity>()
+ .HasData(
+ Enum.GetValues(typeof(TProcessStepTypeId))
+ .Cast()
+ .Select(e => new ProcessStepType(e))
+ );
+
+ modelBuilder.Entity>(pss =>
{
pss.HasData(
Enum.GetValues(typeof(ProcessStepStatusId))
.Cast()
- .Select(e => new ProcessStepStatus(e))
+ .Select(e => new ProcessStepStatus(e))
);
pss.ToTable("process_step_statuses");
diff --git a/src/framework/Framework.Processes.Library.Concrete/DBAccess/ProcessRepositoryContextAccess.cs b/src/framework/Framework.Processes.Library.Concrete/DBAccess/ProcessRepositoryContextAccess.cs
deleted file mode 100644
index 37a29c8f1d..0000000000
--- a/src/framework/Framework.Processes.Library.Concrete/DBAccess/ProcessRepositoryContextAccess.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2025 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
- ********************************************************************************/
-
-using Microsoft.EntityFrameworkCore;
-using Org.Eclipse.TractusX.Portal.Backend.Framework.DBAccess;
-using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
-using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Context;
-using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess;
-using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Enums;
-
-namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.DBAccess;
-
-public class ProcessRepositoryContextAccess(TProcessDbContext dbContext) :
- IProcessRepositoryContextAccess, ProcessStep, ProcessStepStatus, TProcessTypeId, TProcessStepTypeId>
- where TProcessTypeId : struct, IConvertible
- where TProcessStepTypeId : struct, IConvertible
- where TProcessDbContext : class, IProcessDbContext, ProcessStep, ProcessStepStatus, TProcessTypeId, TProcessStepTypeId>, IDbContext
-{
- public DbSet> Processes => dbContext.Processes;
- public DbSet> ProcessSteps => dbContext.ProcessSteps;
- public DbSet> ProcessStepStatuses => dbContext.ProcessStepStatuses;
-
- public Process CreateProcess(Guid id, TProcessTypeId processTypeId, Guid version) => new(id, processTypeId, version);
- public ProcessStep CreateProcessStep(Guid id, TProcessStepTypeId processStepTypeId, ProcessStepStatusId processStepStatusId, Guid processId, DateTimeOffset now) => new(id, processStepTypeId, processStepStatusId, processId, now);
-}
diff --git a/src/framework/Framework.Processes.Library.Concrete/DBAccess/ProcessRepositories.cs b/src/framework/Framework.Processes.Library.Concrete/DBAccess/SimpleProcessRepositories.cs
similarity index 50%
rename from src/framework/Framework.Processes.Library.Concrete/DBAccess/ProcessRepositories.cs
rename to src/framework/Framework.Processes.Library.Concrete/DBAccess/SimpleProcessRepositories.cs
index 87044edf45..22bc3bc883 100644
--- a/src/framework/Framework.Processes.Library.Concrete/DBAccess/ProcessRepositories.cs
+++ b/src/framework/Framework.Processes.Library.Concrete/DBAccess/SimpleProcessRepositories.cs
@@ -25,30 +25,17 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.DBAccess;
-public class ProcessRepositories(TProcessDbContext dbContext) :
- Repositories(dbContext)
+public class SimpleProcessRepositories(TProcessDbContext dbContext) :
+ AbstractRepositories(dbContext)
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
- where TProcessDbContext : class, IProcessDbContext, ProcessStep, ProcessStepStatus, TProcessTypeId, TProcessStepTypeId>, IDbContext
+ where TProcessDbContext : class, IProcessDbContext, ProcessType, TProcessTypeId>, ProcessStep, TProcessTypeId, TProcessStepTypeId>, TProcessTypeId, TProcessStepTypeId>, IDbContext
{
- private static KeyValuePair> CreateTypeEntry(Func createFunc) => KeyValuePair.Create(typeof(T), createFunc);
-
- protected static readonly IReadOnlyDictionary> ProcessRepositoryTypes = ImmutableDictionary.CreateRange(
+ protected override IReadOnlyDictionary> RepositoryTypes => ProcessRepositoryTypes;
+ private static readonly IReadOnlyDictionary> ProcessRepositoryTypes = ImmutableDictionary.CreateRange(
[
CreateTypeEntry>(context =>
- new ProcessStepRepository, ProcessStep, ProcessStepStatus, TProcessTypeId, TProcessStepTypeId>(
- new ProcessRepositoryContextAccess(context)))
+ new ProcessStepRepository, ProcessType, TProcessTypeId>, ProcessStep, TProcessTypeId, TProcessStepTypeId>, ProcessStepType, TProcessTypeId, TProcessStepTypeId>, TProcessTypeId, TProcessStepTypeId>(
+ new SimpleProcessRepositoryContextAccess(context)))
]);
-
- public override RepositoryType GetInstance()
- {
- object? repository = default;
-
- if (ProcessRepositoryTypes.TryGetValue(typeof(RepositoryType), out var createFunc))
- {
- repository = createFunc(dbContext);
- }
-
- return (RepositoryType)(repository ?? throw new ArgumentException($"unexpected type {typeof(RepositoryType).Name}", nameof(RepositoryType)));
- }
}
diff --git a/src/framework/Framework.Processes.Library.Concrete/DBAccess/SimpleProcessRepositoryContextAccess.cs b/src/framework/Framework.Processes.Library.Concrete/DBAccess/SimpleProcessRepositoryContextAccess.cs
new file mode 100644
index 0000000000..35dfc7c655
--- /dev/null
+++ b/src/framework/Framework.Processes.Library.Concrete/DBAccess/SimpleProcessRepositoryContextAccess.cs
@@ -0,0 +1,40 @@
+/********************************************************************************
+ * Copyright (c) 2025 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
+ ********************************************************************************/
+
+using Microsoft.EntityFrameworkCore;
+using Org.Eclipse.TractusX.Portal.Backend.Framework.DBAccess;
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Context;
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess;
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Enums;
+
+namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.DBAccess;
+
+public class SimpleProcessRepositoryContextAccess(TProcessDbContext dbContext) :
+ IProcessRepositoryContextAccess, ProcessType, TProcessTypeId>, ProcessStep, TProcessTypeId, TProcessStepTypeId>, ProcessStepType, TProcessTypeId, TProcessStepTypeId>, TProcessTypeId, TProcessStepTypeId>
+ where TProcessTypeId : struct, IConvertible
+ where TProcessStepTypeId : struct, IConvertible
+ where TProcessDbContext : class, IProcessDbContext, ProcessType, TProcessTypeId>, ProcessStep, TProcessTypeId, TProcessStepTypeId>, TProcessTypeId, TProcessStepTypeId>, IDbContext
+{
+ public DbSet> Processes => dbContext.Processes;
+ public DbSet, TProcessTypeId, TProcessStepTypeId>> ProcessSteps => dbContext.ProcessSteps;
+
+ public SimpleProcess CreateProcess(Guid id, TProcessTypeId processTypeId, Guid version) => new(id, processTypeId, version);
+ public ProcessStep, TProcessTypeId, TProcessStepTypeId> CreateProcessStep(Guid id, TProcessStepTypeId processStepTypeId, ProcessStepStatusId processStepStatusId, Guid processId, DateTimeOffset now) => new(id, processStepTypeId, processStepStatusId, processId, now);
+}
diff --git a/src/framework/Framework.Processes.Library.Concrete/Entities/Process.cs b/src/framework/Framework.Processes.Library.Concrete/Entities/AbstractProcess.cs
similarity index 66%
rename from src/framework/Framework.Processes.Library.Concrete/Entities/Process.cs
rename to src/framework/Framework.Processes.Library.Concrete/Entities/AbstractProcess.cs
index 90d307b902..c8daef6452 100644
--- a/src/framework/Framework.Processes.Library.Concrete/Entities/Process.cs
+++ b/src/framework/Framework.Processes.Library.Concrete/Entities/AbstractProcess.cs
@@ -1,5 +1,5 @@
/********************************************************************************
- * Copyright (c) 2022 Contributors to the Eclipse Foundation
+ * Copyright (c) 2025 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
@@ -23,13 +23,14 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
-public class Process(
+public abstract class AbstractProcess(
Guid id,
TProcessTypeId processTypeId,
Guid version) :
IProcess,
- IProcessNavigation, TProcessStepTypeId>,
+ IProcessNavigation, ProcessStep, TProcessTypeId, TProcessStepTypeId>,
IBaseEntity
+ where TProcess : class, IProcess, IProcessNavigation, ProcessStep, TProcessTypeId, TProcessStepTypeId>
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
{
@@ -41,5 +42,7 @@ public class Process(
[ConcurrencyCheck]
public Guid Version { get; set; } = version;
- public virtual ICollection> ProcessSteps { get; private set; } = new HashSet>();
+
+ public virtual ProcessType ProcessType { get; private set; } = default!;
+ public virtual ICollection> ProcessSteps { get; private set; } = new HashSet>();
}
diff --git a/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStep.cs b/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStep.cs
index 22eb38c944..1a6bf2986d 100644
--- a/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStep.cs
+++ b/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStep.cs
@@ -23,15 +23,16 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
-public class ProcessStep(
+public class ProcessStep(
Guid id,
TProcessStepTypeId processStepTypeId,
ProcessStepStatusId processStepStatusId,
Guid processId,
DateTimeOffset dateCreated) :
IProcessStep,
- IProcessStepNavigation, TProcessTypeId>,
+ IProcessStepNavigation, TProcessTypeId, TProcessStepTypeId>,
IBaseEntity
+ where TProcess : class, IProcess, IProcessNavigation, ProcessStep, TProcessTypeId, TProcessStepTypeId>
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
{
@@ -50,5 +51,7 @@ public class ProcessStep(
public string? Message { get; set; }
// Navigation properties
- public virtual Process? Process { get; private set; }
+ public virtual TProcess? Process { get; private set; }
+ public virtual ProcessStepType? ProcessStepType { get; private set; }
+ public virtual ProcessStepStatus? ProcessStepStatus { get; private set; }
}
diff --git a/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStepStatus.cs b/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStepStatus.cs
index 9e5b956406..60c35509a5 100644
--- a/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStepStatus.cs
+++ b/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStepStatus.cs
@@ -23,27 +23,16 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
-public class ProcessStepStatus : IProcessStepStatus
+public class ProcessStepStatus(ProcessStepStatusId id) : IProcessStepStatus
+ where TProcess : class, IProcess, IProcessNavigation, ProcessStep, TProcessTypeId, TProcessStepTypeId>
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
{
- private ProcessStepStatus()
- {
- Label = null!;
- ProcessSteps = new HashSet>();
- }
-
- public ProcessStepStatus(ProcessStepStatusId processStepStatusId) : this()
- {
- Id = processStepStatusId;
- Label = processStepStatusId.ToString();
- }
-
- public ProcessStepStatusId Id { get; private set; }
+ public ProcessStepStatusId Id { get; private set; } = id;
[MaxLength(255)]
- public string Label { get; private set; }
+ public string Label { get; private set; } = id.ToString();
// Navigation properties
- public virtual ICollection> ProcessSteps { get; private set; }
+ public virtual ICollection> ProcessSteps { get; private set; } = new HashSet>();
}
diff --git a/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStepType.cs b/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStepType.cs
new file mode 100644
index 0000000000..7fc40658a7
--- /dev/null
+++ b/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessStepType.cs
@@ -0,0 +1,39 @@
+/********************************************************************************
+ * Copyright (c) 2022 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
+ ********************************************************************************/
+
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Entities;
+using System.ComponentModel.DataAnnotations;
+
+namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
+
+public class ProcessStepType(TProcessStepTypeId processStepTypeId) :
+ IProcessStepType,
+ IProcessStepTypeNavigation, TProcessStepTypeId>
+ where TProcess : class, IProcess, IProcessNavigation, ProcessStep, TProcessTypeId, TProcessStepTypeId>
+ where TProcessTypeId : struct, IConvertible
+ where TProcessStepTypeId : struct, IConvertible
+{
+ public TProcessStepTypeId Id { get; private set; } = processStepTypeId;
+
+ [MaxLength(255)]
+ public string Label { get; private set; } = processStepTypeId.ToString()!;
+
+ // Navigation properties
+ public virtual ICollection> ProcessSteps { get; private set; } = new HashSet>();
+}
diff --git a/src/portalbackend/PortalBackend.PortalEntities/Entities/ProcessType.cs b/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessType.cs
similarity index 60%
rename from src/portalbackend/PortalBackend.PortalEntities/Entities/ProcessType.cs
rename to src/framework/Framework.Processes.Library.Concrete/Entities/ProcessType.cs
index 77ac47e619..c7bfad850e 100644
--- a/src/portalbackend/PortalBackend.PortalEntities/Entities/ProcessType.cs
+++ b/src/framework/Framework.Processes.Library.Concrete/Entities/ProcessType.cs
@@ -17,31 +17,22 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
-using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
-using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums;
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Entities;
using System.ComponentModel.DataAnnotations;
-namespace Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Entities;
+namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
-public class ProcessType
+public class ProcessType(TProcessTypeId processTypeId) :
+ IProcessType,
+ IProcessTypeNavigation
+ where TProcess : class, IProcess
+ where TProcessTypeId : struct, IConvertible
{
- private ProcessType()
- {
- Label = null!;
- Processes = new HashSet>();
- }
-
- public ProcessType(ProcessTypeId processTypeId) : this()
- {
- Id = processTypeId;
- Label = processTypeId.ToString();
- }
-
- public ProcessTypeId Id { get; private set; }
+ public TProcessTypeId Id { get; private set; } = processTypeId;
[MaxLength(255)]
- public string Label { get; private set; }
+ public string Label { get; private set; } = processTypeId.ToString()!;
// Navigation properties
- public virtual ICollection> Processes { get; private set; }
+ public virtual ICollection Processes { get; private set; } = new HashSet();
}
diff --git a/src/framework/Framework.Processes.Library.Concrete/Entities/SimpleProcess.cs b/src/framework/Framework.Processes.Library.Concrete/Entities/SimpleProcess.cs
new file mode 100644
index 0000000000..759beda582
--- /dev/null
+++ b/src/framework/Framework.Processes.Library.Concrete/Entities/SimpleProcess.cs
@@ -0,0 +1,27 @@
+/********************************************************************************
+ * Copyright (c) 2025 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
+ ********************************************************************************/
+
+namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
+
+public class SimpleProcess(Guid id, TProcessTypeId processTypeId, Guid version) :
+ AbstractProcess, TProcessTypeId, TProcessStepTypeId>(id, processTypeId, version)
+ where TProcessTypeId : struct, IConvertible
+ where TProcessStepTypeId : struct, IConvertible
+{
+}
diff --git a/src/framework/Framework.Processes.Library/Context/IProcessDbContext.cs b/src/framework/Framework.Processes.Library/Context/IProcessDbContext.cs
index 2c1bff836d..add0848ddf 100644
--- a/src/framework/Framework.Processes.Library/Context/IProcessDbContext.cs
+++ b/src/framework/Framework.Processes.Library/Context/IProcessDbContext.cs
@@ -22,14 +22,13 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Context;
-public interface IProcessDbContext
- where TProcessType : class, IProcess, IProcessNavigation
- where TProcessStepType : class, IProcessStep, IProcessStepNavigation
- where TProcessStepStatusType : class, IProcessStepStatus
+public interface IProcessDbContext
+ where TProcess : class, IProcess, IProcessNavigation
+ where TProcessType : class, IProcessType
+ where TProcessStep : class, IProcessStep
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
{
- DbSet Processes { get; }
- DbSet ProcessSteps { get; }
- DbSet ProcessStepStatuses { get; }
+ DbSet Processes { get; }
+ DbSet ProcessSteps { get; }
}
diff --git a/src/framework/Framework.Processes.Library/DBAccess/IProcessCreation.cs b/src/framework/Framework.Processes.Library/DBAccess/IProcessCreation.cs
index d99915f9ac..724e191566 100644
--- a/src/framework/Framework.Processes.Library/DBAccess/IProcessCreation.cs
+++ b/src/framework/Framework.Processes.Library/DBAccess/IProcessCreation.cs
@@ -22,12 +22,14 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess;
-public interface IProcessCreation
- where TProcessType : class, IProcess, IProcessNavigation
- where TProcessStepType : class, IProcessStep, IProcessStepNavigation
+public interface IProcessCreation
+ where TProcess : class, IProcess, IProcessNavigation
+ where TProcessType : class, IProcessType, IProcessTypeNavigation
+ where TProcessStep : class, IProcessStep, IProcessStepNavigation
+ where TProcessStepType : class, IProcessStepType, IProcessStepTypeNavigation
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
{
- TProcessType CreateProcess(Guid id, TProcessTypeId processTypeId, Guid version);
- TProcessStepType CreateProcessStep(Guid id, TProcessStepTypeId processStepTypeId, ProcessStepStatusId processStepStatusId, Guid processId, DateTimeOffset now);
+ TProcess CreateProcess(Guid id, TProcessTypeId processTypeId, Guid version);
+ TProcessStep CreateProcessStep(Guid id, TProcessStepTypeId processStepTypeId, ProcessStepStatusId processStepStatusId, Guid processId, DateTimeOffset now);
}
diff --git a/src/framework/Framework.Processes.Library/DBAccess/IProcessRepositoryContextAccess.cs b/src/framework/Framework.Processes.Library/DBAccess/IProcessRepositoryContextAccess.cs
index 3babf04783..0cef4d964f 100644
--- a/src/framework/Framework.Processes.Library/DBAccess/IProcessRepositoryContextAccess.cs
+++ b/src/framework/Framework.Processes.Library/DBAccess/IProcessRepositoryContextAccess.cs
@@ -22,11 +22,12 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess;
-public interface IProcessRepositoryContextAccess :
- IProcessDbContext,
- IProcessCreation
- where TProcessType : class, IProcess, IProcessNavigation
- where TProcessStepType : class, IProcessStep, IProcessStepNavigation
- where TProcessStepStatusType : class, IProcessStepStatus
+public interface IProcessRepositoryContextAccess :
+ IProcessDbContext,
+ IProcessCreation
+ where TProcess : class, IProcess, IProcessNavigation
+ where TProcessStep : class, IProcessStep, IProcessStepNavigation
+ where TProcessType : class, IProcessType, IProcessTypeNavigation
+ where TProcessStepType : class, IProcessStepType, IProcessStepTypeNavigation
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible;
diff --git a/src/framework/Framework.Processes.Library/DBAccess/ProcessStepRepository.cs b/src/framework/Framework.Processes.Library/DBAccess/ProcessStepRepository.cs
index fb32d497f1..bc23d0d745 100644
--- a/src/framework/Framework.Processes.Library/DBAccess/ProcessStepRepository.cs
+++ b/src/framework/Framework.Processes.Library/DBAccess/ProcessStepRepository.cs
@@ -25,11 +25,12 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess;
-public class ProcessStepRepository(IProcessRepositoryContextAccess dbContext) :
+public class ProcessStepRepository(IProcessRepositoryContextAccess dbContext) :
IProcessStepRepository
- where TProcessType : class, IProcess, IProcessNavigation
- where TProcessStepType : class, IProcessStep, IProcessStepNavigation
- where TProcessStepStatusType : class, IProcessStepStatus
+ where TProcess : class, IProcess, IProcessNavigation
+ where TProcessType : class, IProcessType, IProcessTypeNavigation
+ where TProcessStep : class, IProcessStep, IProcessStepNavigation
+ where TProcessStepType : class, IProcessStepType, IProcessStepTypeNavigation
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
{
diff --git a/src/framework/Framework.Processes.Library/Entities/IProcess.cs b/src/framework/Framework.Processes.Library/Entities/IProcess.cs
index a7d5cb6df0..22d5a3639c 100644
--- a/src/framework/Framework.Processes.Library/Entities/IProcess.cs
+++ b/src/framework/Framework.Processes.Library/Entities/IProcess.cs
@@ -22,6 +22,7 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Entities;
public interface IProcess : ILockableEntity
+ where TProcessTypeId : struct, IConvertible
{
Guid Id { get; }
TProcessTypeId ProcessTypeId { get; set; }
diff --git a/src/framework/Framework.Processes.Library/Entities/IProcessNavigation.cs b/src/framework/Framework.Processes.Library/Entities/IProcessNavigation.cs
index de9d53a958..935674c06f 100644
--- a/src/framework/Framework.Processes.Library/Entities/IProcessNavigation.cs
+++ b/src/framework/Framework.Processes.Library/Entities/IProcessNavigation.cs
@@ -19,9 +19,12 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Entities;
-public interface IProcessNavigation
- where TProcessStepType : class, IProcessStep
+public interface IProcessNavigation
+ where TProcessType : class, IProcessType
+ where TProcessStep : class, IProcessStep
+ where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
{
- ICollection ProcessSteps { get; }
+ TProcessType ProcessType { get; }
+ ICollection ProcessSteps { get; }
}
diff --git a/src/framework/Framework.Processes.Library/Entities/IProcessStepNavigation.cs b/src/framework/Framework.Processes.Library/Entities/IProcessStepNavigation.cs
index 208cbcd188..72dd05fd61 100644
--- a/src/framework/Framework.Processes.Library/Entities/IProcessStepNavigation.cs
+++ b/src/framework/Framework.Processes.Library/Entities/IProcessStepNavigation.cs
@@ -19,9 +19,12 @@
namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Entities;
-public interface IProcessStepNavigation
- where TProcessType : class, IProcess
+public interface IProcessStepNavigation
+ where TProcess : class, IProcess
+ where TProcessStepType : class, IProcessStepType
where TProcessTypeId : struct, IConvertible
+ where TProcessStepTypeId : struct, IConvertible
{
- TProcessType? Process { get; }
+ TProcess? Process { get; }
+ TProcessStepType? ProcessStepType { get; }
}
diff --git a/src/framework/Framework.Processes.Library/Entities/IProcessStepStatusNavigation.cs b/src/framework/Framework.Processes.Library/Entities/IProcessStepStatusNavigation.cs
new file mode 100644
index 0000000000..41dc1436d4
--- /dev/null
+++ b/src/framework/Framework.Processes.Library/Entities/IProcessStepStatusNavigation.cs
@@ -0,0 +1,30 @@
+/********************************************************************************
+ * Copyright (c) 2025 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
+ ********************************************************************************/
+
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Entities;
+
+namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library;
+
+public interface IProcessStepStatusNavigation
+ where TProcessStep : class, IProcessStep
+ where TProcessStepTypeId : struct, IConvertible
+
+{
+ ICollection ProcessSteps { get; }
+}
diff --git a/src/framework/Framework.Processes.Library/Entities/IProcessStepType.cs b/src/framework/Framework.Processes.Library/Entities/IProcessStepType.cs
new file mode 100644
index 0000000000..e5a374d38f
--- /dev/null
+++ b/src/framework/Framework.Processes.Library/Entities/IProcessStepType.cs
@@ -0,0 +1,31 @@
+/********************************************************************************
+ * Copyright (c) 2025 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
+ ********************************************************************************/
+
+using System.ComponentModel.DataAnnotations;
+
+namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library;
+
+public interface IProcessStepType
+ where TProcessStepTypeId : struct, IConvertible
+{
+ TProcessStepTypeId Id { get; }
+
+ [MaxLength(255)]
+ string Label { get; }
+}
diff --git a/src/framework/Framework.Processes.Library/Entities/IProcessStepTypeNavigation.cs b/src/framework/Framework.Processes.Library/Entities/IProcessStepTypeNavigation.cs
new file mode 100644
index 0000000000..73bdfe5763
--- /dev/null
+++ b/src/framework/Framework.Processes.Library/Entities/IProcessStepTypeNavigation.cs
@@ -0,0 +1,29 @@
+/********************************************************************************
+ * Copyright (c) 2025 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
+ ********************************************************************************/
+
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Entities;
+
+namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library;
+
+public interface IProcessStepTypeNavigation
+ where TProcessStep : class, IProcessStep
+ where TProcessStepTypeId : struct, IConvertible
+{
+ ICollection ProcessSteps { get; }
+}
diff --git a/src/framework/Framework.Processes.Library/Entities/IProcessType.cs b/src/framework/Framework.Processes.Library/Entities/IProcessType.cs
new file mode 100644
index 0000000000..c11b34229c
--- /dev/null
+++ b/src/framework/Framework.Processes.Library/Entities/IProcessType.cs
@@ -0,0 +1,31 @@
+/********************************************************************************
+ * Copyright (c) 2025 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
+ ********************************************************************************/
+
+using System.ComponentModel.DataAnnotations;
+
+namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library;
+
+public interface IProcessType
+ where TProcessTypeId : struct, IConvertible
+{
+ TProcessTypeId Id { get; }
+
+ [MaxLength(255)]
+ string Label { get; }
+}
diff --git a/src/framework/Framework.Processes.Library/Entities/IProcessTypeNavigation.cs b/src/framework/Framework.Processes.Library/Entities/IProcessTypeNavigation.cs
new file mode 100644
index 0000000000..83379329e7
--- /dev/null
+++ b/src/framework/Framework.Processes.Library/Entities/IProcessTypeNavigation.cs
@@ -0,0 +1,29 @@
+/********************************************************************************
+ * Copyright (c) 2025 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
+ ********************************************************************************/
+
+using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Entities;
+
+namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library;
+
+public interface IProcessTypeNavigation
+ where TProcess : class, IProcess
+ where TProcessTypeId : struct, IConvertible
+{
+ ICollection Processes { get; }
+}
diff --git a/src/maintenance/Maintenance.App/Maintenance.App.csproj b/src/maintenance/Maintenance.App/Maintenance.App.csproj
index 6ef41b117e..0a2eab6d2a 100644
--- a/src/maintenance/Maintenance.App/Maintenance.App.csproj
+++ b/src/maintenance/Maintenance.App/Maintenance.App.csproj
@@ -48,8 +48,6 @@
-
-
diff --git a/src/marketplace/Apps.Service/Apps.Service.csproj b/src/marketplace/Apps.Service/Apps.Service.csproj
index 5d0dae803a..5287a1cf9d 100644
--- a/src/marketplace/Apps.Service/Apps.Service.csproj
+++ b/src/marketplace/Apps.Service/Apps.Service.csproj
@@ -49,8 +49,6 @@
-
-
diff --git a/src/marketplace/Offers.Library.Web/Offers.Library.Web.csproj b/src/marketplace/Offers.Library.Web/Offers.Library.Web.csproj
index 3a9fcc6903..2b59a4b30d 100644
--- a/src/marketplace/Offers.Library.Web/Offers.Library.Web.csproj
+++ b/src/marketplace/Offers.Library.Web/Offers.Library.Web.csproj
@@ -28,8 +28,6 @@
-
-
diff --git a/src/marketplace/Offers.Library/Offers.Library.csproj b/src/marketplace/Offers.Library/Offers.Library.csproj
index fb9b3af05a..ced2e276f8 100644
--- a/src/marketplace/Offers.Library/Offers.Library.csproj
+++ b/src/marketplace/Offers.Library/Offers.Library.csproj
@@ -30,9 +30,7 @@
-
-
diff --git a/src/marketplace/Services.Service/Services.Service.csproj b/src/marketplace/Services.Service/Services.Service.csproj
index 3cd6728c0d..1dea012342 100644
--- a/src/marketplace/Services.Service/Services.Service.csproj
+++ b/src/marketplace/Services.Service/Services.Service.csproj
@@ -44,8 +44,6 @@
-
-
diff --git a/src/notifications/Notifications.Library/Notifications.Library.csproj b/src/notifications/Notifications.Library/Notifications.Library.csproj
index 58c5b215cf..52a094a605 100644
--- a/src/notifications/Notifications.Library/Notifications.Library.csproj
+++ b/src/notifications/Notifications.Library/Notifications.Library.csproj
@@ -27,7 +27,6 @@
-
diff --git a/src/notifications/Notifications.Service/Notifications.Service.csproj b/src/notifications/Notifications.Service/Notifications.Service.csproj
index a925e069d9..191e16e72e 100644
--- a/src/notifications/Notifications.Service/Notifications.Service.csproj
+++ b/src/notifications/Notifications.Service/Notifications.Service.csproj
@@ -43,8 +43,6 @@
-
-
diff --git a/src/portalbackend/PortalBackend.DBAccess/Models/VerifyChecklistData.cs b/src/portalbackend/PortalBackend.DBAccess/Models/VerifyChecklistData.cs
index 56039c25a5..f9a5573ce5 100644
--- a/src/portalbackend/PortalBackend.DBAccess/Models/VerifyChecklistData.cs
+++ b/src/portalbackend/PortalBackend.DBAccess/Models/VerifyChecklistData.cs
@@ -19,12 +19,13 @@
********************************************************************************/
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
+using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Entities;
using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums;
namespace Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Models;
public record VerifyChecklistData(
bool IsSubmitted,
- Process? Process,
+ Process? Process,
IEnumerable<(ApplicationChecklistEntryTypeId TypeId, ApplicationChecklistEntryStatusId StatusId, string? Comment)>? Checklist,
- IEnumerable>? ProcessSteps);
+ IEnumerable>? ProcessSteps);
diff --git a/src/portalbackend/PortalBackend.DBAccess/PortalBackend.DBAccess.csproj b/src/portalbackend/PortalBackend.DBAccess/PortalBackend.DBAccess.csproj
index dbc2a2d984..1e0b8f9e53 100644
--- a/src/portalbackend/PortalBackend.DBAccess/PortalBackend.DBAccess.csproj
+++ b/src/portalbackend/PortalBackend.DBAccess/PortalBackend.DBAccess.csproj
@@ -27,9 +27,7 @@
-
-
diff --git a/src/portalbackend/PortalBackend.DBAccess/PortalProcessDbContextAccess.cs b/src/portalbackend/PortalBackend.DBAccess/PortalProcessDbContextAccess.cs
index 1a7825a567..93a93ad82d 100644
--- a/src/portalbackend/PortalBackend.DBAccess/PortalProcessDbContextAccess.cs
+++ b/src/portalbackend/PortalBackend.DBAccess/PortalProcessDbContextAccess.cs
@@ -22,17 +22,18 @@
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Enums;
using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities;
+using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Entities;
using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums;
namespace Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess;
public class PortalProcessDbContextAccess(PortalDbContext dbContext) :
- IProcessRepositoryContextAccess, ProcessStep, ProcessStepStatus, ProcessTypeId, ProcessStepTypeId>
+ IProcessRepositoryContextAccess, ProcessStep, ProcessStepType, ProcessTypeId, ProcessStepTypeId>
{
- public DbSet> Processes => dbContext.Processes;
- public DbSet> ProcessSteps => dbContext.ProcessSteps;
- public DbSet> ProcessStepStatuses => dbContext.ProcessStepStatuses;
+ public DbSet Processes => dbContext.Processes;
+ public DbSet> ProcessSteps => dbContext.ProcessSteps;
+ public DbSet> ProcessStepStatuses => dbContext.ProcessStepStatuses;
- public Process CreateProcess(Guid id, ProcessTypeId processTypeId, Guid version) => new(id, processTypeId, version);
- public ProcessStep CreateProcessStep(Guid id, ProcessStepTypeId processStepTypeId, ProcessStepStatusId processStepStatusId, Guid processId, DateTimeOffset now) => new(id, processStepTypeId, processStepStatusId, processId, now);
+ public Process CreateProcess(Guid id, ProcessTypeId processTypeId, Guid version) => new(id, processTypeId, version);
+ public ProcessStep CreateProcessStep(Guid id, ProcessStepTypeId processStepTypeId, ProcessStepStatusId processStepStatusId, Guid processId, DateTimeOffset now) => new(id, processStepTypeId, processStepStatusId, processId, now);
}
diff --git a/src/portalbackend/PortalBackend.DBAccess/PortalRepositories.cs b/src/portalbackend/PortalBackend.DBAccess/PortalRepositories.cs
index 7966d7ee33..27779cbb93 100644
--- a/src/portalbackend/PortalBackend.DBAccess/PortalRepositories.cs
+++ b/src/portalbackend/PortalBackend.DBAccess/PortalRepositories.cs
@@ -17,22 +17,23 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
+using Org.Eclipse.TractusX.Portal.Backend.Framework.DBAccess;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess;
using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Repositories;
using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities;
+using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Entities;
using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums;
using System.Collections.Immutable;
namespace Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess;
public class PortalRepositories(PortalDbContext portalDbContext) :
- Framework.DBAccess.Repositories(portalDbContext),
+ AbstractRepositories(portalDbContext),
IPortalRepositories
{
- private static KeyValuePair> CreateTypeEntry(Func createFunc) => KeyValuePair.Create(typeof(T), createFunc);
-
- private static readonly IReadOnlyDictionary> RepositoryTypes = ImmutableDictionary.CreateRange(
+ protected override IReadOnlyDictionary> RepositoryTypes => PortalRepositoryTypes;
+ private static readonly IReadOnlyDictionary> PortalRepositoryTypes = ImmutableDictionary.CreateRange(
[
CreateTypeEntry(context => new AgreementRepository(context)),
CreateTypeEntry(context => new ApplicationRepository(context)),
@@ -57,8 +58,8 @@ public class PortalRepositories(PortalDbContext portalDbContext) :
CreateTypeEntry(context => new NetworkRepository(context)),
CreateTypeEntry(context => new OfferRepository(context)),
CreateTypeEntry(context => new OfferSubscriptionsRepository(context)),
- CreateTypeEntry(context => new ProcessStepRepository, ProcessStep, ProcessStepStatus, ProcessTypeId, ProcessStepTypeId>(new PortalProcessDbContextAccess(context))),
- CreateTypeEntry>(context => new ProcessStepRepository, ProcessStep, ProcessStepStatus, ProcessTypeId, ProcessStepTypeId>(new PortalProcessDbContextAccess(context))),
+ CreateTypeEntry(context => new ProcessStepRepository, ProcessStep, ProcessStepType, ProcessTypeId, ProcessStepTypeId>(new PortalProcessDbContextAccess(context))),
+ CreateTypeEntry>(context => new ProcessStepRepository, ProcessStep, ProcessStepType, ProcessTypeId, ProcessStepTypeId>(new PortalProcessDbContextAccess(context))),
CreateTypeEntry(context => new TechnicalUserRepository(context)),
CreateTypeEntry(context => new StaticDataRepository(context)),
CreateTypeEntry(context => new TechnicalUserProfileRepository(context)),
@@ -67,16 +68,4 @@ public class PortalRepositories(PortalDbContext portalDbContext) :
CreateTypeEntry(context => new UserRolesRepository(context)),
CreateTypeEntry(context => new CompanyCertificateRepository(context))
]);
-
- public override RepositoryType GetInstance()
- {
- object? repository = default;
-
- if (RepositoryTypes.TryGetValue(typeof(RepositoryType), out var createFunc))
- {
- repository = createFunc(portalDbContext);
- }
-
- return (RepositoryType)(repository ?? throw new ArgumentException($"unexpected type {typeof(RepositoryType).Name}", nameof(RepositoryType)));
- }
}
diff --git a/src/portalbackend/PortalBackend.Migrations/Migrations/20250117173646_240-CreateProcessPackage.cs b/src/portalbackend/PortalBackend.Migrations/Migrations/20250117173646_240-CreateProcessPackage.cs
deleted file mode 100644
index e1c8968c97..0000000000
--- a/src/portalbackend/PortalBackend.Migrations/Migrations/20250117173646_240-CreateProcessPackage.cs
+++ /dev/null
@@ -1,474 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2025 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
- ********************************************************************************/
-
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace Org.Eclipse.TractusX.Portal.Backend.PortalBackend.Migrations.Migrations
-{
- ///
- public partial class _240CreateProcessPackage : Migration
- {
- ///
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropForeignKey(
- name: "fk_companies_processes_sd_creation_process_id",
- schema: "portal",
- table: "companies");
-
- migrationBuilder.DropForeignKey(
- name: "fk_company_applications_processes_checklist_process_id",
- schema: "portal",
- table: "company_applications");
-
- migrationBuilder.DropForeignKey(
- name: "fk_company_invitations_processes_process_id",
- schema: "portal",
- table: "company_invitations");
-
- migrationBuilder.DropForeignKey(
- name: "fk_company_user_assigned_processes_processes_process_id",
- schema: "portal",
- table: "company_user_assigned_processes");
-
- migrationBuilder.DropForeignKey(
- name: "fk_connectors_processes_sd_creation_process_id",
- schema: "portal",
- table: "connectors");
-
- migrationBuilder.DropForeignKey(
- name: "fk_external_technical_user_creation_data_processes_process_id",
- schema: "portal",
- table: "external_technical_user_creation_data");
-
- migrationBuilder.DropForeignKey(
- name: "fk_identity_provider_assigned_processes_processes_process_id",
- schema: "portal",
- table: "identity_provider_assigned_processes");
-
- migrationBuilder.DropForeignKey(
- name: "fk_mailing_informations_processes_process_id",
- schema: "portal",
- table: "mailing_informations");
-
- migrationBuilder.DropForeignKey(
- name: "fk_network_registrations_processes_process_id",
- schema: "portal",
- table: "network_registrations");
-
- migrationBuilder.DropForeignKey(
- name: "fk_offer_subscriptions_processes_process_id",
- schema: "portal",
- table: "offer_subscriptions");
-
- migrationBuilder.DropForeignKey(
- name: "fk_process_steps_process_step_statuses_process_step_status_id",
- schema: "portal",
- table: "process_steps");
-
- migrationBuilder.DropForeignKey(
- name: "fk_processes_process_types_process_type_id",
- schema: "portal",
- table: "processes");
-
- migrationBuilder.DropIndex(
- name: "ix_offer_subscriptions_process_id",
- schema: "portal",
- table: "offer_subscriptions");
-
- migrationBuilder.DropIndex(
- name: "ix_identity_provider_assigned_processes_process_id",
- schema: "portal",
- table: "identity_provider_assigned_processes");
-
- migrationBuilder.DropIndex(
- name: "ix_company_user_assigned_processes_process_id",
- schema: "portal",
- table: "company_user_assigned_processes");
-
- migrationBuilder.DropIndex(
- name: "ix_company_applications_checklist_process_id",
- schema: "portal",
- table: "company_applications");
-
- migrationBuilder.CreateIndex(
- name: "ix_offer_subscriptions_process_id",
- schema: "portal",
- table: "offer_subscriptions",
- column: "process_id");
-
- migrationBuilder.CreateIndex(
- name: "ix_identity_provider_assigned_processes_process_id",
- schema: "portal",
- table: "identity_provider_assigned_processes",
- column: "process_id");
-
- migrationBuilder.CreateIndex(
- name: "ix_company_user_assigned_processes_process_id",
- schema: "portal",
- table: "company_user_assigned_processes",
- column: "process_id");
-
- migrationBuilder.CreateIndex(
- name: "ix_company_applications_checklist_process_id",
- schema: "portal",
- table: "company_applications",
- column: "checklist_process_id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_companies_process_process_type_id_process_step_type_id_sd_c",
- schema: "portal",
- table: "companies",
- column: "sd_creation_process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_company_applications_process_process_type_id_process_step_t",
- schema: "portal",
- table: "company_applications",
- column: "checklist_process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_company_invitations_process_process_type_id_process_step_ty",
- schema: "portal",
- table: "company_invitations",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_company_user_assigned_processes_process_process_type_id_pro",
- schema: "portal",
- table: "company_user_assigned_processes",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
-
- migrationBuilder.AddForeignKey(
- name: "fk_connectors_process_process_type_id_process_step_type_id_sd_",
- schema: "portal",
- table: "connectors",
- column: "sd_creation_process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_external_technical_user_creation_data_process_process_type_",
- schema: "portal",
- table: "external_technical_user_creation_data",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_identity_provider_assigned_processes_process_process_type_i",
- schema: "portal",
- table: "identity_provider_assigned_processes",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
-
- migrationBuilder.AddForeignKey(
- name: "fk_mailing_informations_process_process_type_id_process_step_t",
- schema: "portal",
- table: "mailing_informations",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_network_registrations_process_process_type_id_process_step_",
- schema: "portal",
- table: "network_registrations",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
-
- migrationBuilder.AddForeignKey(
- name: "fk_offer_subscriptions_process_process_type_id_process_step_ty",
- schema: "portal",
- table: "offer_subscriptions",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_process_steps_process_step_status_process_type_id_process_s",
- schema: "portal",
- table: "process_steps",
- column: "process_step_status_id",
- principalSchema: "portal",
- principalTable: "process_step_statuses",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
-
- migrationBuilder.AddForeignKey(
- name: "fk_processes_process_types_process_type_id",
- schema: "portal",
- table: "processes",
- column: "process_type_id",
- principalSchema: "portal",
- principalTable: "process_types",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
- }
-
- ///
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropForeignKey(
- name: "fk_companies_process_process_type_id_process_step_type_id_sd_c",
- schema: "portal",
- table: "companies");
-
- migrationBuilder.DropForeignKey(
- name: "fk_company_applications_process_process_type_id_process_step_t",
- schema: "portal",
- table: "company_applications");
-
- migrationBuilder.DropForeignKey(
- name: "fk_company_invitations_process_process_type_id_process_step_ty",
- schema: "portal",
- table: "company_invitations");
-
- migrationBuilder.DropForeignKey(
- name: "fk_company_user_assigned_processes_process_process_type_id_pro",
- schema: "portal",
- table: "company_user_assigned_processes");
-
- migrationBuilder.DropForeignKey(
- name: "fk_connectors_process_process_type_id_process_step_type_id_sd_",
- schema: "portal",
- table: "connectors");
-
- migrationBuilder.DropForeignKey(
- name: "fk_external_technical_user_creation_data_process_process_type_",
- schema: "portal",
- table: "external_technical_user_creation_data");
-
- migrationBuilder.DropForeignKey(
- name: "fk_identity_provider_assigned_processes_process_process_type_i",
- schema: "portal",
- table: "identity_provider_assigned_processes");
-
- migrationBuilder.DropForeignKey(
- name: "fk_mailing_informations_process_process_type_id_process_step_t",
- schema: "portal",
- table: "mailing_informations");
-
- migrationBuilder.DropForeignKey(
- name: "fk_network_registrations_process_process_type_id_process_step_",
- schema: "portal",
- table: "network_registrations");
-
- migrationBuilder.DropForeignKey(
- name: "fk_offer_subscriptions_process_process_type_id_process_step_ty",
- schema: "portal",
- table: "offer_subscriptions");
-
- migrationBuilder.DropForeignKey(
- name: "fk_process_steps_process_step_status_process_type_id_process_s",
- schema: "portal",
- table: "process_steps");
-
- migrationBuilder.DropForeignKey(
- name: "fk_processes_process_types_process_type_id",
- schema: "portal",
- table: "processes");
-
- migrationBuilder.DropIndex(
- name: "ix_offer_subscriptions_process_id",
- schema: "portal",
- table: "offer_subscriptions");
-
- migrationBuilder.DropIndex(
- name: "ix_identity_provider_assigned_processes_process_id",
- schema: "portal",
- table: "identity_provider_assigned_processes");
-
- migrationBuilder.DropIndex(
- name: "ix_company_user_assigned_processes_process_id",
- schema: "portal",
- table: "company_user_assigned_processes");
-
- migrationBuilder.DropIndex(
- name: "ix_company_applications_checklist_process_id",
- schema: "portal",
- table: "company_applications");
-
- migrationBuilder.CreateIndex(
- name: "ix_offer_subscriptions_process_id",
- schema: "portal",
- table: "offer_subscriptions",
- column: "process_id",
- unique: true);
-
- migrationBuilder.CreateIndex(
- name: "ix_identity_provider_assigned_processes_process_id",
- schema: "portal",
- table: "identity_provider_assigned_processes",
- column: "process_id",
- unique: true);
-
- migrationBuilder.CreateIndex(
- name: "ix_company_user_assigned_processes_process_id",
- schema: "portal",
- table: "company_user_assigned_processes",
- column: "process_id",
- unique: true);
-
- migrationBuilder.CreateIndex(
- name: "ix_company_applications_checklist_process_id",
- schema: "portal",
- table: "company_applications",
- column: "checklist_process_id",
- unique: true);
-
- migrationBuilder.AddForeignKey(
- name: "fk_companies_processes_sd_creation_process_id",
- schema: "portal",
- table: "companies",
- column: "sd_creation_process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_company_applications_processes_checklist_process_id",
- schema: "portal",
- table: "company_applications",
- column: "checklist_process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_company_invitations_processes_process_id",
- schema: "portal",
- table: "company_invitations",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_company_user_assigned_processes_processes_process_id",
- schema: "portal",
- table: "company_user_assigned_processes",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
-
- migrationBuilder.AddForeignKey(
- name: "fk_connectors_processes_sd_creation_process_id",
- schema: "portal",
- table: "connectors",
- column: "sd_creation_process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_external_technical_user_creation_data_processes_process_id",
- schema: "portal",
- table: "external_technical_user_creation_data",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_identity_provider_assigned_processes_processes_process_id",
- schema: "portal",
- table: "identity_provider_assigned_processes",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
-
- migrationBuilder.AddForeignKey(
- name: "fk_mailing_informations_processes_process_id",
- schema: "portal",
- table: "mailing_informations",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_network_registrations_processes_process_id",
- schema: "portal",
- table: "network_registrations",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
-
- migrationBuilder.AddForeignKey(
- name: "fk_offer_subscriptions_processes_process_id",
- schema: "portal",
- table: "offer_subscriptions",
- column: "process_id",
- principalSchema: "portal",
- principalTable: "processes",
- principalColumn: "id");
-
- migrationBuilder.AddForeignKey(
- name: "fk_process_steps_process_step_statuses_process_step_status_id",
- schema: "portal",
- table: "process_steps",
- column: "process_step_status_id",
- principalSchema: "portal",
- principalTable: "process_step_statuses",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
-
- migrationBuilder.AddForeignKey(
- name: "fk_processes_process_types_process_type_id",
- schema: "portal",
- table: "processes",
- column: "process_type_id",
- principalSchema: "portal",
- principalTable: "process_types",
- principalColumn: "id");
- }
- }
-}
diff --git a/src/portalbackend/PortalBackend.Migrations/Migrations/20250117173646_240-CreateProcessPackage.Designer.cs b/src/portalbackend/PortalBackend.Migrations/Migrations/20250122160213_240-CreateProcessPackage.Designer.cs
similarity index 98%
rename from src/portalbackend/PortalBackend.Migrations/Migrations/20250117173646_240-CreateProcessPackage.Designer.cs
rename to src/portalbackend/PortalBackend.Migrations/Migrations/20250122160213_240-CreateProcessPackage.Designer.cs
index b568e4440b..6e02935091 100644
--- a/src/portalbackend/PortalBackend.Migrations/Migrations/20250117173646_240-CreateProcessPackage.Designer.cs
+++ b/src/portalbackend/PortalBackend.Migrations/Migrations/20250122160213_240-CreateProcessPackage.Designer.cs
@@ -29,7 +29,7 @@
namespace Org.Eclipse.TractusX.Portal.Backend.PortalBackend.Migrations.Migrations
{
[DbContext(typeof(PortalDbContext))]
- [Migration("20250117173646_240-CreateProcessPackage")]
+ [Migration("20250122160213_240-CreateProcessPackage")]
partial class _240CreateProcessPackage
{
///
@@ -44,36 +44,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities.Process", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LockExpiryDate")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("lock_expiry_date");
-
- b.Property("ProcessTypeId")
- .HasColumnType("integer")
- .HasColumnName("process_type_id");
-
- b.Property("Version")
- .IsConcurrencyToken()
- .HasColumnType("uuid")
- .HasColumnName("version");
-
- b.HasKey("Id")
- .HasName("pk_processes");
-
- b.HasIndex("ProcessTypeId")
- .HasDatabaseName("ix_processes_process_type_id");
-
- b.ToTable("processes", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities.ProcessStep", b =>
+ modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities.ProcessStep", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -119,7 +90,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("process_steps", "portal");
});
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities.ProcessStepStatus", b =>
+ modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities.ProcessStepStatus", b =>
{
b.Property("Id")
.HasColumnType("integer")
@@ -164,931 +135,651 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
});
});
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditAppSubscriptionDetail20221118", b =>
+ modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities.ProcessStepType", b =>
{
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AppInstanceId")
- .HasColumnType("uuid")
- .HasColumnName("app_instance_id");
-
- b.Property("AppSubscriptionUrl")
- .HasMaxLength(255)
- .HasColumnType("character varying(255)")
- .HasColumnName("app_subscription_url");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
+ b.Property("Id")
.HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("Id")
- .HasColumnType("uuid")
.HasColumnName("id");
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("OfferSubscriptionId")
- .HasColumnType("uuid")
- .HasColumnName("offer_subscription_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_app_subscription_detail20221118");
-
- b.ToTable("audit_app_subscription_detail20221118", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditAppSubscriptionDetail20231115", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AppInstanceId")
- .HasColumnType("uuid")
- .HasColumnName("app_instance_id");
-
- b.Property("AppSubscriptionUrl")
+ b.Property("Label")
+ .IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)")
- .HasColumnName("app_subscription_url");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("OfferSubscriptionId")
- .HasColumnType("uuid")
- .HasColumnName("offer_subscription_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_app_subscription_detail20231115");
-
- b.ToTable("audit_app_subscription_detail20231115", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditCertificateManagement20240416", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("CompanyCertificateStatusId")
- .HasColumnType("integer")
- .HasColumnName("company_certificate_status_id");
-
- b.Property("CompanyCertificateTypeId")
- .HasColumnType("integer")
- .HasColumnName("company_certificate_type_id");
-
- b.Property("CompanyId")
- .HasColumnType("uuid")
- .HasColumnName("company_id");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("DocumentId")
- .HasColumnType("uuid")
- .HasColumnName("document_id");
-
- b.Property("ExternalCertificateNumber")
- .HasColumnType("text")
- .HasColumnName("external_certificate_number");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("Issuer")
- .HasColumnType("text")
- .HasColumnName("issuer");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("TrustLevel")
- .HasColumnType("text")
- .HasColumnName("trust_level");
-
- b.Property("ValidFrom")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("valid_from");
-
- b.Property("ValidTill")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("valid_till");
-
- b.Property("Validator")
- .HasColumnType("text")
- .HasColumnName("validator");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_certificate_management20240416");
-
- b.ToTable("audit_certificate_management20240416", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditCompanyApplication20221005", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("ApplicationStatusId")
- .HasColumnType("integer")
- .HasColumnName("application_status_id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("CompanyId")
- .HasColumnType("uuid")
- .HasColumnName("company_id");
-
- b.Property("DateCreated")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_created");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_company_application20221005");
-
- b.ToTable("audit_company_application20221005", "portal");
- });
+ .HasColumnName("label");
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditCompanyApplication20230214", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
+ b.HasKey("Id")
+ .HasName("pk_process_step_types");
- b.Property("ApplicationStatusId")
- .HasColumnType("integer")
- .HasColumnName("application_status_id");
+ b.ToTable("process_step_types", "portal");
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("ChecklistProcessId")
- .HasColumnType("uuid")
- .HasColumnName("checklist_process_id");
-
- b.Property("CompanyId")
- .HasColumnType("uuid")
- .HasColumnName("company_id");
-
- b.Property("DateCreated")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_created");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_company_application20230214");
-
- b.ToTable("audit_company_application20230214", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditCompanyApplication20230824", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("ApplicationStatusId")
- .HasColumnType("integer")
- .HasColumnName("application_status_id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("ChecklistProcessId")
- .HasColumnType("uuid")
- .HasColumnName("checklist_process_id");
-
- b.Property("CompanyApplicationTypeId")
- .HasColumnType("integer")
- .HasColumnName("company_application_type_id");
-
- b.Property("CompanyId")
- .HasColumnType("uuid")
- .HasColumnName("company_id");
-
- b.Property("DateCreated")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_created");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("OnboardingServiceProviderId")
- .HasColumnType("uuid")
- .HasColumnName("onboarding_service_provider_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_company_application20230824");
-
- b.ToTable("audit_company_application20230824", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditCompanyApplication20231115", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("ApplicationStatusId")
- .HasColumnType("integer")
- .HasColumnName("application_status_id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("ChecklistProcessId")
- .HasColumnType("uuid")
- .HasColumnName("checklist_process_id");
-
- b.Property("CompanyApplicationTypeId")
- .HasColumnType("integer")
- .HasColumnName("company_application_type_id");
-
- b.Property("CompanyId")
- .HasColumnType("uuid")
- .HasColumnName("company_id");
-
- b.Property("DateCreated")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_created");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("OnboardingServiceProviderId")
- .HasColumnType("uuid")
- .HasColumnName("onboarding_service_provider_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_company_application20231115");
-
- b.ToTable("audit_company_application20231115", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditCompanyAssignedRole2023316", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("CompanyId")
- .HasColumnType("uuid")
- .HasColumnName("company_id");
-
- b.Property("CompanyRoleId")
- .HasColumnType("integer")
- .HasColumnName("company_role_id");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_company_assigned_role2023316");
-
- b.ToTable("audit_company_assigned_role2023316", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditCompanyUser20221005", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("CompanyId")
- .HasColumnType("uuid")
- .HasColumnName("company_id");
-
- b.Property("CompanyUserStatusId")
- .HasColumnType("integer")
- .HasColumnName("company_user_status_id");
-
- b.Property("DateCreated")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_created");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("Email")
- .HasColumnType("text")
- .HasColumnName("email");
-
- b.Property("Firstname")
- .HasColumnType("text")
- .HasColumnName("firstname");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("Lastlogin")
- .HasColumnType("bytea")
- .HasColumnName("lastlogin");
-
- b.Property("Lastname")
- .HasColumnType("text")
- .HasColumnName("lastname");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_company_user20221005");
-
- b.ToTable("audit_company_user20221005", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditCompanyUser20230522", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("Email")
- .HasColumnType("text")
- .HasColumnName("email");
-
- b.Property("Firstname")
- .HasColumnType("text")
- .HasColumnName("firstname");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("Lastlogin")
- .HasColumnType("bytea")
- .HasColumnName("lastlogin");
-
- b.Property("Lastname")
- .HasColumnType("text")
- .HasColumnName("lastname");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_company_user20230523");
-
- b.ToTable("audit_company_user20230523", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditCompanyUserAssignedRole20221018", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("CompanyUserId")
- .HasColumnType("uuid")
- .HasColumnName("company_user_id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("UserRoleId")
- .HasColumnType("uuid")
- .HasColumnName("user_role_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_company_user_assigned_role20221018");
-
- b.ToTable("audit_company_user_assigned_role20221018", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditConnector20230405", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("ConnectorUrl")
- .IsRequired()
- .HasMaxLength(255)
- .HasColumnType("character varying(255)")
- .HasColumnName("connector_url");
-
- b.Property("DapsRegistrationSuccessful")
- .HasColumnType("boolean")
- .HasColumnName("daps_registration_successful");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("HostId")
- .HasColumnType("uuid")
- .HasColumnName("host_id");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("LocationId")
- .IsRequired()
- .HasMaxLength(2)
- .HasColumnType("character varying(2)")
- .HasColumnName("location_id");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(255)
- .HasColumnType("character varying(255)")
- .HasColumnName("name");
-
- b.Property("ProviderId")
- .HasColumnType("uuid")
- .HasColumnName("provider_id");
-
- b.Property("SelfDescriptionDocumentId")
- .HasColumnType("uuid")
- .HasColumnName("self_description_document_id");
-
- b.Property("SelfDescriptionMessage")
- .HasColumnType("text")
- .HasColumnName("self_description_message");
-
- b.Property("StatusId")
- .HasColumnType("integer")
- .HasColumnName("status_id");
-
- b.Property("TypeId")
- .HasColumnType("integer")
- .HasColumnName("type_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_connector20230405");
-
- b.ToTable("audit_connector20230405", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditConnector20230503", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("CompanyServiceAccountId")
- .HasColumnType("uuid")
- .HasColumnName("company_service_account_id");
-
- b.Property("ConnectorUrl")
- .IsRequired()
- .HasMaxLength(255)
- .HasColumnType("character varying(255)")
- .HasColumnName("connector_url");
-
- b.Property("DapsRegistrationSuccessful")
- .HasColumnType("boolean")
- .HasColumnName("daps_registration_successful");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("HostId")
- .HasColumnType("uuid")
- .HasColumnName("host_id");
-
- b.Property("Id")
- .HasColumnType("uuid")
- .HasColumnName("id");
-
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("LocationId")
- .IsRequired()
- .HasMaxLength(2)
- .HasColumnType("character varying(2)")
- .HasColumnName("location_id");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(255)
- .HasColumnType("character varying(255)")
- .HasColumnName("name");
-
- b.Property("ProviderId")
- .HasColumnType("uuid")
- .HasColumnName("provider_id");
-
- b.Property("SelfDescriptionDocumentId")
- .HasColumnType("uuid")
- .HasColumnName("self_description_document_id");
-
- b.Property("SelfDescriptionMessage")
- .HasColumnType("text")
- .HasColumnName("self_description_message");
-
- b.Property("StatusId")
- .HasColumnType("integer")
- .HasColumnName("status_id");
-
- b.Property("TypeId")
- .HasColumnType("integer")
- .HasColumnName("type_id");
-
- b.HasKey("AuditV1Id")
- .HasName("pk_audit_connector20230503");
-
- b.ToTable("audit_connector20230503", "portal");
- });
-
- modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.AuditEntities.AuditConnector20230803", b =>
- {
- b.Property("AuditV1Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uuid")
- .HasColumnName("audit_v1id");
-
- b.Property("AuditV1DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("audit_v1date_last_changed");
-
- b.Property("AuditV1LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("audit_v1last_editor_id");
-
- b.Property("AuditV1OperationId")
- .HasColumnType("integer")
- .HasColumnName("audit_v1operation_id");
-
- b.Property("CompanyServiceAccountId")
- .HasColumnType("uuid")
- .HasColumnName("company_service_account_id");
-
- b.Property("ConnectorUrl")
- .IsRequired()
- .HasMaxLength(255)
- .HasColumnType("character varying(255)")
- .HasColumnName("connector_url");
-
- b.Property("DateLastChanged")
- .HasColumnType("timestamp with time zone")
- .HasColumnName("date_last_changed");
-
- b.Property("HostId")
- .HasColumnType("uuid")
- .HasColumnName("host_id");
+ b.HasData(
+ new
+ {
+ Id = 1,
+ Label = "MANUAL_VERIFY_REGISTRATION"
+ },
+ new
+ {
+ Id = 2,
+ Label = "CREATE_BUSINESS_PARTNER_NUMBER_PUSH"
+ },
+ new
+ {
+ Id = 3,
+ Label = "CREATE_BUSINESS_PARTNER_NUMBER_PULL"
+ },
+ new
+ {
+ Id = 4,
+ Label = "CREATE_BUSINESS_PARTNER_NUMBER_MANUAL"
+ },
+ new
+ {
+ Id = 5,
+ Label = "CREATE_IDENTITY_WALLET"
+ },
+ new
+ {
+ Id = 6,
+ Label = "RETRIGGER_IDENTITY_WALLET"
+ },
+ new
+ {
+ Id = 7,
+ Label = "START_CLEARING_HOUSE"
+ },
+ new
+ {
+ Id = 8,
+ Label = "RETRIGGER_CLEARING_HOUSE"
+ },
+ new
+ {
+ Id = 9,
+ Label = "AWAIT_CLEARING_HOUSE_RESPONSE"
+ },
+ new
+ {
+ Id = 10,
+ Label = "START_SELF_DESCRIPTION_LP"
+ },
+ new
+ {
+ Id = 11,
+ Label = "RETRIGGER_SELF_DESCRIPTION_LP"
+ },
+ new
+ {
+ Id = 12,
+ Label = "START_APPLICATION_ACTIVATION"
+ },
+ new
+ {
+ Id = 13,
+ Label = "RETRIGGER_BUSINESS_PARTNER_NUMBER_PUSH"
+ },
+ new
+ {
+ Id = 14,
+ Label = "RETRIGGER_BUSINESS_PARTNER_NUMBER_PULL"
+ },
+ new
+ {
+ Id = 16,
+ Label = "MANUAL_TRIGGER_OVERRIDE_CLEARING_HOUSE"
+ },
+ new
+ {
+ Id = 17,
+ Label = "START_OVERRIDE_CLEARING_HOUSE"
+ },
+ new
+ {
+ Id = 18,
+ Label = "AWAIT_SELF_DESCRIPTION_LP_RESPONSE"
+ },
+ new
+ {
+ Id = 19,
+ Label = "MANUAL_DECLINE_APPLICATION"
+ },
+ new
+ {
+ Id = 20,
+ Label = "CREATE_DIM_WALLET"
+ },
+ new
+ {
+ Id = 21,
+ Label = "AWAIT_DIM_RESPONSE_RESPONSE"
+ },
+ new
+ {
+ Id = 22,
+ Label = "RETRIGGER_CREATE_DIM_WALLET"
+ },
+ new
+ {
+ Id = 23,
+ Label = "VALIDATE_DID_DOCUMENT"
+ },
+ new
+ {
+ Id = 24,
+ Label = "RETRIGGER_VALIDATE_DID_DOCUMENT"
+ },
+ new
+ {
+ Id = 25,
+ Label = "REQUEST_BPN_CREDENTIAL"
+ },
+ new
+ {
+ Id = 26,
+ Label = "AWAIT_BPN_CREDENTIAL_RESPONSE"
+ },
+ new
+ {
+ Id = 27,
+ Label = "REQUEST_MEMBERSHIP_CREDENTIAL"
+ },
+ new
+ {
+ Id = 28,
+ Label = "AWAIT_MEMBERSHIP_CREDENTIAL_RESPONSE"
+ },
+ new
+ {
+ Id = 29,
+ Label = "TRANSMIT_BPN_DID"
+ },
+ new
+ {
+ Id = 30,
+ Label = "RETRIGGER_TRANSMIT_DID_BPN"
+ },
+ new
+ {
+ Id = 31,
+ Label = "RETRIGGER_REQUEST_BPN_CREDENTIAL"
+ },
+ new
+ {
+ Id = 32,
+ Label = "RETRIGGER_REQUEST_MEMBERSHIP_CREDENTIAL"
+ },
+ new
+ {
+ Id = 33,
+ Label = "ASSIGN_INITIAL_ROLES"
+ },
+ new
+ {
+ Id = 34,
+ Label = "ASSIGN_BPN_TO_USERS"
+ },
+ new
+ {
+ Id = 35,
+ Label = "REMOVE_REGISTRATION_ROLES"
+ },
+ new
+ {
+ Id = 36,
+ Label = "SET_THEME"
+ },
+ new
+ {
+ Id = 37,
+ Label = "SET_MEMBERSHIP"
+ },
+ new
+ {
+ Id = 38,
+ Label = "FINISH_APPLICATION_ACTIVATION"
+ },
+ new
+ {
+ Id = 39,
+ Label = "RETRIGGER_ASSIGN_INITIAL_ROLES"
+ },
+ new
+ {
+ Id = 40,
+ Label = "RETRIGGER_ASSIGN_BPN_TO_USERS"
+ },
+ new
+ {
+ Id = 41,
+ Label = "RETRIGGER_REMOVE_REGISTRATION_ROLES"
+ },
+ new
+ {
+ Id = 42,
+ Label = "RETRIGGER_SET_THEME"
+ },
+ new
+ {
+ Id = 43,
+ Label = "RETRIGGER_SET_MEMBERSHIP"
+ },
+ new
+ {
+ Id = 100,
+ Label = "TRIGGER_PROVIDER"
+ },
+ new
+ {
+ Id = 101,
+ Label = "AWAIT_START_AUTOSETUP"
+ },
+ new
+ {
+ Id = 102,
+ Label = "OFFERSUBSCRIPTION_CLIENT_CREATION"
+ },
+ new
+ {
+ Id = 103,
+ Label = "SINGLE_INSTANCE_SUBSCRIPTION_DETAILS_CREATION"
+ },
+ new
+ {
+ Id = 104,
+ Label = "OFFERSUBSCRIPTION_TECHNICALUSER_CREATION"
+ },
+ new
+ {
+ Id = 105,
+ Label = "ACTIVATE_SUBSCRIPTION"
+ },
+ new
+ {
+ Id = 106,
+ Label = "TRIGGER_PROVIDER_CALLBACK"
+ },
+ new
+ {
+ Id = 107,
+ Label = "RETRIGGER_PROVIDER"
+ },
+ new
+ {
+ Id = 108,
+ Label = "RETRIGGER_OFFERSUBSCRIPTION_CLIENT_CREATION"
+ },
+ new
+ {
+ Id = 109,
+ Label = "RETRIGGER_OFFERSUBSCRIPTION_TECHNICALUSER_CREATION"
+ },
+ new
+ {
+ Id = 110,
+ Label = "RETRIGGER_PROVIDER_CALLBACK"
+ },
+ new
+ {
+ Id = 111,
+ Label = "MANUAL_TRIGGER_ACTIVATE_SUBSCRIPTION"
+ },
+ new
+ {
+ Id = 112,
+ Label = "OFFERSUBSCRIPTION_CREATE_DIM_TECHNICAL_USER"
+ },
+ new
+ {
+ Id = 113,
+ Label = "RETRIGGER_OFFERSUBSCRIPTION_CREATE_DIM_TECHNICAL_USER"
+ },
+ new
+ {
+ Id = 200,
+ Label = "SYNCHRONIZE_USER"
+ },
+ new
+ {
+ Id = 201,
+ Label = "RETRIGGER_SYNCHRONIZE_USER"
+ },
+ new
+ {
+ Id = 202,
+ Label = "TRIGGER_CALLBACK_OSP_SUBMITTED"
+ },
+ new
+ {
+ Id = 203,
+ Label = "TRIGGER_CALLBACK_OSP_APPROVED"
+ },
+ new
+ {
+ Id = 204,
+ Label = "TRIGGER_CALLBACK_OSP_DECLINED"
+ },
+ new
+ {
+ Id = 205,
+ Label = "RETRIGGER_CALLBACK_OSP_SUBMITTED"
+ },
+ new
+ {
+ Id = 206,
+ Label = "RETRIGGER_CALLBACK_OSP_APPROVED"
+ },
+ new
+ {
+ Id = 207,
+ Label = "RETRIGGER_CALLBACK_OSP_DECLINED"
+ },
+ new
+ {
+ Id = 208,
+ Label = "MANUAL_DECLINE_OSP"
+ },
+ new
+ {
+ Id = 209,
+ Label = "REMOVE_KEYCLOAK_USERS"
+ },
+ new
+ {
+ Id = 210,
+ Label = "RETRIGGER_REMOVE_KEYCLOAK_USERS"
+ },
+ new
+ {
+ Id = 301,
+ Label = "SEND_MAIL"
+ },
+ new
+ {
+ Id = 302,
+ Label = "RETRIGGER_SEND_MAIL"
+ },
+ new
+ {
+ Id = 400,
+ Label = "INVITATION_CREATE_CENTRAL_IDP"
+ },
+ new
+ {
+ Id = 401,
+ Label = "INVITATION_CREATE_SHARED_IDP_SERVICE_ACCOUNT"
+ },
+ new
+ {
+ Id = 402,
+ Label = "INVITATION_ADD_REALM_ROLE"
+ },
+ new
+ {
+ Id = 403,
+ Label = "INVITATION_CREATE_SHARED_REALM"
+ },
+ new
+ {
+ Id = 404,
+ Label = "INVITATION_CREATE_CENTRAL_IDP_ORG_MAPPER"
+ },
+ new
+ {
+ Id = 405,
+ Label = "INVITATION_UPDATE_CENTRAL_IDP_URLS"
+ },
+ new
+ {
+ Id = 406,
+ Label = "INVITATION_CREATE_SHARED_CLIENT"
+ },
+ new
+ {
+ Id = 407,
+ Label = "INVITATION_ENABLE_CENTRAL_IDP"
+ },
+ new
+ {
+ Id = 408,
+ Label = "INVITATION_CREATE_DATABASE_IDP"
+ },
+ new
+ {
+ Id = 409,
+ Label = "INVITATION_CREATE_USER"
+ },
+ new
+ {
+ Id = 410,
+ Label = "RETRIGGER_INVITATION_CREATE_CENTRAL_IDP"
+ },
+ new
+ {
+ Id = 411,
+ Label = "RETRIGGER_INVITATION_CREATE_SHARED_IDP_SERVICE_ACCOUNT"
+ },
+ new
+ {
+ Id = 412,
+ Label = "RETRIGGER_INVITATION_ADD_REALM_ROLE"
+ },
+ new
+ {
+ Id = 413,
+ Label = "RETRIGGER_INVITATION_CREATE_SHARED_REALM"
+ },
+ new
+ {
+ Id = 414,
+ Label = "RETRIGGER_INVITATION_CREATE_CENTRAL_IDP_ORG_MAPPER"
+ },
+ new
+ {
+ Id = 415,
+ Label = "RETRIGGER_INVITATION_UPDATE_CENTRAL_IDP_URLS"
+ },
+ new
+ {
+ Id = 416,
+ Label = "RETRIGGER_INVITATION_CREATE_SHARED_CLIENT"
+ },
+ new
+ {
+ Id = 417,
+ Label = "RETRIGGER_INVITATION_ENABLE_CENTRAL_IDP"
+ },
+ new
+ {
+ Id = 418,
+ Label = "RETRIGGER_INVITATION_CREATE_USER"
+ },
+ new
+ {
+ Id = 419,
+ Label = "RETRIGGER_INVITATION_CREATE_DATABASE_IDP"
+ },
+ new
+ {
+ Id = 500,
+ Label = "CREATE_DIM_TECHNICAL_USER"
+ },
+ new
+ {
+ Id = 501,
+ Label = "RETRIGGER_CREATE_DIM_TECHNICAL_USER"
+ },
+ new
+ {
+ Id = 502,
+ Label = "AWAIT_CREATE_DIM_TECHNICAL_USER_RESPONSE"
+ },
+ new
+ {
+ Id = 504,
+ Label = "DELETE_DIM_TECHNICAL_USER"
+ },
+ new
+ {
+ Id = 505,
+ Label = "AWAIT_DELETE_DIM_TECHNICAL_USER_RESPONSE"
+ },
+ new
+ {
+ Id = 506,
+ Label = "RETRIGGER_DELETE_DIM_TECHNICAL_USER"
+ },
+ new
+ {
+ Id = 600,
+ Label = "DELETE_CENTRAL_USER"
+ },
+ new
+ {
+ Id = 601,
+ Label = "RETRIGGER_DELETE_CENTRAL_USER"
+ },
+ new
+ {
+ Id = 602,
+ Label = "DELETE_COMPANYUSER_ASSIGNED_PROCESS"
+ },
+ new
+ {
+ Id = 700,
+ Label = "DELETE_IDP_SHARED_REALM"
+ },
+ new
+ {
+ Id = 701,
+ Label = "RETRIGGER_DELETE_IDP_SHARED_REALM"
+ },
+ new
+ {
+ Id = 702,
+ Label = "DELETE_IDP_SHARED_SERVICEACCOUNT"
+ },
+ new
+ {
+ Id = 703,
+ Label = "RETRIGGER_DELETE_IDP_SHARED_SERVICEACCOUNT"
+ },
+ new
+ {
+ Id = 704,
+ Label = "DELETE_CENTRAL_IDENTITY_PROVIDER"
+ },
+ new
+ {
+ Id = 705,
+ Label = "RETRIGGER_DELETE_CENTRAL_IDENTITY_PROVIDER"
+ },
+ new
+ {
+ Id = 706,
+ Label = "DELETE_IDENTITY_PROVIDER"
+ },
+ new
+ {
+ Id = 800,
+ Label = "SELF_DESCRIPTION_CONNECTOR_CREATION"
+ },
+ new
+ {
+ Id = 801,
+ Label = "SELF_DESCRIPTION_COMPANY_CREATION"
+ },
+ new
+ {
+ Id = 802,
+ Label = "RETRIGGER_SELF_DESCRIPTION_CONNECTOR_CREATION"
+ },
+ new
+ {
+ Id = 803,
+ Label = "RETRIGGER_SELF_DESCRIPTION_COMPANY_CREATION"
+ });
+ });
- b.Property("Id")
- .HasColumnType("uuid")
+ modelBuilder.Entity("Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities.ProcessType", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("integer")
.HasColumnName("id");
- b.Property("LastEditorId")
- .HasColumnType("uuid")
- .HasColumnName("last_editor_id");
-
- b.Property("LocationId")
- .IsRequired()
- .HasMaxLength(2)
- .HasColumnType("character varying(2)")
- .HasColumnName("location_id");
-
- b.Property("Name")
+ b.Property("Label")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)")
- .HasColumnName("name");
-
- b.Property("ProviderId")
- .HasColumnType("uuid")
- .HasColumnName("provider_id");
-
- b.Property("SelfDescriptionDocumentId")
- .HasColumnType("uuid")
- .HasColumnName("self_description_document_id");
-
- b.Property("SelfDescriptionMessage")
- .HasColumnType("text")
- .HasColumnName("self_description_message");
-
- b.Property("StatusId")
- .HasColumnType("integer")
- .HasColumnName("status_id");
+ .HasColumnName("label");
- b.Property