diff --git a/e-suite.API.Common/e-suite.API.Common.UnitTests/e-suite.API.Common.UnitTests.csproj b/e-suite.API.Common/e-suite.API.Common.UnitTests/e-suite.API.Common.UnitTests.csproj
index 318b4fc..86253ea 100644
--- a/e-suite.API.Common/e-suite.API.Common.UnitTests/e-suite.API.Common.UnitTests.csproj
+++ b/e-suite.API.Common/e-suite.API.Common.UnitTests/e-suite.API.Common.UnitTests.csproj
@@ -8,10 +8,10 @@
-
+
-
+
diff --git a/e-suite.API.Common/e-suite.API.Common/e-suite.API.Common.csproj b/e-suite.API.Common/e-suite.API.Common/e-suite.API.Common.csproj
index 3881911..3ddf60d 100644
--- a/e-suite.API.Common/e-suite.API.Common/e-suite.API.Common.csproj
+++ b/e-suite.API.Common/e-suite.API.Common/e-suite.API.Common.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/e-suite.API.Common/e-suite.API.Common/repository/IActivityRepository.cs b/e-suite.API.Common/e-suite.API.Common/repository/IActivityRepository.cs
index 71ff588..1a933a0 100644
--- a/e-suite.API.Common/e-suite.API.Common/repository/IActivityRepository.cs
+++ b/e-suite.API.Common/e-suite.API.Common/repository/IActivityRepository.cs
@@ -22,4 +22,5 @@ public interface IActivityRepository : IRepository
);
Task AddActivityTasksAsync(AuditUserDetails auditUserDetails, IEnumerable activityTasks, CancellationToken cancellationToken);
+ Task UpdateActivityTasksAsync(AuditUserDetails auditUserDetails, ICollection tasks, CancellationToken cancellationToken);
}
\ No newline at end of file
diff --git a/e-suite.API/eSuite.API.UnitTests/eSuite.API.UnitTests.csproj b/e-suite.API/eSuite.API.UnitTests/eSuite.API.UnitTests.csproj
index 26b6b82..2aaf19c 100644
--- a/e-suite.API/eSuite.API.UnitTests/eSuite.API.UnitTests.csproj
+++ b/e-suite.API/eSuite.API.UnitTests/eSuite.API.UnitTests.csproj
@@ -14,7 +14,7 @@
-
+
diff --git a/e-suite.API/eSuite.API/eSuite.API.csproj b/e-suite.API/eSuite.API/eSuite.API.csproj
index fd14dd2..51b98d8 100644
--- a/e-suite.API/eSuite.API/eSuite.API.csproj
+++ b/e-suite.API/eSuite.API/eSuite.API.csproj
@@ -34,9 +34,9 @@
-
+
-
+
diff --git a/e-suite.Core/eSuite.Core.UnitTests/eSuite.Core.UnitTests.csproj b/e-suite.Core/eSuite.Core.UnitTests/eSuite.Core.UnitTests.csproj
index fc89dbc..9f1c9d2 100644
--- a/e-suite.Core/eSuite.Core.UnitTests/eSuite.Core.UnitTests.csproj
+++ b/e-suite.Core/eSuite.Core.UnitTests/eSuite.Core.UnitTests.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/e-suite.Core/eSuite.Core/Enums/ActivityState.cs b/e-suite.Core/eSuite.Core/Enums/ActivityState.cs
index ae6c80a..a4923af 100644
--- a/e-suite.Core/eSuite.Core/Enums/ActivityState.cs
+++ b/e-suite.Core/eSuite.Core/Enums/ActivityState.cs
@@ -10,6 +10,8 @@ public enum ActivityState
Cancelled,
[Description("The activity is currently active for processing")]
Active,
+ [Description("Interactive processing of this task has finished and the workflow processor can process the outcome")]
+ ReadyToComplete,
[Description("Processing of this activity has finished")]
Completed
}
\ No newline at end of file
diff --git a/e-suite.Core/eSuite.Core/eSuite.Core.csproj b/e-suite.Core/eSuite.Core/eSuite.Core.csproj
index 0bd1ac6..a1e1738 100644
--- a/e-suite.Core/eSuite.Core/eSuite.Core.csproj
+++ b/e-suite.Core/eSuite.Core/eSuite.Core.csproj
@@ -7,8 +7,8 @@
-
-
+
+
diff --git a/e-suite.Database.Audit/e-suite.Database.Audit.UnitTests/e-suite.Database.Audit.UnitTests.csproj b/e-suite.Database.Audit/e-suite.Database.Audit.UnitTests/e-suite.Database.Audit.UnitTests.csproj
index db718a8..c34a549 100644
--- a/e-suite.Database.Audit/e-suite.Database.Audit.UnitTests/e-suite.Database.Audit.UnitTests.csproj
+++ b/e-suite.Database.Audit/e-suite.Database.Audit.UnitTests/e-suite.Database.Audit.UnitTests.csproj
@@ -16,10 +16,10 @@
-
+
-
+
diff --git a/e-suite.Database.Audit/e-suite.Database.Audit/e-suite.Database.Audit.csproj b/e-suite.Database.Audit/e-suite.Database.Audit/e-suite.Database.Audit.csproj
index 693dc33..4c42bc3 100644
--- a/e-suite.Database.Audit/e-suite.Database.Audit/e-suite.Database.Audit.csproj
+++ b/e-suite.Database.Audit/e-suite.Database.Audit/e-suite.Database.Audit.csproj
@@ -16,7 +16,7 @@
-
+
diff --git a/e-suite.Database.Core/e-suite.Database.Core.UnitTests/e-suite.Database.Core.UnitTests.csproj b/e-suite.Database.Core/e-suite.Database.Core.UnitTests/e-suite.Database.Core.UnitTests.csproj
index 0c63159..70a55ab 100644
--- a/e-suite.Database.Core/e-suite.Database.Core.UnitTests/e-suite.Database.Core.UnitTests.csproj
+++ b/e-suite.Database.Core/e-suite.Database.Core.UnitTests/e-suite.Database.Core.UnitTests.csproj
@@ -8,11 +8,11 @@
-
+
-
+
diff --git a/e-suite.Database.Core/e-suite.Database.Core/Tables/Activity/ActivityTask.cs b/e-suite.Database.Core/e-suite.Database.Core/Tables/Activity/ActivityTask.cs
index 84710e2..caa98c0 100644
--- a/e-suite.Database.Core/e-suite.Database.Core/Tables/Activity/ActivityTask.cs
+++ b/e-suite.Database.Core/e-suite.Database.Core/Tables/Activity/ActivityTask.cs
@@ -31,6 +31,12 @@ public class ActivityTask : IGeneralId, ISoftDeletable
[Required]
public Guid TaskGuid { get; set; }
+ ///
+ /// This is the fullname of the tasktype
+ ///
+ [Required]
+ public string TaskType { get; set; }
+
[AuditName]
[Required]
public string TaskName { get; set; }
diff --git a/e-suite.Database.SqlServer/e-suite.Database.MigrationBuilder/e-suite.Database.MigrationBuilder.csproj b/e-suite.Database.SqlServer/e-suite.Database.MigrationBuilder/e-suite.Database.MigrationBuilder.csproj
index 7da9b75..188189f 100644
--- a/e-suite.Database.SqlServer/e-suite.Database.MigrationBuilder/e-suite.Database.MigrationBuilder.csproj
+++ b/e-suite.Database.SqlServer/e-suite.Database.MigrationBuilder/e-suite.Database.MigrationBuilder.csproj
@@ -9,7 +9,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/e-suite.Database.SqlServer/e-suite.Database.SqlServer.UnitTests/e-suite.Database.SqlServer.UnitTests.csproj b/e-suite.Database.SqlServer/e-suite.Database.SqlServer.UnitTests/e-suite.Database.SqlServer.UnitTests.csproj
index d0f3a3b..067187c 100644
--- a/e-suite.Database.SqlServer/e-suite.Database.SqlServer.UnitTests/e-suite.Database.SqlServer.UnitTests.csproj
+++ b/e-suite.Database.SqlServer/e-suite.Database.SqlServer.UnitTests/e-suite.Database.SqlServer.UnitTests.csproj
@@ -10,7 +10,7 @@
-
+
diff --git a/e-suite.Database.SqlServer/e-suite.Database.SqlServer/Migrations/20260311161348_addingTaskType.Designer.cs b/e-suite.Database.SqlServer/e-suite.Database.SqlServer/Migrations/20260311161348_addingTaskType.Designer.cs
new file mode 100644
index 0000000..1b2dc69
--- /dev/null
+++ b/e-suite.Database.SqlServer/e-suite.Database.SqlServer/Migrations/20260311161348_addingTaskType.Designer.cs
@@ -0,0 +1,2224 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using e_suite.Database.SqlServer;
+
+#nullable disable
+
+namespace esuite.Database.SqlServer.Migrations
+{
+ [DbContext(typeof(SqlEsuiteDatabaseDbContext))]
+ [Migration("20260311161348_addingTaskType")]
+ partial class addingTaskType
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "10.0.4")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("e_suite.Database.Audit.Tables.Audit.AuditDetail", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Comment")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DateTime")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Fields")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Type")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("UserDisplayName")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserId")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.ToTable("AuditDetails", "Audit");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Audit.Tables.Audit.AuditDrillHierarchy", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ChildAuditDrillDownEntityId")
+ .HasColumnType("bigint");
+
+ b.Property("ParentAuditDrillDownEntityId")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ChildAuditDrillDownEntityId");
+
+ b.HasIndex("ParentAuditDrillDownEntityId");
+
+ b.ToTable("AuditDrillHierarchies", "Audit");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Audit.Tables.Audit.AuditEntry", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("AuditLogId")
+ .HasColumnType("bigint");
+
+ b.Property("DisplayName")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("EntityName")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("IsPrimary")
+ .HasColumnType("bit");
+
+ b.Property("PrimaryKey")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("AuditLogId");
+
+ b.ToTable("AuditEntries", "Audit");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Activity.Activity", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ActivityState")
+ .HasColumnType("int");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("WorkflowVersionId")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("Name")
+ .IsUnique();
+
+ b.HasIndex("WorkflowVersionId");
+
+ b.ToTable("Activities", "Activity");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Activity.ActivityTask", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ActivityId")
+ .HasColumnType("bigint");
+
+ b.Property("ActivityOrdinal")
+ .HasColumnType("bigint");
+
+ b.Property("ActivityState")
+ .HasColumnType("int");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("FinishDateTime")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("ParentId")
+ .HasColumnType("bigint");
+
+ b.Property("StartDateTime")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("TaskGuid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TaskName")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TaskType")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("ParentId");
+
+ b.HasIndex("ActivityId", "ActivityOrdinal")
+ .IsUnique();
+
+ b.ToTable("ActivityTasks", "Activity");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Contacts.Contact", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("JCard")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("Id")
+ .IsUnique();
+
+ b.ToTable("Contacts", "Contacts");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.CustomFields.CustomField", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("DefaultValue")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("FieldType")
+ .HasColumnType("int");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("MaxEntries")
+ .HasColumnType("bigint");
+
+ b.Property("MinEntries")
+ .HasColumnType("bigint");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("Name")
+ .IsUnique();
+
+ b.ToTable("CustomFields", "CustomFields");
+
+ b.HasData(
+ new
+ {
+ Id = 1L,
+ DefaultValue = "",
+ Deleted = false,
+ FieldType = 7,
+ Guid = new Guid("8d910089-3079-4a29-abad-8ddf82db6dbb"),
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ MaxEntries = 1L,
+ MinEntries = 1L,
+ Name = "Print Specification Form Template"
+ });
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.CustomFields.CustomFieldFormTemplate", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CustomFieldId")
+ .HasColumnType("bigint");
+
+ b.Property("FormTemplateId")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CustomFieldId");
+
+ b.HasIndex("FormTemplateId");
+
+ b.ToTable("CustomFieldFormTemplates", "CustomFields");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.CustomFields.CustomFieldGlossary", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CustomFieldId")
+ .HasColumnType("bigint");
+
+ b.Property("GlossaryId")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CustomFieldId");
+
+ b.HasIndex("GlossaryId");
+
+ b.ToTable("CustomFieldGlossaries", "CustomFields");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.CustomFields.CustomFieldNumber", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CustomFieldId")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("MaximumValue")
+ .HasPrecision(28, 8)
+ .HasColumnType("decimal(28,8)");
+
+ b.Property("MinimumValue")
+ .HasPrecision(28, 8)
+ .HasColumnType("decimal(28,8)");
+
+ b.Property("Step")
+ .HasPrecision(28, 8)
+ .HasColumnType("decimal(28,8)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CustomFieldId");
+
+ b.ToTable("CustomFieldNumbers", "CustomFields");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.CustomFields.CustomFieldSequence", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CustomFieldId")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("SequenceId")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CustomFieldId");
+
+ b.HasIndex("SequenceId");
+
+ b.ToTable("CustomFieldSequences", "CustomFields");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.CustomFields.CustomFieldText", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CustomFieldId")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("MultiLine")
+ .HasColumnType("bit");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CustomFieldId");
+
+ b.ToTable("CustomFieldTexts", "CustomFields");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Diagnostics.ExceptionLog", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Application")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ExceptionJson")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Message")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("OccuredAt")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("StackTrace")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SupportingData")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.ToTable("ExceptionLogs", "Diagnostics");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Diagnostics.PerformanceReport", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ActionName")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ActionParameters")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ControllerName")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Host")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("RequestType")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("StartDateTime")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Timings")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TotalTimeMS")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("PerformanceReports", "Diagnostics");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Diagnostics.PerformanceThreshold", b =>
+ {
+ b.Property("ControllerName")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ActionName")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("RequestType")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("TotalTimeMS")
+ .HasColumnType("int");
+
+ b.HasKey("ControllerName", "ActionName", "RequestType");
+
+ b.ToTable("PerformanceThresholds", "Diagnostics");
+
+ b.HasData(
+ new
+ {
+ ControllerName = "",
+ ActionName = "",
+ RequestType = "",
+ TotalTimeMS = 2000
+ });
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Domain.Domain", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("SigmaId")
+ .HasColumnType("bigint");
+
+ b.Property("SsoProviderId")
+ .HasColumnType("bigint");
+
+ b.Property("SunriseAppId")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("SunriseCategoryId")
+ .IsRequired()
+ .HasMaxLength(16)
+ .HasColumnType("nvarchar(16)");
+
+ b.Property("SunriseHostname")
+ .IsRequired()
+ .HasMaxLength(16)
+ .HasColumnType("nvarchar(16)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("Name")
+ .IsUnique();
+
+ b.HasIndex("SsoProviderId");
+
+ b.ToTable("Domains", "Domain");
+
+ b.HasData(
+ new
+ {
+ Id = 1L,
+ Deleted = false,
+ Guid = new Guid("4eb1b0c7-e81b-4c9d-ba91-384ed47a1cf9"),
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ Name = "Sun-Strategy",
+ SunriseAppId = "",
+ SunriseCategoryId = "",
+ SunriseHostname = ""
+ });
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Domain.Role", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CanDelete")
+ .HasColumnType("bit");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("DomainId")
+ .HasColumnType("bigint");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("IsAdministrator")
+ .HasColumnType("bit");
+
+ b.Property("IsSuperUser")
+ .HasColumnType("bit");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("DomainId", "Name")
+ .IsUnique();
+
+ b.ToTable("Roles", "Domain");
+
+ b.HasData(
+ new
+ {
+ Id = 1L,
+ CanDelete = false,
+ Deleted = false,
+ DomainId = 1L,
+ Guid = new Guid("32d65817-4de4-4bd5-912e-2b33054a2171"),
+ IsAdministrator = false,
+ IsSuperUser = true,
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ Name = "Super Users"
+ },
+ new
+ {
+ Id = 2L,
+ CanDelete = false,
+ Deleted = false,
+ DomainId = 1L,
+ Guid = new Guid("2f77f57c-fe2c-4a36-ad17-5d902afc86cb"),
+ IsAdministrator = true,
+ IsSuperUser = false,
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ Name = "Administrators"
+ });
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Domain.RoleAccess", b =>
+ {
+ b.Property("RoleId")
+ .HasColumnType("bigint");
+
+ b.Property("AccessKey")
+ .HasColumnType("int");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.HasKey("RoleId", "AccessKey");
+
+ b.ToTable("RoleAccess", "Domain");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Domain.UserAccess", b =>
+ {
+ b.Property("AccessKey")
+ .HasColumnType("int");
+
+ b.Property("DomainId")
+ .HasColumnType("bigint");
+
+ b.Property("UserId")
+ .HasColumnType("bigint");
+
+ b.HasIndex("DomainId");
+
+ b.HasIndex("UserId");
+
+ b.ToTable("UserAccess", "Domain");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Domain.UserRole", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("RoleId")
+ .HasColumnType("bigint");
+
+ b.Property("UserId")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.HasAlternateKey("UserId", "RoleId");
+
+ b.HasIndex("RoleId");
+
+ b.ToTable("UserRoles", "Domain");
+
+ b.HasData(
+ new
+ {
+ Id = 1L,
+ Deleted = false,
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ RoleId = 1L,
+ UserId = 1L
+ });
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Forms.FormFieldInstance", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CustomFieldId")
+ .HasColumnType("bigint");
+
+ b.Property("DisplayValue")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("FormInstanceId")
+ .HasColumnType("bigint");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Index")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CustomFieldId");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("FormInstanceId", "CustomFieldId", "Index")
+ .IsUnique();
+
+ b.ToTable("FormFieldInstances", "Forms");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Forms.FormInstance", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("FormTemplateVersionId")
+ .HasColumnType("bigint");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.HasKey("Id");
+
+ b.HasIndex("FormTemplateVersionId");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.ToTable("FormInstances", "Forms");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Forms.FormTemplate", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("Name")
+ .IsUnique();
+
+ b.ToTable("FormTemplates", "Forms");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Forms.FormTemplateVersion", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("FormDefinition")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("TemplateId")
+ .HasColumnType("bigint");
+
+ b.Property("Version")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("TemplateId", "Version")
+ .IsUnique();
+
+ b.ToTable("FormTemplateVersions", "Forms");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Glossaries.Glossary", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ParentId")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("Name")
+ .IsUnique();
+
+ b.HasIndex("ParentId");
+
+ b.HasIndex("Id", "ParentId")
+ .IsUnique()
+ .HasFilter("[ParentId] IS NOT NULL");
+
+ b.ToTable("Glossaries", "Glossaries");
+
+ b.HasData(
+ new
+ {
+ Id = 1L,
+ Deleted = false,
+ Guid = new Guid("fa6566f8-b4b0-48c5-9985-336c9284796e"),
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ Name = "System"
+ },
+ new
+ {
+ Id = 2L,
+ Deleted = false,
+ Guid = new Guid("90c48cf1-1a2b-4a76-b30b-260ecb149ccc"),
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ Name = "Domain"
+ },
+ new
+ {
+ Id = 3L,
+ Deleted = false,
+ Guid = new Guid("35eb8c23-4528-49a7-a798-b8bae3b06daf"),
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ Name = "Print Specifications",
+ ParentId = 1L
+ });
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Glossaries.GlossaryCustomField", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CustomFieldId")
+ .HasColumnType("bigint");
+
+ b.Property("GlossaryId")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.HasKey("Id");
+
+ b.HasAlternateKey("GlossaryId", "CustomFieldId");
+
+ b.HasIndex("CustomFieldId");
+
+ b.ToTable("GlossaryCustomFields", "Glossaries");
+
+ b.HasData(
+ new
+ {
+ Id = 1L,
+ CustomFieldId = 1L,
+ GlossaryId = 3L,
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0))
+ });
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Glossaries.GlossaryCustomFieldValue", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CustomFieldId")
+ .HasColumnType("bigint");
+
+ b.Property("DisplayValue")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("GlossaryId")
+ .HasColumnType("bigint");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Index")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasAlternateKey("GlossaryId", "CustomFieldId", "Index");
+
+ b.HasIndex("CustomFieldId");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("GlossaryId", "CustomFieldId", "Index")
+ .IsUnique();
+
+ b.ToTable("GlossaryCustomFieldValues", "Glossaries");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Mail.MailTemplate", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("DomainId")
+ .HasColumnType("bigint");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("MailType")
+ .HasColumnType("int");
+
+ b.Property("Subject")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TemplateDefinition")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("DomainId", "MailType")
+ .IsUnique();
+
+ b.ToTable("MailTemplates", "Mail");
+
+ b.HasData(
+ new
+ {
+ Id = 1L,
+ Deleted = false,
+ DomainId = 1L,
+ Guid = new Guid("32b657af-5e17-47f3-b8dc-59580516b141"),
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ MailType = 0,
+ Subject = "Confirmation e-mail",
+ TemplateDefinition = "Please confirm your e-mail
Welcome to . Please click on this link to confirm your e-mail address is correct."
+ },
+ new
+ {
+ Id = 2L,
+ Deleted = false,
+ DomainId = 1L,
+ Guid = new Guid("77fff2b0-dd8c-43e6-a9fd-304c79850f81"),
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ MailType = 2,
+ Subject = "Password reset",
+ TemplateDefinition = "Please follow the link to reset your password
Reset Password"
+ },
+ new
+ {
+ Id = 3L,
+ Deleted = false,
+ DomainId = 1L,
+ Guid = new Guid("2e2d84a5-be1c-4e3b-a86a-bdafed42801b"),
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ MailType = 1,
+ Subject = "Disable two factor authentication",
+ TemplateDefinition = "Please follow the link to reset two factor authentication
Disable two factor authentication"
+ },
+ new
+ {
+ Id = 4L,
+ Deleted = false,
+ DomainId = 1L,
+ Guid = new Guid("421b67c7-5f4b-4cad-adc5-528e2921790c"),
+ LastUpdated = new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
+ MailType = 3,
+ Subject = "Password successfully reset",
+ TemplateDefinition = "Your password has been reset. Please contact your admin if this wasn't you.
"
+ });
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Miscellaneous.ExternalKey", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("EntityName")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ExternalId")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ExternalSystemId")
+ .HasColumnType("bigint");
+
+ b.Property("PrimaryKey")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("EntityName", "PrimaryKey")
+ .IsUnique();
+
+ b.HasIndex("ExternalSystemId", "ExternalId")
+ .IsUnique();
+
+ b.ToTable("ExternalKeys", "Miscellaneous");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Miscellaneous.ExternalSystem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("SystemName")
+ .IsRequired()
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("SystemName")
+ .IsUnique();
+
+ b.ToTable("ExternalSystems", "Miscellaneous");
+
+ b.HasData(
+ new
+ {
+ Id = 1L,
+ SystemName = "e-flow"
+ });
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Printer.Organisation", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Address")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("Status")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("Id")
+ .IsUnique();
+
+ b.HasIndex("Name")
+ .IsUnique();
+
+ b.ToTable("Organisations", "Printer");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Printer.OrganisationContact", b =>
+ {
+ b.Property("OrganisationId")
+ .HasColumnType("bigint");
+
+ b.Property("ContactId")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Primary")
+ .HasColumnType("bit");
+
+ b.HasKey("OrganisationId", "ContactId");
+
+ b.HasIndex("ContactId");
+
+ b.ToTable("OrganisationContacts", "Printer");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Printer.Site", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Address")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("OrganisationId")
+ .HasColumnType("bigint");
+
+ b.Property("SigmaId")
+ .HasColumnType("bigint");
+
+ b.Property("Status")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("OrganisationId");
+
+ b.HasIndex("SigmaId")
+ .IsUnique()
+ .HasFilter("[SigmaId] IS NOT NULL");
+
+ b.ToTable("Sites", "Printer");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Printer.SiteContact", b =>
+ {
+ b.Property("SiteId")
+ .HasColumnType("bigint");
+
+ b.Property("ContactId")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Primary")
+ .HasColumnType("bit");
+
+ b.HasKey("SiteId", "ContactId");
+
+ b.HasIndex("ContactId");
+
+ b.ToTable("SiteContacts", "Printer");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Printer.Specification", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("FormInstanceId")
+ .HasColumnType("bigint");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SigmaId")
+ .HasColumnType("bigint");
+
+ b.Property("SiteId")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Guid")
+ .IsUnique();
+
+ b.HasIndex("Id")
+ .IsUnique();
+
+ b.HasIndex("SigmaId")
+ .IsUnique()
+ .HasFilter("[SigmaId] IS NOT NULL");
+
+ b.HasIndex("SiteId");
+
+ b.ToTable("Specifications", "Printer");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Sentinel.FailedAccessAttempt", b =>
+ {
+ b.Property("IPAddress")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("AttemptedTime")
+ .HasColumnType("datetimeoffset");
+
+ b.HasKey("IPAddress", "AttemptedTime");
+
+ b.ToTable("FailedAccessAttempts", "Sentinel");
+ });
+
+ modelBuilder.Entity("e_suite.Database.Core.Tables.Sequences.Sequence", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("Guid")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Increment")
+ .HasColumnType("bigint");
+
+ b.Property("LastIssueDate")
+ .HasColumnType("datetimeoffset");
+
+ b.Property("LastIssueValue")
+ .HasColumnType("bigint");
+
+ b.Property("LastUpdated")
+ .HasColumnType("datetimeoffset");
+
+ b.Property