diff --git a/0_Framework/Application/IsActive.cs b/0_Framework/Application/IsActive.cs
index f9dfd719..ee200ccd 100644
--- a/0_Framework/Application/IsActive.cs
+++ b/0_Framework/Application/IsActive.cs
@@ -2,6 +2,7 @@
public enum IsActive
{
- True,
- False,
+ False,
+ True,
+
}
\ No newline at end of file
diff --git a/0_Framework/Application/SubAccountPermissionHelper.cs b/0_Framework/Application/SubAccountPermissionHelper.cs
index 9162b744..31682848 100644
--- a/0_Framework/Application/SubAccountPermissionHelper.cs
+++ b/0_Framework/Application/SubAccountPermissionHelper.cs
@@ -188,6 +188,12 @@
///
public const int CustomizeCheckoutSettingsPermissionCode = 1040201;
+ ///
+ /// نمایش حقوق در تنظیمات محاسبه فیش حقوقی غیر رسمی
+ ///
+ public const int CustomizeCheckoutSettingsSalaryPermissionCode = 1040202;
+
+
#endregion
@@ -210,6 +216,10 @@
/// حذف فیش حقوقی غیر رسمی موقت
///
public const int DeleteCustomizeCheckoutTempPermissionCode = 1040303;
+ ///
+ /// خروجی اکسل فیش موقت غیر رسمی
+ ///
+ public const int ExcelCustomizeCheckoutTempPermissionCode = 1040304;
#endregion
@@ -234,6 +244,10 @@
///
public const int DeleteCustomizeCheckoutPermissionCode = 1040403;
+ ///
+ /// خروجی اکسل فیش نهایی غیر رسمی
+ ///
+ public const int ExcelCustomizeCheckoutPermissionCode = 1040404;
#endregion
@@ -816,6 +830,14 @@
Code = DeleteCustomizeCheckoutTempPermissionCode,
ParentId = CustomizeCheckoutTempListPermissionCode
};
+
+ public static SubAccountPermissionDto ExcelCustomizeCheckoutTempPermission { get; } = new()
+ {
+ Id = ExcelCustomizeCheckoutTempPermissionCode,
+ Name = "خروجی اکسل فیش حقوقی غیر رسمی موقت",
+ Code = ExcelCustomizeCheckoutTempPermissionCode,
+ ParentId = CustomizeCheckoutTempListPermissionCode
+ };
#endregion
#region لیست فیش حقوقی نهایی در بخش فیش حقوقی غیر رسمی, ParentId = CustomizeCheckoutListPermissionCode
@@ -840,6 +862,14 @@
Code = DeleteCustomizeCheckoutPermissionCode,
ParentId = CustomizeCheckoutListPermissionCode
};
+
+ public static SubAccountPermissionDto ExcelCustomizeCheckoutPermission { get; } = new()
+ {
+ Id = ExcelCustomizeCheckoutPermissionCode,
+ Name = "خروجی اکسل فیش حقوقی غیر رسمی نهایی",
+ Code = ExcelCustomizeCheckoutPermissionCode,
+ ParentId = CustomizeCheckoutListPermissionCode
+ };
#endregion
#region تنظیمات محاسبه فیش حقوقی در بخش تنظیمات گروهبندی و حقوق پرسنل, ParentId = CustomizeCheckoutSetGroupAndSalaryPermissionCode
@@ -850,7 +880,13 @@
Code = CustomizeCheckoutSettingsPermissionCode,
ParentId = CustomizeCheckoutSetGroupAndSalaryPermissionCode
};
-
+ public static SubAccountPermissionDto CustomizeCheckoutSettingsSalaryPermission { get; } = new()
+ {
+ Id = CustomizeCheckoutSettingsSalaryPermissionCode,
+ Name = "نمایش حقوق در تنظیمات محاسبه فیش حقوقی",
+ Code = CustomizeCheckoutSettingsSalaryPermissionCode,
+ ParentId = CustomizeCheckoutSetGroupAndSalaryPermissionCode
+ };
#endregion
diff --git a/0_Framework/Excel/Checkout/CustomizeCheckoutExcelGenerator.cs b/0_Framework/Excel/Checkout/CustomizeCheckoutExcelGenerator.cs
index 59cc381c..6909ca57 100644
--- a/0_Framework/Excel/Checkout/CustomizeCheckoutExcelGenerator.cs
+++ b/0_Framework/Excel/Checkout/CustomizeCheckoutExcelGenerator.cs
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Drawing;
using System.IO;
+using _0_Framework.Application;
using OfficeOpenXml;
namespace _0_Framework.Excel.Checkout;
@@ -51,14 +52,14 @@ public class CustomizeCheckoutExcelGenerator
// Lock cells A1 to H6
- worksheet.Cells.Style.Locked = false;
- worksheet.Cells["A1:AC1"].Style.Locked = true;
- // Set worksheet protection with password
+ //worksheet.Cells.Style.Locked = false;
+ //worksheet.Cells["A1:AC1"].Style.Locked = true;
+ //// Set worksheet protection with password
- worksheet.Protection.IsProtected = true;
- worksheet.Protection.SetPassword("Gozareshgir2049"); // Set your desired password here
+ //worksheet.Protection.IsProtected = true;
+ //worksheet.Protection.SetPassword("Gozareshgir2049"); // Set your desired password here
- worksheet.Protection.AllowSelectLockedCells = true; // Unlock all other cells
+ //worksheet.Protection.AllowSelectLockedCells = true; // Unlock all other cells
using (var range = worksheet.Cells[1, 1, 1, 29])
{
@@ -73,6 +74,7 @@ public class CustomizeCheckoutExcelGenerator
}
var dataRow = 2;
+ var numberFormat = "#,##0";
for (int i = 0; i < data.Count; i++)
{
var checkout = data[i];
@@ -83,28 +85,28 @@ public class CustomizeCheckoutExcelGenerator
worksheet.Cells[i + dataRow, 5].Value = checkout.PersonnelCodeString;
worksheet.Cells[i + dataRow, 6].Value = checkout.NationalCode;
worksheet.Cells[i + dataRow, 7].Value = checkout.SumOfWorkingDays;
- worksheet.Cells[i + dataRow, 8].Value = checkout.MonthlySalary;
- worksheet.Cells[i + dataRow, 9].Value = checkout.RewardPay;
- worksheet.Cells[i + dataRow, 10].Value = checkout.FridayPay;
- worksheet.Cells[i + dataRow, 11].Value = checkout.OvertimePay;
- worksheet.Cells[i + dataRow, 12].Value = checkout.ShiftPay;
- worksheet.Cells[i + dataRow, 13].Value = checkout.NightworkPay;
- worksheet.Cells[i + dataRow, 14].Value = checkout.MarriedAllowance;
- worksheet.Cells[i + dataRow, 15].Value = checkout.FamilyAllowance;
- worksheet.Cells[i + dataRow, 16].Value = checkout.BonusesPay;
- worksheet.Cells[i + dataRow, 17].Value = checkout.BaseYearsPay;
- worksheet.Cells[i + dataRow, 18].Value = checkout.LeavePay;
- worksheet.Cells[i + dataRow, 19].Value = checkout.AbsenceDeduction;
- worksheet.Cells[i + dataRow, 20].Value = checkout.LateToWorkDeduction;
- worksheet.Cells[i + dataRow, 21].Value = checkout.EarlyExitDeduction;
- worksheet.Cells[i + dataRow, 22].Value = checkout.SalaryAidDeduction;
- worksheet.Cells[i + dataRow, 23].Value = checkout.InstallmentDeduction;
- worksheet.Cells[i + dataRow, 24].Value = checkout.FineDeduction;
- worksheet.Cells[i + dataRow, 25].Value = checkout.InsuranceDeduction;
- worksheet.Cells[i + dataRow, 26].Value = checkout.TaxDeducation;
- worksheet.Cells[i + dataRow, 27].Value = checkout.TotalClaims;
- worksheet.Cells[i + dataRow, 28].Value = checkout.TotalDeductions;
- worksheet.Cells[i + dataRow, 29].Value = checkout.TotalPayment;
+ worksheet.Cells[i + dataRow, 8].Value = checkout.MonthlySalary.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 9].Value = checkout.RewardPay.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 10].Value = checkout.FridayPay.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 11].Value = checkout.OvertimePay.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 12].Value = checkout.ShiftPay.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 13].Value = checkout.NightworkPay.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 14].Value = checkout.MarriedAllowance.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 15].Value = checkout.FamilyAllowance.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 16].Value = checkout.BonusesPay.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 17].Value = checkout.BaseYearsPay.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 18].Value = checkout.LeavePay.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 19].Value = checkout.AbsenceDeduction.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 20].Value = checkout.LateToWorkDeduction.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 21].Value = checkout.EarlyExitDeduction.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 22].Value = checkout.SalaryAidDeduction.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 23].Value = checkout.InstallmentDeduction.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 24].Value = checkout.FineDeduction.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 25].Value = checkout.InsuranceDeduction.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 26].Value = checkout.TaxDeducation.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 27].Value = checkout.TotalClaims.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 28].Value = checkout.TotalDeductions.MoneyToDouble();
+ worksheet.Cells[i + dataRow, 29].Value = checkout.TotalPayment.MoneyToDouble();
// Style data cells
@@ -124,11 +126,15 @@ public class CustomizeCheckoutExcelGenerator
else if (j >= 8 && j <= 18)
{
cell.Style.Fill.BackgroundColor.SetColor(1,208,248,208);
+ cell.Style.Numberformat.Format = numberFormat;
+
}
else if (j >= 19 && j <= 26)
{
cell.Style.Fill.BackgroundColor.SetColor(1,246,176,176);
+ cell.Style.Numberformat.Format = numberFormat;
+
}
switch (j)
@@ -136,16 +142,22 @@ public class CustomizeCheckoutExcelGenerator
//جمع مطالبات
case 27:
cell.Style.Fill.BackgroundColor.SetColor(1, 169, 208, 142);
+ cell.Style.Numberformat.Format = numberFormat;
+
break;
//جمع کسورات
case 28:
cell.Style.Fill.BackgroundColor.SetColor(1, 241, 143, 143);
+ cell.Style.Numberformat.Format = numberFormat;
+
break;
//مبلغ قابل پرداخت
case 29:
cell.Style.Fill.BackgroundColor.SetColor(1, 168, 186, 254);
+ cell.Style.Numberformat.Format = numberFormat;
+
break;
}
}
diff --git a/AccountMangement.Infrastructure.EFCore/Mappings/SubAccountMapping.cs b/AccountMangement.Infrastructure.EFCore/Mappings/SubAccountMapping.cs
index d00e3349..aa76f776 100644
--- a/AccountMangement.Infrastructure.EFCore/Mappings/SubAccountMapping.cs
+++ b/AccountMangement.Infrastructure.EFCore/Mappings/SubAccountMapping.cs
@@ -12,8 +12,8 @@ namespace AccountMangement.Infrastructure.EFCore.Mappings
{
builder.ToTable("SubAccounts");
builder.HasKey(x => x.id);
- builder.Property(x => x.IsActive).HasConversion(x => x.ToString("d")
- , x => ((IsActive)Enum.Parse(typeof(IsActive), x))).HasMaxLength(1);
+ builder.Property(x => x.IsActive).HasConversion(x => x.ToString()
+ , x => ((IsActive)Enum.Parse(typeof(IsActive), x))).HasMaxLength(5);
builder.Property(x => x.PhoneNumber).HasMaxLength(11).IsRequired();
builder.Ignore(x => x.FullName);
builder.Property(x => x.Username).HasMaxLength(100).IsRequired();
diff --git a/AccountMangement.Infrastructure.EFCore/Migrations/20250106160432_subAccountPermissionUpdated.Designer.cs b/AccountMangement.Infrastructure.EFCore/Migrations/20250106160432_subAccountPermissionUpdated.Designer.cs
new file mode 100644
index 00000000..e5ae8734
--- /dev/null
+++ b/AccountMangement.Infrastructure.EFCore/Migrations/20250106160432_subAccountPermissionUpdated.Designer.cs
@@ -0,0 +1,1761 @@
+//
+using System;
+using AccountMangement.Infrastructure.EFCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace AccountMangement.Infrastructure.EFCore.Migrations
+{
+ [DbContext(typeof(AccountContext))]
+ [Migration("20250106160432_subAccountPermissionUpdated")]
+ partial class subAccountPermissionUpdated
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "8.0.10")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("AccountManagement.Domain.AccountAgg.Account", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AdminAreaPermission")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("ClientAriaPermission")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Email")
+ .HasMaxLength(150)
+ .HasColumnType("nvarchar(150)");
+
+ b.Property("Fullname")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("IsActiveString")
+ .HasMaxLength(6)
+ .HasColumnType("nvarchar(6)");
+
+ b.Property("Mobile")
+ .IsRequired()
+ .HasMaxLength(20)
+ .HasColumnType("nvarchar(20)");
+
+ b.Property("NationalCode")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("Password")
+ .IsRequired()
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.Property("PositionId")
+ .HasMaxLength(10)
+ .HasColumnType("bigint");
+
+ b.Property("PositionIsActive")
+ .HasMaxLength(5)
+ .HasColumnType("nvarchar(5)");
+
+ b.Property("ProfilePhoto")
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.Property("RoleId")
+ .HasColumnType("bigint");
+
+ b.Property("RoleName")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Username")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("VerifyCode")
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.HasKey("id");
+
+ b.HasIndex("PositionId");
+
+ b.HasIndex("RoleId");
+
+ b.ToTable("Accounts", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AccountLeftWorkAgg.AccountLeftWork", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AccountId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("LeftWorkGr")
+ .HasColumnType("datetime2");
+
+ b.Property("StartWorkGr")
+ .HasColumnType("datetime2");
+
+ b.HasKey("id");
+
+ b.HasIndex("AccountId");
+
+ b.ToTable("AccountLeftWork", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AdminResponseAgg.AdminResponse", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AdminAccountId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("IsActiveString")
+ .HasMaxLength(5)
+ .HasColumnType("nvarchar(5)");
+
+ b.Property("Response")
+ .HasColumnType("ntext");
+
+ b.Property("TicketId")
+ .HasColumnType("bigint");
+
+ b.HasKey("id");
+
+ b.HasIndex("TicketId");
+
+ b.ToTable("AdminResponses", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AdminResponseMediaAgg.AdminResponseMedia", b =>
+ {
+ b.Property("AdminResponseId")
+ .HasColumnType("bigint");
+
+ b.Property("MediaId")
+ .HasColumnType("bigint");
+
+ b.HasKey("AdminResponseId", "MediaId");
+
+ b.HasIndex("MediaId");
+
+ b.ToTable("AdminResponseMedias", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AssignAgg.Assign", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AcceptedTimeRequest")
+ .HasColumnType("int");
+
+ b.Property("AssignedId")
+ .HasColumnType("bigint");
+
+ b.Property("AssignedName")
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("AssignedPositionValue")
+ .HasColumnType("int");
+
+ b.Property("AssignerId")
+ .HasColumnType("bigint");
+
+ b.Property("AssignerPositionValue")
+ .HasColumnType("int");
+
+ b.Property("CancelDescription")
+ .HasColumnType("ntext");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("DoneDescription")
+ .HasColumnType("ntext");
+
+ b.Property("EndTaskDate")
+ .HasColumnType("datetime2");
+
+ b.Property("FirstTimeCreation")
+ .HasColumnType("bit");
+
+ b.Property("IsCancel")
+ .HasColumnType("bit");
+
+ b.Property("IsCanceledRequest")
+ .HasColumnType("bit");
+
+ b.Property("IsDone")
+ .HasColumnType("bit");
+
+ b.Property("IsDoneRequest")
+ .HasColumnType("bit");
+
+ b.Property("RequestDate")
+ .HasColumnType("datetime2");
+
+ b.Property("TaskId")
+ .HasColumnType("bigint");
+
+ b.Property("TimeRequest")
+ .HasColumnType("bit");
+
+ b.Property("TimeRequestDescription")
+ .HasColumnType("ntext");
+
+ b.HasKey("id");
+
+ b.HasIndex("TaskId");
+
+ b.ToTable("Assigns", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.CameraAccountAgg.CameraAccount", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AccountId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("IsActiveSting")
+ .IsRequired()
+ .HasMaxLength(5)
+ .HasColumnType("nvarchar(5)");
+
+ b.Property("Mobile")
+ .HasMaxLength(11)
+ .HasColumnType("nvarchar(11)");
+
+ b.Property("Password")
+ .IsRequired()
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.Property("Username")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("WorkshopId")
+ .HasColumnType("bigint");
+
+ b.Property("WorkshopName")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.HasKey("id");
+
+ b.HasIndex("AccountId");
+
+ b.ToTable("CameraAccounts", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.ClientResponseAgg.ClientResponse", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Response")
+ .HasColumnType("ntext");
+
+ b.Property("TicketId")
+ .HasColumnType("bigint");
+
+ b.HasKey("id");
+
+ b.HasIndex("TicketId");
+
+ b.ToTable("ClientResponses", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.ClientResponseMediaAgg.ClientResponseMedia", b =>
+ {
+ b.Property("ClientResponseId")
+ .HasColumnType("bigint");
+
+ b.Property("MediaId")
+ .HasColumnType("bigint");
+
+ b.HasKey("ClientResponseId", "MediaId");
+
+ b.HasIndex("MediaId");
+
+ b.ToTable("ClientResponseMedias", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.MediaAgg.Media", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("Category")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Path")
+ .HasColumnType("ntext");
+
+ b.Property("Type")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.HasKey("id");
+
+ b.ToTable("Medias", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.RoleAgg.Role", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.HasKey("id");
+
+ b.ToTable("Roles", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountAgg.SubAccount", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AccountId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("FName")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("IsActive")
+ .IsRequired()
+ .HasMaxLength(1)
+ .HasColumnType("nvarchar(1)");
+
+ b.Property("LName")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("NationalCode")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("Password")
+ .IsRequired()
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.Property("PhoneNumber")
+ .IsRequired()
+ .HasMaxLength(11)
+ .HasColumnType("nvarchar(11)");
+
+ b.Property("ProfilePhoto")
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.Property("SubAccountRoleId")
+ .HasColumnType("bigint");
+
+ b.Property("Username")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("VerifyCode")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.HasKey("id");
+
+ b.HasIndex("SubAccountRoleId");
+
+ b.ToTable("SubAccounts", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle1Agg.SubAccountPermissionSubtitle1", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("Code")
+ .HasMaxLength(15)
+ .HasColumnType("int");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.HasKey("id");
+
+ b.ToTable("SubAccountPermissionSubtitle1", (string)null);
+
+ b.HasData(
+ new
+ {
+ id = 102L,
+ Code = 102,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2552),
+ Title = "عملیات کارگاه"
+ },
+ new
+ {
+ id = 103L,
+ Code = 103,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2565),
+ Title = "عملیات پرسنل"
+ },
+ new
+ {
+ id = 104L,
+ Code = 104,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2566),
+ Title = "فیش حقوقی غیر رسمی"
+ },
+ new
+ {
+ id = 113L,
+ Code = 113,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2567),
+ Title = "گزارشات"
+ },
+ new
+ {
+ id = 106L,
+ Code = 106,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2568),
+ Title = "حضور و غیاب"
+ },
+ new
+ {
+ id = 110L,
+ Code = 110,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2569),
+ Title = "کارپوشه"
+ },
+ new
+ {
+ id = 111L,
+ Code = 111,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2570),
+ Title = "صورت حساب های مالی"
+ },
+ new
+ {
+ id = 112L,
+ Code = 112,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2570),
+ Title = "مدیریت کاربران"
+ });
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle2Agg.SubAccountPermissionSubtitle2", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("Code")
+ .HasMaxLength(15)
+ .HasColumnType("int");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("ParentId")
+ .HasColumnType("bigint");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.HasKey("id");
+
+ b.HasIndex("ParentId");
+
+ b.ToTable("SubAccountPermissionSubtitle2", (string)null);
+
+ b.HasData(
+ new
+ {
+ id = 10201L,
+ Code = 10201,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2607),
+ ParentId = 102L,
+ Title = "لیست قرارداد"
+ },
+ new
+ {
+ id = 10202L,
+ Code = 10202,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2609),
+ ParentId = 102L,
+ Title = "لیست فیش حقوقی"
+ },
+ new
+ {
+ id = 10203L,
+ Code = 10203,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2610),
+ ParentId = 102L,
+ Title = "لیست بیمه"
+ },
+ new
+ {
+ id = 10204L,
+ Code = 10204,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2612),
+ ParentId = 102L,
+ Title = "گزارش وضعیت پرسنل به صورت گروهی"
+ },
+ new
+ {
+ id = 10205L,
+ Code = 10205,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2613),
+ ParentId = 102L,
+ Title = "گزارش وضعیت پرسنل به صورت انفرادی"
+ },
+ new
+ {
+ id = 10206L,
+ Code = 10206,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2614),
+ ParentId = 102L,
+ Title = "لیست کل پرسنل"
+ },
+ new
+ {
+ id = 10301L,
+ Code = 10301,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2616),
+ ParentId = 103L,
+ Title = "ثبت مرخصی"
+ },
+ new
+ {
+ id = 10302L,
+ Code = 10302,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2617),
+ ParentId = 103L,
+ Title = "لیست کل مرخصی"
+ },
+ new
+ {
+ id = 10303L,
+ Code = 10303,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2618),
+ ParentId = 103L,
+ Title = "عملیات مدارک پرسنل"
+ },
+ new
+ {
+ id = 10304L,
+ Code = 10304,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2620),
+ ParentId = 103L,
+ Title = "عملیات پرداخت حقوق پرسنل"
+ },
+ new
+ {
+ id = 10305L,
+ Code = 10305,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2621),
+ ParentId = 103L,
+ Title = "عملیات وام"
+ },
+ new
+ {
+ id = 10306L,
+ Code = 10306,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2622),
+ ParentId = 103L,
+ Title = "عملیات پاداش"
+ },
+ new
+ {
+ id = 10307L,
+ Code = 10307,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2623),
+ ParentId = 103L,
+ Title = "عملیات مساعده"
+ },
+ new
+ {
+ id = 10308L,
+ Code = 10308,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2624),
+ ParentId = 103L,
+ Title = "عملیات جرایم"
+ },
+ new
+ {
+ id = 10402L,
+ Code = 10402,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2625),
+ ParentId = 104L,
+ Title = "تنظیم گروه بندی و حقوق پرسنل"
+ },
+ new
+ {
+ id = 10403L,
+ Code = 10403,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2627),
+ ParentId = 104L,
+ Title = "لیست فیش حقوقی موقت"
+ },
+ new
+ {
+ id = 10404L,
+ Code = 10404,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2628),
+ ParentId = 104L,
+ Title = "لیست فیش حقوقی نهایی"
+ },
+ new
+ {
+ id = 11301L,
+ Code = 11301,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2630),
+ ParentId = 113L,
+ Title = "گزارشات تجمیع حقوق پرسنل"
+ },
+ new
+ {
+ id = 10601L,
+ Code = 10601,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2632),
+ ParentId = 106L,
+ Title = "ارتقا یا تغییر سرویس حضور غیاب"
+ },
+ new
+ {
+ id = 10602L,
+ Code = 10602,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2633),
+ ParentId = 106L,
+ Title = "آپلود عکس پرسنل"
+ },
+ new
+ {
+ id = 10604L,
+ Code = 10604,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2635),
+ ParentId = 106L,
+ Title = "سوابق حضور و غیاب"
+ },
+ new
+ {
+ id = 10603L,
+ Code = 10603,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2659),
+ ParentId = 106L,
+ Title = "حضور و غیاب جاری"
+ },
+ new
+ {
+ id = 10605L,
+ Code = 10605,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2661),
+ ParentId = 106L,
+ Title = "عملیات گروهبندی"
+ },
+ new
+ {
+ id = 10606L,
+ Code = 10606,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2663),
+ ParentId = 106L,
+ Title = "تنظیم ساعت فعالیت مجموعه"
+ },
+ new
+ {
+ id = 10607L,
+ Code = 10607,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2665),
+ ParentId = 106L,
+ Title = "تنظیمات حساب کاربری دوربین"
+ },
+ new
+ {
+ id = 11001L,
+ Code = 11001,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2667),
+ ParentId = 110L,
+ Title = "حضور و غیاب کارپوشه"
+ },
+ new
+ {
+ id = 11002L,
+ Code = 11002,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2668),
+ ParentId = 110L,
+ Title = "قرارداد و فیش حقوقی کارپوشه"
+ },
+ new
+ {
+ id = 11003L,
+ Code = 11003,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2670),
+ ParentId = 110L,
+ Title = "بیمه کارپوشه"
+ });
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle3Agg.SubAccountPermissionSubtitle3", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("Code")
+ .HasMaxLength(15)
+ .HasColumnType("int");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("ParentId")
+ .HasColumnType("bigint");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.HasKey("id");
+
+ b.HasIndex("ParentId");
+
+ b.ToTable("SubAccountPermissionSubtitle3", (string)null);
+
+ b.HasData(
+ new
+ {
+ id = 1030501L,
+ Code = 1030501,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2902),
+ ParentId = 10305L,
+ Title = "ایجاد وام"
+ },
+ new
+ {
+ id = 1030502L,
+ Code = 1030502,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2907),
+ ParentId = 10305L,
+ Title = "ویرایش وام"
+ },
+ new
+ {
+ id = 1030503L,
+ Code = 1030503,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2910),
+ ParentId = 10305L,
+ Title = "حذف وام"
+ },
+ new
+ {
+ id = 1030601L,
+ Code = 1030601,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2913),
+ ParentId = 10306L,
+ Title = "ایجاد پاداش"
+ },
+ new
+ {
+ id = 1030602L,
+ Code = 1030602,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2916),
+ ParentId = 10306L,
+ Title = "ویرایش پاداش"
+ },
+ new
+ {
+ id = 1030603L,
+ Code = 1030603,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2919),
+ ParentId = 10306L,
+ Title = "حذف پاداش"
+ },
+ new
+ {
+ id = 1030701L,
+ Code = 1030701,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2921),
+ ParentId = 10307L,
+ Title = "ایجاد مساعده"
+ },
+ new
+ {
+ id = 1030702L,
+ Code = 1030702,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2924),
+ ParentId = 10307L,
+ Title = "ویرایش مساعده"
+ },
+ new
+ {
+ id = 1030703L,
+ Code = 1030703,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2926),
+ ParentId = 10307L,
+ Title = "حذف مساعده"
+ },
+ new
+ {
+ id = 1030801L,
+ Code = 1030801,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2929),
+ ParentId = 10308L,
+ Title = "ایجاد جریمه"
+ },
+ new
+ {
+ id = 1030802L,
+ Code = 1030802,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2932),
+ ParentId = 10308L,
+ Title = "ایجاد عنوان جریمه"
+ },
+ new
+ {
+ id = 1030803L,
+ Code = 1030803,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2935),
+ ParentId = 10308L,
+ Title = "ویرایش جریمه"
+ },
+ new
+ {
+ id = 1030804L,
+ Code = 1030804,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2937),
+ ParentId = 10308L,
+ Title = "حذف جریمه"
+ },
+ new
+ {
+ id = 1040301L,
+ Code = 1040301,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2941),
+ ParentId = 10403L,
+ Title = "ایجاد فیش حقوقی غیر رسمی موقت"
+ },
+ new
+ {
+ id = 1040302L,
+ Code = 1040302,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2943),
+ ParentId = 10403L,
+ Title = "پرینت فیش حقوقی غیر رسمی موقت"
+ },
+ new
+ {
+ id = 1040303L,
+ Code = 1040303,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2946),
+ ParentId = 10403L,
+ Title = "حذف فیش حقوقی غیر رسمی موقت"
+ },
+ new
+ {
+ id = 1040304L,
+ Code = 1040304,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2950),
+ ParentId = 10403L,
+ Title = "خروجی اکسل فیش حقوقی غیر رسمی موقت"
+ },
+ new
+ {
+ id = 1040401L,
+ Code = 1040401,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2953),
+ ParentId = 10404L,
+ Title = "ایجاد فیش حقوقی غیر رسمی نهایی"
+ },
+ new
+ {
+ id = 1040402L,
+ Code = 1040402,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2957),
+ ParentId = 10404L,
+ Title = "پرینت فیش حقوقی غیر رسمی نهایی"
+ },
+ new
+ {
+ id = 1040403L,
+ Code = 1040403,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2960),
+ ParentId = 10404L,
+ Title = "حذف فیش حقوقی غیر رسمی نهایی"
+ },
+ new
+ {
+ id = 1040404L,
+ Code = 1040404,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2963),
+ ParentId = 10404L,
+ Title = "خروجی اکسل فیش حقوقی غیر رسمی نهایی"
+ },
+ new
+ {
+ id = 1040201L,
+ Code = 1040201,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2966),
+ ParentId = 10402L,
+ Title = "تنظیمات محاسبه فیش حقوقی"
+ },
+ new
+ {
+ id = 1040202L,
+ Code = 1040202,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2969),
+ ParentId = 10402L,
+ Title = "نمایش حقوق در تنظیمات محاسبه فیش حقوقی"
+ },
+ new
+ {
+ id = 1060201L,
+ Code = 1060201,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2972),
+ ParentId = 10602L,
+ Title = "ویرایش عکس پرسنل"
+ },
+ new
+ {
+ id = 1060202L,
+ Code = 1060202,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2998),
+ ParentId = 10602L,
+ Title = "فعال و غیر فعال کردن پرسنل"
+ },
+ new
+ {
+ id = 1060203L,
+ Code = 1060203,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(3003),
+ ParentId = 10602L,
+ Title = "ویرایش نام مستعار"
+ },
+ new
+ {
+ id = 1060401L,
+ Code = 1060401,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(3006),
+ ParentId = 10604L,
+ Title = "ویرایش و افزودن سوابق حضور و غیاب"
+ },
+ new
+ {
+ id = 1060402L,
+ Code = 1060402,
+ CreationDate = new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(3010),
+ ParentId = 10604L,
+ Title = "حذف سوابق حضور و غیاب"
+ });
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle4Agg.SubAccountPermissionSubtitle4", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("Code")
+ .HasMaxLength(15)
+ .HasColumnType("int");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("ParentId")
+ .HasColumnType("bigint");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.HasKey("id");
+
+ b.HasIndex("ParentId");
+
+ b.ToTable("SubAccountPermissionSubtitle4", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountRoleAgg.SubAccountRole", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AccountId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Title")
+ .HasMaxLength(60)
+ .HasColumnType("nvarchar(60)");
+
+ b.HasKey("id");
+
+ b.ToTable("SubAccountRoles", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskAgg.Tasks", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("ContractingPartyName")
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Description")
+ .HasColumnType("ntext");
+
+ b.Property("IsActiveString")
+ .HasMaxLength(7)
+ .HasColumnType("nvarchar(7)");
+
+ b.Property("SenderId")
+ .HasColumnType("bigint");
+
+ b.Property("StartTaskDate")
+ .HasColumnType("datetime2");
+
+ b.Property("TaskScheduleId")
+ .HasColumnType("bigint");
+
+ b.Property("TicketId")
+ .HasColumnType("bigint");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.HasKey("id");
+
+ b.HasIndex("TaskScheduleId");
+
+ b.ToTable("TasksManager", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskMediaAgg.TaskMedia", b =>
+ {
+ b.Property("MediaId")
+ .HasColumnType("bigint");
+
+ b.Property("TaskId")
+ .HasColumnType("bigint");
+
+ b.HasKey("MediaId", "TaskId");
+
+ b.HasIndex("TaskId");
+
+ b.ToTable("TasksMedias", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskMessageAgg.TaskMessage", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AssignId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Message")
+ .HasColumnType("ntext");
+
+ b.Property("RequestedDateFa")
+ .HasMaxLength(25)
+ .HasColumnType("nvarchar(25)");
+
+ b.Property("TypeOfMessage")
+ .HasMaxLength(30)
+ .HasColumnType("nvarchar(30)");
+
+ b.HasKey("id");
+
+ b.HasIndex("AssignId");
+
+ b.ToTable("TaskMessages", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskMessageItemsAgg.TaskMessageItems", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("ReceiverAccountId")
+ .HasColumnType("bigint");
+
+ b.Property("SenderAccountId")
+ .HasColumnType("bigint");
+
+ b.Property("TaskMessageId")
+ .HasColumnType("bigint");
+
+ b.HasKey("id");
+
+ b.HasIndex("TaskMessageId");
+
+ b.ToTable("TaskMessageItems", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskScheduleAgg.TaskSchedule", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("Count")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("LastEndTaskDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Type")
+ .HasMaxLength(12)
+ .HasColumnType("nvarchar(12)");
+
+ b.Property("UnitNumber")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("UnitType")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.HasKey("id");
+
+ b.ToTable("TaskSchedules", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskSubjectAgg.TaskSubject", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Subject")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.HasKey("id");
+
+ b.ToTable("TaskSubjects", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TicketAccessAccountAgg.TicketAccessAccount", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AccountId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.HasKey("id");
+
+ b.ToTable("TicketAccessAccounts", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TicketAgg.Ticket", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("ContractingPartyName")
+ .HasMaxLength(155)
+ .HasColumnType("nvarchar(155)");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Description")
+ .HasColumnType("ntext");
+
+ b.Property("SenderId")
+ .HasColumnType("bigint");
+
+ b.Property("Status")
+ .HasMaxLength(30)
+ .HasColumnType("nvarchar(30)");
+
+ b.Property("SubAccountSenderId")
+ .HasColumnType("bigint");
+
+ b.Property("TicketNumber")
+ .HasMaxLength(12)
+ .HasColumnType("nvarchar(12)");
+
+ b.Property("TicketType")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Title")
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("WorkshopId")
+ .HasColumnType("bigint");
+
+ b.HasKey("id");
+
+ b.ToTable("Tickets", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TicketMediasAgg.TicketMedia", b =>
+ {
+ b.Property("TicketId")
+ .HasColumnType("bigint");
+
+ b.Property("MediaId")
+ .HasColumnType("bigint");
+
+ b.HasKey("TicketId", "MediaId");
+
+ b.HasIndex("MediaId");
+
+ b.ToTable("TicketMedias", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Domain.PositionAgg.Position", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("PositionName")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("PositionValue")
+ .HasMaxLength(2)
+ .HasColumnType("int");
+
+ b.HasKey("id");
+
+ b.ToTable("Positions", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AccountAgg.Account", b =>
+ {
+ b.HasOne("TaskManager.Domain.PositionAgg.Position", "Position")
+ .WithMany("Accounts")
+ .HasForeignKey("PositionId");
+
+ b.HasOne("AccountManagement.Domain.RoleAgg.Role", "Role")
+ .WithMany("Accounts")
+ .HasForeignKey("RoleId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Position");
+
+ b.Navigation("Role");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AccountLeftWorkAgg.AccountLeftWork", b =>
+ {
+ b.HasOne("AccountManagement.Domain.AccountAgg.Account", "Account")
+ .WithMany("AccountLeftWorkList")
+ .HasForeignKey("AccountId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Account");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AdminResponseAgg.AdminResponse", b =>
+ {
+ b.HasOne("AccountManagement.Domain.TicketAgg.Ticket", "Ticket")
+ .WithMany("AdminResponses")
+ .HasForeignKey("TicketId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Ticket");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AdminResponseMediaAgg.AdminResponseMedia", b =>
+ {
+ b.HasOne("AccountManagement.Domain.AdminResponseAgg.AdminResponse", "AdminResponse")
+ .WithMany("AdminResponseMedias")
+ .HasForeignKey("AdminResponseId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("AccountManagement.Domain.MediaAgg.Media", "Media")
+ .WithMany("AdminResponseMedias")
+ .HasForeignKey("MediaId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("AdminResponse");
+
+ b.Navigation("Media");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AssignAgg.Assign", b =>
+ {
+ b.HasOne("AccountManagement.Domain.TaskAgg.Tasks", "Task")
+ .WithMany("Assigns")
+ .HasForeignKey("TaskId")
+ .OnDelete(DeleteBehavior.Cascade);
+
+ b.Navigation("Task");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.CameraAccountAgg.CameraAccount", b =>
+ {
+ b.HasOne("AccountManagement.Domain.AccountAgg.Account", "Account")
+ .WithMany("CameraAccounts")
+ .HasForeignKey("AccountId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Account");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.ClientResponseAgg.ClientResponse", b =>
+ {
+ b.HasOne("AccountManagement.Domain.TicketAgg.Ticket", "Ticket")
+ .WithMany("ClientResponses")
+ .HasForeignKey("TicketId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Ticket");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.ClientResponseMediaAgg.ClientResponseMedia", b =>
+ {
+ b.HasOne("AccountManagement.Domain.ClientResponseAgg.ClientResponse", "ClientResponse")
+ .WithMany("ClientResponseMedias")
+ .HasForeignKey("ClientResponseId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("AccountManagement.Domain.MediaAgg.Media", "Media")
+ .WithMany("ClientResponseMedias")
+ .HasForeignKey("MediaId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("ClientResponse");
+
+ b.Navigation("Media");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.RoleAgg.Role", b =>
+ {
+ b.OwnsMany("AccountManagement.Domain.RoleAgg.Permission", "Permissions", b1 =>
+ {
+ b1.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property("Id"));
+
+ b1.Property("Code")
+ .HasColumnType("int");
+
+ b1.Property("RoleId")
+ .HasColumnType("bigint");
+
+ b1.HasKey("Id");
+
+ b1.HasIndex("RoleId");
+
+ b1.ToTable("RolePermissions", (string)null);
+
+ b1.WithOwner("Role")
+ .HasForeignKey("RoleId");
+
+ b1.Navigation("Role");
+ });
+
+ b.Navigation("Permissions");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountAgg.SubAccount", b =>
+ {
+ b.HasOne("AccountManagement.Domain.SubAccountRoleAgg.SubAccountRole", "SubAccountRole")
+ .WithMany("SubAccounts")
+ .HasForeignKey("SubAccountRoleId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("SubAccountRole");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle2Agg.SubAccountPermissionSubtitle2", b =>
+ {
+ b.HasOne("AccountManagement.Domain.SubAccountPermissionSubtitle1Agg.SubAccountPermissionSubtitle1", "Parent")
+ .WithMany("Children")
+ .HasForeignKey("ParentId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Parent");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle3Agg.SubAccountPermissionSubtitle3", b =>
+ {
+ b.HasOne("AccountManagement.Domain.SubAccountPermissionSubtitle2Agg.SubAccountPermissionSubtitle2", "Parent")
+ .WithMany("Children")
+ .HasForeignKey("ParentId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Parent");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle4Agg.SubAccountPermissionSubtitle4", b =>
+ {
+ b.HasOne("AccountManagement.Domain.SubAccountPermissionSubtitle3Agg.SubAccountPermissionSubtitle3", "Parent")
+ .WithMany("Children")
+ .HasForeignKey("ParentId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Parent");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountRoleAgg.SubAccountRole", b =>
+ {
+ b.OwnsMany("AccountManagement.Domain.SubAccountRoleAgg.SubAccountRolePermission", "RolePermissions", b1 =>
+ {
+ b1.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property("id"));
+
+ b1.Property("PermissionCode")
+ .HasColumnType("int");
+
+ b1.Property("SubAccountRoleId")
+ .HasColumnType("bigint");
+
+ b1.HasKey("id");
+
+ b1.HasIndex("SubAccountRoleId");
+
+ b1.ToTable("SubAccountRolePermissions", (string)null);
+
+ b1.WithOwner("SubAccountRole")
+ .HasForeignKey("SubAccountRoleId");
+
+ b1.Navigation("SubAccountRole");
+ });
+
+ b.Navigation("RolePermissions");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskAgg.Tasks", b =>
+ {
+ b.HasOne("AccountManagement.Domain.TaskScheduleAgg.TaskSchedule", "TaskSchedule")
+ .WithMany("TasksList")
+ .HasForeignKey("TaskScheduleId")
+ .OnDelete(DeleteBehavior.Cascade);
+
+ b.Navigation("TaskSchedule");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskMediaAgg.TaskMedia", b =>
+ {
+ b.HasOne("AccountManagement.Domain.MediaAgg.Media", "Media")
+ .WithMany("TaskMedias")
+ .HasForeignKey("MediaId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("AccountManagement.Domain.TaskAgg.Tasks", "Tasks")
+ .WithMany("TaskMedias")
+ .HasForeignKey("TaskId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Media");
+
+ b.Navigation("Tasks");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskMessageAgg.TaskMessage", b =>
+ {
+ b.HasOne("AccountManagement.Domain.AssignAgg.Assign", "Assign")
+ .WithMany("TaskMessageList")
+ .HasForeignKey("AssignId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Assign");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskMessageItemsAgg.TaskMessageItems", b =>
+ {
+ b.HasOne("AccountManagement.Domain.TaskMessageAgg.TaskMessage", "TaskMessage")
+ .WithMany("TaskMessageItemsList")
+ .HasForeignKey("TaskMessageId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("TaskMessage");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TicketMediasAgg.TicketMedia", b =>
+ {
+ b.HasOne("AccountManagement.Domain.MediaAgg.Media", "Media")
+ .WithMany("TicketMedias")
+ .HasForeignKey("MediaId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("AccountManagement.Domain.TicketAgg.Ticket", "Ticket")
+ .WithMany("TicketMedias")
+ .HasForeignKey("TicketId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Media");
+
+ b.Navigation("Ticket");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AccountAgg.Account", b =>
+ {
+ b.Navigation("AccountLeftWorkList");
+
+ b.Navigation("CameraAccounts");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AdminResponseAgg.AdminResponse", b =>
+ {
+ b.Navigation("AdminResponseMedias");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AssignAgg.Assign", b =>
+ {
+ b.Navigation("TaskMessageList");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.ClientResponseAgg.ClientResponse", b =>
+ {
+ b.Navigation("ClientResponseMedias");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.MediaAgg.Media", b =>
+ {
+ b.Navigation("AdminResponseMedias");
+
+ b.Navigation("ClientResponseMedias");
+
+ b.Navigation("TaskMedias");
+
+ b.Navigation("TicketMedias");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.RoleAgg.Role", b =>
+ {
+ b.Navigation("Accounts");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle1Agg.SubAccountPermissionSubtitle1", b =>
+ {
+ b.Navigation("Children");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle2Agg.SubAccountPermissionSubtitle2", b =>
+ {
+ b.Navigation("Children");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle3Agg.SubAccountPermissionSubtitle3", b =>
+ {
+ b.Navigation("Children");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.SubAccountRoleAgg.SubAccountRole", b =>
+ {
+ b.Navigation("SubAccounts");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskAgg.Tasks", b =>
+ {
+ b.Navigation("Assigns");
+
+ b.Navigation("TaskMedias");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskMessageAgg.TaskMessage", b =>
+ {
+ b.Navigation("TaskMessageItemsList");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TaskScheduleAgg.TaskSchedule", b =>
+ {
+ b.Navigation("TasksList");
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.TicketAgg.Ticket", b =>
+ {
+ b.Navigation("AdminResponses");
+
+ b.Navigation("ClientResponses");
+
+ b.Navigation("TicketMedias");
+ });
+
+ modelBuilder.Entity("TaskManager.Domain.PositionAgg.Position", b =>
+ {
+ b.Navigation("Accounts");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}
diff --git a/AccountMangement.Infrastructure.EFCore/Migrations/20250106160432_subAccountPermissionUpdated.cs b/AccountMangement.Infrastructure.EFCore/Migrations/20250106160432_subAccountPermissionUpdated.cs
new file mode 100644
index 00000000..ccf6dc90
--- /dev/null
+++ b/AccountMangement.Infrastructure.EFCore/Migrations/20250106160432_subAccountPermissionUpdated.cs
@@ -0,0 +1,900 @@
+using System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
+
+namespace AccountMangement.Infrastructure.EFCore.Migrations
+{
+ ///
+ public partial class subAccountPermissionUpdated : Migration
+ {
+ ///
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 102L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2552));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 103L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2565));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 104L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2566));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 106L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2568));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 110L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2569));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 111L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2570));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 112L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2570));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 113L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2567));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10201L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2607));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10202L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2609));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10203L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2610));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10204L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2612));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10205L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2613));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10206L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2614));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10301L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2616));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10302L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2617));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10303L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2618));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10304L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2620));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10305L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2621));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10306L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2622));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10307L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2623));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10308L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2624));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10402L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2625));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10403L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2627));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10404L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2628));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10601L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2632));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10602L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2633));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10603L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2659));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10604L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2635));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10605L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2661));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10606L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2663));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10607L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2665));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 11001L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2667));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 11002L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2668));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 11003L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2670));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 11301L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2630));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030501L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2902));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030502L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2907));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030503L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2910));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030601L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2913));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030602L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2916));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030603L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2919));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030701L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2921));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030702L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2924));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030703L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2926));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030801L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2929));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030802L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2932));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030803L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2935));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030804L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2937));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040201L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2966));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040301L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2941));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040302L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2943));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040303L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2946));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040401L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2953));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040402L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2957));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040403L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2960));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060201L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2972));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060202L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2998));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060203L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(3003));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060401L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(3006));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060402L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(3010));
+
+ migrationBuilder.InsertData(
+ table: "SubAccountPermissionSubtitle3",
+ columns: new[] { "id", "Code", "CreationDate", "ParentId", "Title" },
+ values: new object[,]
+ {
+ { 1040202L, 1040202, new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2969), 10402L, "نمایش حقوق در تنظیمات محاسبه فیش حقوقی" },
+ { 1040304L, 1040304, new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2950), 10403L, "خروجی اکسل فیش حقوقی غیر رسمی موقت" },
+ { 1040404L, 1040404, new DateTime(2025, 1, 6, 19, 34, 31, 426, DateTimeKind.Local).AddTicks(2963), 10404L, "خروجی اکسل فیش حقوقی غیر رسمی نهایی" }
+ });
+ }
+
+ ///
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DeleteData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040202L);
+
+ migrationBuilder.DeleteData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040304L);
+
+ migrationBuilder.DeleteData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040404L);
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 102L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2250));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 103L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2262));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 104L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2263));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 106L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2265));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 110L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2267));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 111L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2268));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 112L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2268));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle1",
+ keyColumn: "id",
+ keyValue: 113L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2264));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10201L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2358));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10202L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2361));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10203L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2363));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10204L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2365));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10205L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2366));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10206L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2368));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10301L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2370));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10302L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2372));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10303L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2374));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10304L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2377));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10305L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2378));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10306L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2380));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10307L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2382));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10308L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2383));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10402L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2385));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10403L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2387));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10404L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2388));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10601L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2394));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10602L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2395));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10603L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2400));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10604L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2398));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10605L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2401));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10606L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2404));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 10607L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2406));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 11001L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2408));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 11002L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2411));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 11003L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2413));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle2",
+ keyColumn: "id",
+ keyValue: 11301L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2391));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030501L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2701));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030502L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2706));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030503L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2710));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030601L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2713));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030602L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2716));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030603L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2748));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030701L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2751));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030702L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2755));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030703L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2759));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030801L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2763));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030802L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2766));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030803L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2770));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1030804L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2773));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040201L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2799));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040301L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2776));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040302L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2780));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040303L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2784));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040401L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2788));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040402L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2792));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1040403L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2796));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060201L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2804));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060202L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2808));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060203L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2812));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060401L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2816));
+
+ migrationBuilder.UpdateData(
+ table: "SubAccountPermissionSubtitle3",
+ keyColumn: "id",
+ keyValue: 1060402L,
+ column: "CreationDate",
+ value: new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2821));
+ }
+ }
+}
diff --git a/AccountMangement.Infrastructure.EFCore/Migrations/20250106183901_mappingSubAccountChangeIsActive.Designer.cs b/AccountMangement.Infrastructure.EFCore/Migrations/20250106183901_mappingSubAccountChangeIsActive.Designer.cs
new file mode 100644
index 00000000..acd7f7da
--- /dev/null
+++ b/AccountMangement.Infrastructure.EFCore/Migrations/20250106183901_mappingSubAccountChangeIsActive.Designer.cs
@@ -0,0 +1,1251 @@
+//
+using System;
+using AccountMangement.Infrastructure.EFCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace AccountMangement.Infrastructure.EFCore.Migrations
+{
+ [DbContext(typeof(AccountContext))]
+ [Migration("20250106183901_mappingSubAccountChangeIsActive")]
+ partial class mappingSubAccountChangeIsActive
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "8.0.10")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("AccountManagement.Domain.AccountAgg.Account", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AdminAreaPermission")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("ClientAriaPermission")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Email")
+ .HasMaxLength(150)
+ .HasColumnType("nvarchar(150)");
+
+ b.Property("Fullname")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("IsActiveString")
+ .HasMaxLength(6)
+ .HasColumnType("nvarchar(6)");
+
+ b.Property("Mobile")
+ .IsRequired()
+ .HasMaxLength(20)
+ .HasColumnType("nvarchar(20)");
+
+ b.Property("NationalCode")
+ .HasMaxLength(10)
+ .HasColumnType("nvarchar(10)");
+
+ b.Property("Password")
+ .IsRequired()
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.Property("PositionId")
+ .HasMaxLength(10)
+ .HasColumnType("bigint");
+
+ b.Property("PositionIsActive")
+ .HasMaxLength(5)
+ .HasColumnType("nvarchar(5)");
+
+ b.Property("ProfilePhoto")
+ .HasMaxLength(500)
+ .HasColumnType("nvarchar(500)");
+
+ b.Property("RoleId")
+ .HasColumnType("bigint");
+
+ b.Property("RoleName")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Username")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("VerifyCode")
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.HasKey("id");
+
+ b.HasIndex("PositionId");
+
+ b.HasIndex("RoleId");
+
+ b.ToTable("Accounts", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AccountLeftWorkAgg.AccountLeftWork", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AccountId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("LeftWorkGr")
+ .HasColumnType("datetime2");
+
+ b.Property("StartWorkGr")
+ .HasColumnType("datetime2");
+
+ b.HasKey("id");
+
+ b.HasIndex("AccountId");
+
+ b.ToTable("AccountLeftWork", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AdminResponseAgg.AdminResponse", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AdminAccountId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("IsActiveString")
+ .HasMaxLength(5)
+ .HasColumnType("nvarchar(5)");
+
+ b.Property("Response")
+ .HasColumnType("ntext");
+
+ b.Property("TicketId")
+ .HasColumnType("bigint");
+
+ b.HasKey("id");
+
+ b.HasIndex("TicketId");
+
+ b.ToTable("AdminResponses", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AdminResponseMediaAgg.AdminResponseMedia", b =>
+ {
+ b.Property("AdminResponseId")
+ .HasColumnType("bigint");
+
+ b.Property("MediaId")
+ .HasColumnType("bigint");
+
+ b.HasKey("AdminResponseId", "MediaId");
+
+ b.HasIndex("MediaId");
+
+ b.ToTable("AdminResponseMedias", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.AssignAgg.Assign", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AcceptedTimeRequest")
+ .HasColumnType("int");
+
+ b.Property("AssignedId")
+ .HasColumnType("bigint");
+
+ b.Property("AssignedName")
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("AssignedPositionValue")
+ .HasColumnType("int");
+
+ b.Property("AssignerId")
+ .HasColumnType("bigint");
+
+ b.Property("AssignerPositionValue")
+ .HasColumnType("int");
+
+ b.Property("CancelDescription")
+ .HasColumnType("ntext");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("DoneDescription")
+ .HasColumnType("ntext");
+
+ b.Property("EndTaskDate")
+ .HasColumnType("datetime2");
+
+ b.Property("FirstTimeCreation")
+ .HasColumnType("bit");
+
+ b.Property("IsCancel")
+ .HasColumnType("bit");
+
+ b.Property("IsCanceledRequest")
+ .HasColumnType("bit");
+
+ b.Property("IsDone")
+ .HasColumnType("bit");
+
+ b.Property("IsDoneRequest")
+ .HasColumnType("bit");
+
+ b.Property("RequestDate")
+ .HasColumnType("datetime2");
+
+ b.Property("TaskId")
+ .HasColumnType("bigint");
+
+ b.Property("TimeRequest")
+ .HasColumnType("bit");
+
+ b.Property("TimeRequestDescription")
+ .HasColumnType("ntext");
+
+ b.HasKey("id");
+
+ b.HasIndex("TaskId");
+
+ b.ToTable("Assigns", (string)null);
+ });
+
+ modelBuilder.Entity("AccountManagement.Domain.CameraAccountAgg.CameraAccount", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+
+ b.Property("AccountId")
+ .HasColumnType("bigint");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("IsActiveSting")
+ .IsRequired()
+ .HasMaxLength(5)
+ .HasColumnType("nvarchar(5)");
+
+ b.Property("Mobile")
+ .HasMaxLength(11)
+ .HasColumnType("nvarchar(11)");
+
+ b.Property("Password")
+ .IsRequired()
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.Property("Username")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property