From b050f13d64084d7a2b3185bb02803ced364bb2b3 Mon Sep 17 00:00:00 2001
From: Somaraj <17797942+somaraj@users.noreply.github.com>
Date: Fri, 13 Nov 2026 14:52:43 +0530
Subject: [PATCH 1/2] feat(backlog): place custom fields anywhere on the task
form
Custom fields get a position (after any built-in field in either column) and an order number. New nullable CustomField.Slot/DisplayOrder columns (migration AddCustomFieldSlot); a null slot keeps the old bottom-of-section placement, so existing fields don't move.
Also: custom-field script moved to backlog-custom-fields.js (bound once), checkbox/radio labels and saving, non-mandatory fields save on change, posted values kept on Create errors, label fallback when no locale row exists, UpdateCustomField requires edit rights, ion.rangeSlider path casing.
---
CHANGELOG.md | 3 +
sql-scripts/01_schema.sql | 29 +
sql-scripts/03_locale.sql | 30 +-
.../Taskist.Core/Common/CustomFieldLayout.cs | 57 +
.../Domain/Masters/CustomField.cs | 4 +
.../Taskist.Core/Enums/BacklogFormSlot.cs | 22 +
...61113050423_AddCustomFieldSlot.Designer.cs | 3503 +++++++++++++++++
.../20261113050423_AddCustomFieldSlot.cs | 38 +
.../ApplicationContextModelSnapshot.cs | 6 +
.../Masters/CustomFieldService.cs | 8 +-
.../Components/WorkItems/CustomFields.cs | 54 -
.../Controllers/Masters/ProjectController.cs | 51 +-
.../WorkItems/BacklogController.cs | 42 +-
.../Helpers/Mapping/MastersMapper.cs | 3 +
.../Masters/CustomFieldValidator.cs | 11 +-
.../Models/Masters/CustomFieldGridModel.cs | 21 +
.../Models/Masters/CustomFieldLayoutModel.cs | 27 +
.../Models/Masters/CustomFieldModel.cs | 22 +-
.../Models/Masters/CustomFieldRenderModel.cs | 6 +
.../Models/Masters/CustomFieldsViewModel.cs | 7 +-
.../Models/WorkItems/BacklogModel.cs | 4 +
.../Taskist.Web/Views/Backlog/Create.cshtml | 5 +-
.../Taskist.Web/Views/Backlog/Edit.cshtml | 5 +-
.../Views/Backlog/_CustomFieldSlot.cshtml | 88 +
.../Taskist.Web/Views/Backlog/_Form.cshtml | 8 +-
.../Views/Backlog/_FormStatus.cshtml | 15 +-
.../Views/Project/AddCustomField.cshtml | 4 +
.../Views/Project/CustomFields.cshtml | 3 +-
.../Views/Project/EditCustomField.cshtml | 4 +
.../Views/Project/_FormCustomField.cshtml | 30 +-
.../Components/CustomFields/Default.cshtml | 137 -
.../wwwroot/css/pages/backlog-task.css | 6 +-
.../js/pages/backlog/backlog-custom-fields.js | 71 +
.../js/pages/masters/custom-field-form.js | 13 +
.../WorkItems/CustomFieldLayoutTests.cs | 171 +
35 files changed, 4261 insertions(+), 247 deletions(-)
create mode 100644 src/Libraries/Taskist.Core/Common/CustomFieldLayout.cs
create mode 100644 src/Libraries/Taskist.Core/Enums/BacklogFormSlot.cs
create mode 100644 src/Libraries/Taskist.Data/Migrations/20261113050423_AddCustomFieldSlot.Designer.cs
create mode 100644 src/Libraries/Taskist.Data/Migrations/20261113050423_AddCustomFieldSlot.cs
delete mode 100644 src/Presentation/Taskist.Web/Components/WorkItems/CustomFields.cs
create mode 100644 src/Presentation/Taskist.Web/Models/Masters/CustomFieldGridModel.cs
create mode 100644 src/Presentation/Taskist.Web/Models/Masters/CustomFieldLayoutModel.cs
create mode 100644 src/Presentation/Taskist.Web/Views/Backlog/_CustomFieldSlot.cshtml
delete mode 100644 src/Presentation/Taskist.Web/Views/Shared/Components/CustomFields/Default.cshtml
create mode 100644 src/Presentation/Taskist.Web/wwwroot/js/pages/backlog/backlog-custom-fields.js
create mode 100644 src/Presentation/Taskist.Web/wwwroot/js/pages/masters/custom-field-form.js
create mode 100644 src/Tests/Taskist.Tests/WorkItems/CustomFieldLayoutTests.cs
diff --git a/CHANGELOG.md b/CHANGELOG.md
index abb6bef..ab7cb89 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ Each release lists **Upgrade notes** when an install needs action beyond the ste
- **Appearance**: light, dark or system theme and an accent colour per user.
- **Per-user export column layouts** on top of the administrator's default.
- **Tags** for the backlog, with inline create and merge.
+- **Custom field positions**: a project's custom fields can be placed anywhere on the task form (after Title, Description, Attachments, or after any field in the right panel, such as Status, Module or Developer), with an order number within each position. Existing fields stay at the bottom of their section until moved.
- **Two-factor sign-in** with any authenticator app (TOTP), turned on per user under My profile → Security: QR-code setup, ten one-time recovery codes, an optional "don't ask again on this device" (`Authentication:TwoFactor:RememberDeviceDays`, default 30), and administrator reset on the user's page. `Authentication:TwoFactor:RequireForAdministrators` (off by default) makes it mandatory for administrators who sign in with a password. Single sign-on users are not asked, since their identity provider handles it. See [docs/two-factor.md](docs/two-factor.md). ([#12](https://github.com/Taskist/taskist/issues/12))
- **Single sign-on with OpenID Connect** (`Authentication:Oidc`, off by default): Keycloak, Authentik, Entra ID, Google, Okta and other providers. Existing users are linked by verified e-mail; optional account creation on first sign-in (*Registered* role only), optional group → role mapping (adds roles only), and an SSO-only mode that keeps password sign-in for administrators at `/Login?local=1`. Linked sign-ins are listed under My profile → Security and on the user's admin page. See [docs/sso.md](docs/sso.md). ([#11](https://github.com/Taskist/taskist/issues/11))
- **Optional Sentry error tracking** (`Sentry:Enabled` + `Sentry:Dsn`, off by default): unhandled exceptions and logged errors, with request bodies, cookies, query strings, auth headers and personal data filtered out.
@@ -34,9 +35,11 @@ Each release lists **Upgrade notes** when an install needs action beyond the ste
- Seed data moved from the install wizard to four idempotent scripts in `sql-scripts/`: schema, defaults, translations and optional sample data. A fresh install now also gets the email templates, using an inactive placeholder email account.
- Docker images target .NET 10; the migrate container runs `sql-scripts/02`–`04`.
- E-mails fill `%company%` from **Configuration → Settings → Company name** (falls back to "Taskist").
+- Custom fields: checkbox and radio fields now have a label and save on the edit page, every field saves when changed (previously only mandatory ones did), dropdowns start empty instead of preselecting the first option, a field without a translation shows its label instead of its resource key, and values typed on Create are kept when the form returns with an error.
### Security
+- Saving a single custom field value (`Backlog/UpdateCustomField`) now requires edit rights on the task, like the rest of the task form.
- Wiki reads (content, tree, history, linked tasks, Word export) are limited to members of the page's project; previously any signed-in user could read any project's pages by id. Restoring a version now requires the version to belong to the page, and pages and folders can no longer be moved into another project or into their own sub-folders.
- Wiki images are recorded against their page's project at upload and served only to the uploader and that project's members; previously any user with the Wiki permission could fetch any stored image (including other projects' wiki images, profile photos and unsaved task uploads) by id.
- Task attachments are access-checked on download, upload and delete, uploads require the antiforgery token, and files are served as downloads with `nosniff`.
diff --git a/sql-scripts/01_schema.sql b/sql-scripts/01_schema.sql
index ae64a1a..d85fb5f 100644
--- a/sql-scripts/01_schema.sql
+++ b/sql-scripts/01_schema.sql
@@ -2093,3 +2093,32 @@ END;
COMMIT;
GO
+BEGIN TRANSACTION;
+IF NOT EXISTS (
+ SELECT * FROM [__EFMigrationsHistory]
+ WHERE [MigrationId] = N'20261113050423_AddCustomFieldSlot'
+)
+BEGIN
+ ALTER TABLE [CustomField] ADD [DisplayOrder] int NULL;
+END;
+
+IF NOT EXISTS (
+ SELECT * FROM [__EFMigrationsHistory]
+ WHERE [MigrationId] = N'20261113050423_AddCustomFieldSlot'
+)
+BEGIN
+ ALTER TABLE [CustomField] ADD [Slot] int NULL;
+END;
+
+IF NOT EXISTS (
+ SELECT * FROM [__EFMigrationsHistory]
+ WHERE [MigrationId] = N'20261113050423_AddCustomFieldSlot'
+)
+BEGIN
+ INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
+ VALUES (N'20261113050423_AddCustomFieldSlot', N'10.0.13');
+END;
+
+COMMIT;
+GO
+
diff --git a/sql-scripts/03_locale.sql b/sql-scripts/03_locale.sql
index 87633ec..1bf003c 100644
--- a/sql-scripts/03_locale.sql
+++ b/sql-scripts/03_locale.sql
@@ -214,6 +214,25 @@ FROM (VALUES
(N'BacklogFilter.ShowInactive', N'Show inactive'),
(N'BacklogFilter.Stale', N'Stale: 7+ days in the same status'),
(N'BacklogFilter.StatusDaysMin', N'In current status for at least (days)'),
+ (N'BacklogFormSlot.Group.Main', N'Main column'),
+ (N'BacklogFormSlot.Group.Status', N'Right panel'),
+ (N'BacklogFormSlot.MainAfterAttachments', N'After Attachments'),
+ (N'BacklogFormSlot.MainAfterDescription', N'After Description'),
+ (N'BacklogFormSlot.MainAfterTitle', N'After Title'),
+ (N'BacklogFormSlot.MainBottom', N'Bottom of the main column'),
+ (N'BacklogFormSlot.StatusAfterDeveloper', N'After Developer'),
+ (N'BacklogFormSlot.StatusAfterDueDate', N'After Due date'),
+ (N'BacklogFormSlot.StatusAfterModule', N'After Module'),
+ (N'BacklogFormSlot.StatusAfterPriority', N'After Priority'),
+ (N'BacklogFormSlot.StatusAfterProject', N'After Project'),
+ (N'BacklogFormSlot.StatusAfterRelease', N'After Release'),
+ (N'BacklogFormSlot.StatusAfterReporter', N'After Reporter'),
+ (N'BacklogFormSlot.StatusAfterStartDate', N'After Start date'),
+ (N'BacklogFormSlot.StatusAfterStatus', N'After Status'),
+ (N'BacklogFormSlot.StatusAfterSubModule', N'After Sub-module'),
+ (N'BacklogFormSlot.StatusAfterTaskType', N'After Type'),
+ (N'BacklogFormSlot.StatusAfterTester', N'After Tester'),
+ (N'BacklogFormSlot.StatusBottom', N'Bottom of the right panel'),
(N'BacklogGrid.Age', N'Age'),
(N'BacklogGrid.AgeHelp', N'12d · 4d = open for 12 days · 4 days in the current status.
Sort ▼ oldest first, ▲ newest first. Closed tasks show – and are always listed last.'),
(N'BacklogGrid.Assignee', N'Developer'),
@@ -347,13 +366,17 @@ FROM (VALUES
(N'Confirmation.Delete', N'Are you sure you want to delete?'),
(N'CustomField.Title', N'Custom Field'),
(N'CustomFieldGrid.ColumnClass', N'Column Width'),
+ (N'CustomFieldGrid.DisplayOrder', N'Order'),
(N'CustomFieldGrid.FieldType', N'Type'),
(N'CustomFieldGrid.Label', N'Label'),
(N'CustomFieldGrid.Mandatory', N'Mandatory'),
- (N'CustomFieldGrid.Placement', N'Placement'),
(N'CustomFieldGrid.ResourceKey', N'Resource Key'),
+ (N'CustomFieldGrid.Slot', N'Position'),
(N'CustomFieldModel.ColumnClass', N'Column Width'),
(N'CustomFieldModel.ColumnClass.RequiredMsg', N'Column width is required'),
+ (N'CustomFieldModel.DisplayOrder', N'Order'),
+ (N'CustomFieldModel.DisplayOrder.Hint', N'Order within the chosen position: lower numbers come first. Fields without a number follow the numbered ones.'),
+ (N'CustomFieldModel.DisplayOrder.RangeMsg', N'Order must be between 0 and 9999'),
(N'CustomFieldModel.FieldType', N'Type'),
(N'CustomFieldModel.FieldType.RequiredMsg', N'Type is required'),
(N'CustomFieldModel.Label', N'Label'),
@@ -362,10 +385,11 @@ FROM (VALUES
(N'CustomFieldModel.Label.UniqueMsg', N'Label already exists'),
(N'CustomFieldModel.Mandatory', N'Mandatory'),
(N'CustomFieldModel.Options', N'Options (coma seperated)'),
- (N'CustomFieldModel.Placement', N'Placement'),
- (N'CustomFieldModel.Placement.RequiredMsg', N'Placement is required'),
(N'CustomFieldModel.ResourceKey', N'Resource Key'),
(N'CustomFieldModel.ResourceKey.RequiredMsg', N'Resource key is required'),
+ (N'CustomFieldModel.Slot', N'Position'),
+ (N'CustomFieldModel.Slot.Hint', N'Where the field appears on the task form, between the built-in fields.'),
+ (N'CustomFieldModel.Slot.RequiredMsg', N'Position is required'),
(N'Dashboard.AllProjects', N'All Projects'),
(N'Dashboard.AssigneeWorkload', N'Assignee Workload'),
(N'Dashboard.CreatedVsResolved', N'Created vs Resolved'),
diff --git a/src/Libraries/Taskist.Core/Common/CustomFieldLayout.cs b/src/Libraries/Taskist.Core/Common/CustomFieldLayout.cs
new file mode 100644
index 0000000..9a00b7d
--- /dev/null
+++ b/src/Libraries/Taskist.Core/Common/CustomFieldLayout.cs
@@ -0,0 +1,57 @@
+using Taskist.Core.Domain.Masters;
+using Taskist.Core.Enums;
+
+namespace Taskist.Core.Common;
+
+public static class CustomFieldLayout
+{
+ #region Fields
+
+ private const int StatusSectionStart = 100;
+
+ #endregion
+
+ #region Methods
+
+ public static BacklogFormSlot ResolveSlot(int? slot, int placement)
+ {
+ if (slot.HasValue && Enum.IsDefined(typeof(BacklogFormSlot), slot.Value))
+ return (BacklogFormSlot)slot.Value;
+
+ return placement == (int)CustomFieldPlacement.StatusSection
+ ? BacklogFormSlot.StatusBottom
+ : BacklogFormSlot.MainBottom;
+ }
+
+ public static CustomFieldPlacement SectionOf(BacklogFormSlot slot)
+ {
+ return (int)slot >= StatusSectionStart
+ ? CustomFieldPlacement.StatusSection
+ : CustomFieldPlacement.MainSection;
+ }
+
+ public static bool RendersInsideStatusRow(BacklogFormSlot slot)
+ {
+ return SectionOf(slot) == CustomFieldPlacement.StatusSection && slot != BacklogFormSlot.StatusBottom;
+ }
+
+ public static IList Order(IEnumerable fields)
+ {
+ return (fields ?? [])
+ .Where(x => x != null)
+ .OrderBy(x => (int)ResolveSlot(x.Slot, x.Placement))
+ .ThenBy(x => x.DisplayOrder ?? int.MaxValue)
+ .ThenBy(x => x.Id)
+ .ToList();
+ }
+
+ public static IReadOnlyList SlotsIn(CustomFieldPlacement section)
+ {
+ return Enum.GetValues()
+ .Where(x => SectionOf(x) == section)
+ .OrderBy(x => (int)x)
+ .ToList();
+ }
+
+ #endregion
+}
diff --git a/src/Libraries/Taskist.Core/Domain/Masters/CustomField.cs b/src/Libraries/Taskist.Core/Domain/Masters/CustomField.cs
index 3f29864..9d9c4d0 100644
--- a/src/Libraries/Taskist.Core/Domain/Masters/CustomField.cs
+++ b/src/Libraries/Taskist.Core/Domain/Masters/CustomField.cs
@@ -20,6 +20,10 @@ public class CustomField : BaseEntity, IAuditableEntity
public int Placement { get; set; }
+ public int? Slot { get; set; }
+
+ public int? DisplayOrder { get; set; }
+
public virtual Project Project { get; set; }
}
}
diff --git a/src/Libraries/Taskist.Core/Enums/BacklogFormSlot.cs b/src/Libraries/Taskist.Core/Enums/BacklogFormSlot.cs
new file mode 100644
index 0000000..222699f
--- /dev/null
+++ b/src/Libraries/Taskist.Core/Enums/BacklogFormSlot.cs
@@ -0,0 +1,22 @@
+namespace Taskist.Core.Enums;
+
+public enum BacklogFormSlot
+{
+ MainAfterTitle = 10,
+ MainAfterDescription = 20,
+ MainAfterAttachments = 30,
+ MainBottom = 40,
+ StatusAfterProject = 110,
+ StatusAfterStatus = 120,
+ StatusAfterModule = 130,
+ StatusAfterSubModule = 140,
+ StatusAfterTaskType = 150,
+ StatusAfterPriority = 160,
+ StatusAfterReporter = 170,
+ StatusAfterDeveloper = 180,
+ StatusAfterTester = 190,
+ StatusAfterStartDate = 200,
+ StatusAfterDueDate = 210,
+ StatusAfterRelease = 220,
+ StatusBottom = 230
+}
diff --git a/src/Libraries/Taskist.Data/Migrations/20261113050423_AddCustomFieldSlot.Designer.cs b/src/Libraries/Taskist.Data/Migrations/20261113050423_AddCustomFieldSlot.Designer.cs
new file mode 100644
index 0000000..4da1eb8
--- /dev/null
+++ b/src/Libraries/Taskist.Data/Migrations/20261113050423_AddCustomFieldSlot.Designer.cs
@@ -0,0 +1,3503 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Taskist.Data;
+
+#nullable disable
+
+namespace Taskist.Data.Migrations
+{
+ [DbContext(typeof(ApplicationContext))]
+ [Migration("20261113050423_AddCustomFieldSlot")]
+ partial class AddCustomFieldSlot
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "10.0.13")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("Taskist.Core.Domain.Announcements.Announcement", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("Audience")
+ .HasColumnType("int");
+
+ b.Property("Body")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("int");
+
+ b.Property("RequiresAcknowledgement")
+ .HasColumnType("bit");
+
+ b.Property("Severity")
+ .HasColumnType("int");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("Type")
+ .HasColumnType("int");
+
+ b.Property("ValidFrom")
+ .HasColumnType("date");
+
+ b.Property("ValidTo")
+ .HasColumnType("date");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Active", "Deleted");
+
+ b.ToTable("Announcement", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Announcements.AnnouncementAcknowledgement", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("AcknowledgedOnUtc")
+ .HasColumnType("datetime2");
+
+ b.Property("AnnouncementId")
+ .HasColumnType("int");
+
+ b.Property("UserId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("UserId");
+
+ b.HasIndex("AnnouncementId", "UserId")
+ .IsUnique();
+
+ b.ToTable("AnnouncementAcknowledgement", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Announcements.AnnouncementRole", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("AnnouncementId")
+ .HasColumnType("int");
+
+ b.Property("UserRoleId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("UserRoleId");
+
+ b.HasIndex("AnnouncementId", "UserRoleId");
+
+ b.ToTable("AnnouncementRole", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Git.ExternalCommentLink", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("BacklogCommentId")
+ .HasColumnType("int");
+
+ b.Property("ContentHash")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ExternalCommentId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ExternalIssueLinkId")
+ .HasColumnType("int");
+
+ b.Property("Inbound")
+ .HasColumnType("bit");
+
+ b.Property("LastSyncedOn")
+ .HasColumnType("datetime2");
+
+ b.HasKey("Id");
+
+ b.HasIndex("BacklogCommentId");
+
+ b.HasIndex("ExternalIssueLinkId", "ExternalCommentId")
+ .IsUnique();
+
+ b.ToTable("ExternalCommentLink", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Git.ExternalIssueLink", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("BacklogId")
+ .HasColumnType("int");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("ExternalId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("LastError")
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.Property("LastSyncedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("Number")
+ .HasColumnType("int");
+
+ b.Property("ProjectRepositoryId")
+ .HasColumnType("int");
+
+ b.Property("RemoteState")
+ .HasMaxLength(20)
+ .HasColumnType("nvarchar(20)");
+
+ b.Property("RemoteUpdatedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("Snapshot")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SyncEnabled")
+ .HasColumnType("bit");
+
+ b.Property("Url")
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("BacklogId");
+
+ b.HasIndex("ProjectRepositoryId", "Number")
+ .IsUnique();
+
+ b.ToTable("ExternalIssueLink", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Git.GitConnection", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("AllowInsecureHttp")
+ .HasColumnType("bit");
+
+ b.Property("ApiUrl")
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.Property("AppId")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("AppPrivateKey")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("AuthMode")
+ .HasColumnType("int");
+
+ b.Property("BaseUrl")
+ .IsRequired()
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("IsDefault")
+ .HasColumnType("bit");
+
+ b.Property("ModifiedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("OAuthClientId")
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("OAuthClientSecret")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ProviderType")
+ .HasColumnType("int");
+
+ b.Property("ServiceAccountExternalId")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ServiceAccountUserName")
+ .HasMaxLength(255)
+ .HasColumnType("nvarchar(255)");
+
+ b.Property("ServiceToken")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.ToTable("GitConnection", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Git.GitWebhookDelivery", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Attempts")
+ .HasColumnType("int");
+
+ b.Property("DeliveryId")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Error")
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.Property("EventName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Payload")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ProcessedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("ProjectRepositoryId")
+ .HasColumnType("int");
+
+ b.Property("ReceivedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("Status")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ReceivedOn");
+
+ b.HasIndex("ProjectRepositoryId", "DeliveryId")
+ .IsUnique();
+
+ b.ToTable("GitWebhookDelivery", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Git.ProjectRepository", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("DefaultBranch")
+ .HasMaxLength(255)
+ .HasColumnType("nvarchar(255)");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("DisplayName")
+ .HasMaxLength(255)
+ .HasColumnType("nvarchar(255)");
+
+ b.Property("ExternalRepoId")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("GitConnectionId")
+ .HasColumnType("int");
+
+ b.Property("IsPrimary")
+ .HasColumnType("bit");
+
+ b.Property("IsPrivate")
+ .HasColumnType("bit");
+
+ b.Property("IssueClosedStatusId")
+ .HasColumnType("int");
+
+ b.Property("IssueImportLabel")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("IssueImportLimitPerHour")
+ .HasColumnType("int");
+
+ b.Property("IssueLastPolledOn")
+ .HasColumnType("datetime2");
+
+ b.Property("IssueOpenStatusId")
+ .HasColumnType("int");
+
+ b.Property("IssueSeverityId")
+ .HasColumnType("int");
+
+ b.Property("IssueSyncComments")
+ .HasColumnType("bit");
+
+ b.Property("IssueSyncEnabledOn")
+ .HasColumnType("datetime2");
+
+ b.Property("IssueSyncMode")
+ .HasColumnType("int");
+
+ b.Property("IssueSyncTaskTypeIds")
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("IssueSyncUserId")
+ .HasColumnType("int");
+
+ b.Property("IssueTaskTypeId")
+ .HasColumnType("int");
+
+ b.Property("ModifiedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("ProjectId")
+ .HasColumnType("int");
+
+ b.Property("RepoRef")
+ .IsRequired()
+ .HasMaxLength(255)
+ .HasColumnType("nvarchar(255)");
+
+ b.Property("WebUrl")
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.Property("WebhookKey")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("WebhookLastDeliveryOn")
+ .HasColumnType("datetime2");
+
+ b.Property("WebhookSecret")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("WebhookSecretCreatedOn")
+ .HasColumnType("datetime2");
+
+ b.HasKey("Id");
+
+ b.HasIndex("GitConnectionId");
+
+ b.HasIndex("IssueClosedStatusId");
+
+ b.HasIndex("IssueOpenStatusId");
+
+ b.HasIndex("IssueSeverityId");
+
+ b.HasIndex("IssueSyncUserId");
+
+ b.HasIndex("IssueTaskTypeId");
+
+ b.HasIndex("WebhookKey")
+ .IsUnique();
+
+ b.HasIndex("ProjectId", "GitConnectionId", "RepoRef");
+
+ b.ToTable("ProjectRepository", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Git.UserGitAccount", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("AccessToken")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ConnectedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("DisplayName")
+ .HasMaxLength(255)
+ .HasColumnType("nvarchar(255)");
+
+ b.Property("ExpiresOn")
+ .HasColumnType("datetime2");
+
+ b.Property("ExternalUserId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("GitConnectionId")
+ .HasColumnType("int");
+
+ b.Property("LastUsedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("RefreshExpiresOn")
+ .HasColumnType("datetime2");
+
+ b.Property("RefreshToken")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Scopes")
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.Property("TokenType")
+ .HasColumnType("int");
+
+ b.Property("UserId")
+ .HasColumnType("int");
+
+ b.Property("UserName")
+ .IsRequired()
+ .HasMaxLength(255)
+ .HasColumnType("nvarchar(255)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("GitConnectionId", "ExternalUserId")
+ .IsUnique();
+
+ b.HasIndex("UserId", "GitConnectionId")
+ .IsUnique();
+
+ b.ToTable("UserGitAccount", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Localization.Language", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("DisplayName")
+ .IsRequired()
+ .HasMaxLength(750)
+ .HasColumnType("nvarchar(750)");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("int");
+
+ b.Property("LanguageCulture")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(750)
+ .HasColumnType("nvarchar(750)");
+
+ b.Property("Rtl")
+ .HasColumnType("bit");
+
+ b.HasKey("Id");
+
+ b.ToTable("Language", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Localization.LocaleResource", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("LanguageId")
+ .HasColumnType("int");
+
+ b.Property("ResourceKey")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("ResourceValue")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("LanguageId");
+
+ b.ToTable("LocaleResource", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Logging.ActivityLog", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Comment")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreatedOnUtc")
+ .HasColumnType("datetime2");
+
+ b.Property("EntityId")
+ .HasColumnType("int");
+
+ b.Property("EntityName")
+ .IsRequired()
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.Property("IpAddress")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SystemName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("UserId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("ActivityLog", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Logging.AuditLog", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Action")
+ .IsRequired()
+ .HasMaxLength(20)
+ .HasColumnType("nvarchar(20)");
+
+ b.Property("CreatedOnUtc")
+ .HasColumnType("datetime2");
+
+ b.Property("EntityId")
+ .HasColumnType("int");
+
+ b.Property("EntityName")
+ .IsRequired()
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.Property("IpAddress")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("NewValues")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("OldValues")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("EntityName", "EntityId");
+
+ b.ToTable("AuditLog", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Logging.Log", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreatedOnUtc")
+ .HasColumnType("datetime2");
+
+ b.Property("FullMessage")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("IpAddress")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("LogLevel")
+ .HasColumnType("int");
+
+ b.Property("LogLevelId")
+ .HasColumnType("int");
+
+ b.Property("PageUrl")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ReferrerUrl")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ShortMessage")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Log", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.Address", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Address1")
+ .IsRequired()
+ .HasMaxLength(750)
+ .HasColumnType("nvarchar(750)");
+
+ b.Property("Address2")
+ .HasMaxLength(750)
+ .HasColumnType("nvarchar(750)");
+
+ b.Property("City")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("ZipPostalCode")
+ .IsRequired()
+ .HasMaxLength(20)
+ .HasColumnType("nvarchar(20)");
+
+ b.HasKey("Id");
+
+ b.ToTable("Address", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.Client", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("ContactPerson")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("Description")
+ .HasMaxLength(250)
+ .HasColumnType("nvarchar(250)");
+
+ b.Property("Email")
+ .HasMaxLength(250)
+ .HasColumnType("nvarchar(250)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("PhoneNumber")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Website")
+ .HasMaxLength(750)
+ .HasColumnType("nvarchar(750)");
+
+ b.HasKey("Id");
+
+ b.ToTable("Client", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.CustomField", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ColumnClass")
+ .HasMaxLength(20)
+ .HasColumnType("int");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("int");
+
+ b.Property("FieldType")
+ .HasColumnType("int");
+
+ b.Property("Label")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Mandatory")
+ .HasColumnType("bit");
+
+ b.Property("Options")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Placement")
+ .HasColumnType("int");
+
+ b.Property("ProjectId")
+ .HasColumnType("int");
+
+ b.Property("ResourceKey")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Slot")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ProjectId");
+
+ b.ToTable("CustomField", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.Document", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ContentType")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Extension")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("FileData")
+ .IsRequired()
+ .HasColumnType("varbinary(max)");
+
+ b.Property("FileName")
+ .IsRequired()
+ .HasMaxLength(255)
+ .HasColumnType("nvarchar(255)");
+
+ b.Property("FileSize")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.ToTable("Document", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.EmailAccount", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("Description")
+ .HasMaxLength(250)
+ .HasColumnType("nvarchar(250)");
+
+ b.Property("EnableSsl")
+ .HasColumnType("bit");
+
+ b.Property("FromEmail")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("FromName")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Host")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Password")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Port")
+ .HasColumnType("int");
+
+ b.Property("UserName")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.ToTable("EmailAccount", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.EmailTemplate", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("EmailAccountId")
+ .HasColumnType("int");
+
+ b.Property("EmailBody")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("EmailSubject")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("EmailAccountId");
+
+ b.ToTable("EmailTemplate", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.GenericAttribute", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreatedOrUpdatedDate")
+ .HasColumnType("datetime2");
+
+ b.Property("EntityId")
+ .HasColumnType("int");
+
+ b.Property("Key")
+ .IsRequired()
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("KeyGroup")
+ .IsRequired()
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.ToTable("GenericAttribute", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.Menu", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ActionName")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("Code")
+ .HasColumnType("int");
+
+ b.Property("ControllerName")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("DisplayOrder")
+ .HasColumnType("int");
+
+ b.Property("Icon")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("ParentCode")
+ .HasColumnType("int");
+
+ b.Property("Permission")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("SystemName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.HasKey("Id");
+
+ b.ToTable("Menu", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.Module", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property("Description")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("ProjectId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ProjectId");
+
+ b.ToTable("Module", (string)null);
+ });
+
+ modelBuilder.Entity("Taskist.Core.Domain.Masters.NotificationChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("Active")
+ .HasColumnType("bit");
+
+ b.Property("ChannelType")
+ .HasColumnType("int");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime2");
+
+ b.Property("Deleted")
+ .HasColumnType("bit");
+
+ b.Property