1738 lines
69 KiB
C#
1738 lines
69 KiB
C#
// <auto-generated />
|
|
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("20250104133725_SeedPermission")]
|
|
partial class SeedPermission
|
|
{
|
|
/// <inheritdoc />
|
|
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<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("AdminAreaPermission")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("ClientAriaPermission")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(150)
|
|
.HasColumnType("nvarchar(150)");
|
|
|
|
b.Property<string>("Fullname")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasMaxLength(6)
|
|
.HasColumnType("nvarchar(6)");
|
|
|
|
b.Property<string>("Mobile")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("NationalCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<long?>("PositionId")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("PositionIsActive")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("ProfilePhoto")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<long>("RoleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("RoleName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("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<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("LeftWorkGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("StartWorkGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("AccountId");
|
|
|
|
b.ToTable("AccountLeftWork", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.AdminResponseAgg.AdminResponse", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("AdminAccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("Response")
|
|
.HasColumnType("ntext");
|
|
|
|
b.Property<long>("TicketId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("TicketId");
|
|
|
|
b.ToTable("AdminResponses", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.AdminResponseMediaAgg.AdminResponseMedia", b =>
|
|
{
|
|
b.Property<long>("AdminResponseId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("MediaId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("AdminResponseId", "MediaId");
|
|
|
|
b.HasIndex("MediaId");
|
|
|
|
b.ToTable("AdminResponseMedias", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.AssignAgg.Assign", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("AcceptedTimeRequest")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("AssignedId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("AssignedName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<int>("AssignedPositionValue")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("AssignerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("AssignerPositionValue")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CancelDescription")
|
|
.HasColumnType("ntext");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DoneDescription")
|
|
.HasColumnType("ntext");
|
|
|
|
b.Property<DateTime>("EndTaskDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("FirstTimeCreation")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsCancel")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsCanceledRequest")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsDone")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsDoneRequest")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("RequestDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("TaskId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("TimeRequest")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("TimeRequestDescription")
|
|
.HasColumnType("ntext");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("TaskId");
|
|
|
|
b.ToTable("Assigns", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.CameraAccountAgg.CameraAccount", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("IsActiveSting")
|
|
.IsRequired()
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("Mobile")
|
|
.HasMaxLength(11)
|
|
.HasColumnType("nvarchar(11)");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("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<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Response")
|
|
.HasColumnType("ntext");
|
|
|
|
b.Property<long>("TicketId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("TicketId");
|
|
|
|
b.ToTable("ClientResponses", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.ClientResponseMediaAgg.ClientResponseMedia", b =>
|
|
{
|
|
b.Property<long>("ClientResponseId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("MediaId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("ClientResponseId", "MediaId");
|
|
|
|
b.HasIndex("MediaId");
|
|
|
|
b.ToTable("ClientResponseMedias", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.MediaAgg.Media", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Category")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Path")
|
|
.HasColumnType("ntext");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Medias", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.RoleAgg.Role", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Roles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.SubAccountAgg.SubAccount", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("IsActive")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("nvarchar(1)");
|
|
|
|
b.Property<string>("LName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("NationalCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(11)
|
|
.HasColumnType("nvarchar(11)");
|
|
|
|
b.Property<string>("ProfilePhoto")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<long>("SubAccountRoleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("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<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("Code")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("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, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2250),
|
|
Title = "عملیات کارگاه"
|
|
},
|
|
new
|
|
{
|
|
id = 103L,
|
|
Code = 103,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2262),
|
|
Title = "عملیات پرسنل"
|
|
},
|
|
new
|
|
{
|
|
id = 104L,
|
|
Code = 104,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2263),
|
|
Title = "فیش حقوقی غیر رسمی"
|
|
},
|
|
new
|
|
{
|
|
id = 113L,
|
|
Code = 113,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2264),
|
|
Title = "گزارشات"
|
|
},
|
|
new
|
|
{
|
|
id = 106L,
|
|
Code = 106,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2265),
|
|
Title = "حضور و غیاب"
|
|
},
|
|
new
|
|
{
|
|
id = 110L,
|
|
Code = 110,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2267),
|
|
Title = "کارپوشه"
|
|
},
|
|
new
|
|
{
|
|
id = 111L,
|
|
Code = 111,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2268),
|
|
Title = "صورت حساب های مالی"
|
|
},
|
|
new
|
|
{
|
|
id = 112L,
|
|
Code = 112,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2268),
|
|
Title = "مدیریت کاربران"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle2Agg.SubAccountPermissionSubtitle2", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("Code")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("ParentId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("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, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2358),
|
|
ParentId = 102L,
|
|
Title = "لیست قرارداد"
|
|
},
|
|
new
|
|
{
|
|
id = 10202L,
|
|
Code = 10202,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2361),
|
|
ParentId = 102L,
|
|
Title = "لیست فیش حقوقی"
|
|
},
|
|
new
|
|
{
|
|
id = 10203L,
|
|
Code = 10203,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2363),
|
|
ParentId = 102L,
|
|
Title = "لیست بیمه"
|
|
},
|
|
new
|
|
{
|
|
id = 10204L,
|
|
Code = 10204,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2365),
|
|
ParentId = 102L,
|
|
Title = "گزارش وضعیت پرسنل به صورت گروهی"
|
|
},
|
|
new
|
|
{
|
|
id = 10205L,
|
|
Code = 10205,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2366),
|
|
ParentId = 102L,
|
|
Title = "گزارش وضعیت پرسنل به صورت انفرادی"
|
|
},
|
|
new
|
|
{
|
|
id = 10206L,
|
|
Code = 10206,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2368),
|
|
ParentId = 102L,
|
|
Title = "لیست کل پرسنل"
|
|
},
|
|
new
|
|
{
|
|
id = 10301L,
|
|
Code = 10301,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2370),
|
|
ParentId = 103L,
|
|
Title = "ثبت مرخصی"
|
|
},
|
|
new
|
|
{
|
|
id = 10302L,
|
|
Code = 10302,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2372),
|
|
ParentId = 103L,
|
|
Title = "لیست کل مرخصی"
|
|
},
|
|
new
|
|
{
|
|
id = 10303L,
|
|
Code = 10303,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2374),
|
|
ParentId = 103L,
|
|
Title = "عملیات مدارک پرسنل"
|
|
},
|
|
new
|
|
{
|
|
id = 10304L,
|
|
Code = 10304,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2377),
|
|
ParentId = 103L,
|
|
Title = "عملیات پرداخت حقوق پرسنل"
|
|
},
|
|
new
|
|
{
|
|
id = 10305L,
|
|
Code = 10305,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2378),
|
|
ParentId = 103L,
|
|
Title = "عملیات وام"
|
|
},
|
|
new
|
|
{
|
|
id = 10306L,
|
|
Code = 10306,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2380),
|
|
ParentId = 103L,
|
|
Title = "عملیات پاداش"
|
|
},
|
|
new
|
|
{
|
|
id = 10307L,
|
|
Code = 10307,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2382),
|
|
ParentId = 103L,
|
|
Title = "عملیات مساعده"
|
|
},
|
|
new
|
|
{
|
|
id = 10308L,
|
|
Code = 10308,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2383),
|
|
ParentId = 103L,
|
|
Title = "عملیات جرایم"
|
|
},
|
|
new
|
|
{
|
|
id = 10402L,
|
|
Code = 10402,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2385),
|
|
ParentId = 104L,
|
|
Title = "تنظیم گروه بندی و حقوق پرسنل"
|
|
},
|
|
new
|
|
{
|
|
id = 10403L,
|
|
Code = 10403,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2387),
|
|
ParentId = 104L,
|
|
Title = "لیست فیش حقوقی موقت"
|
|
},
|
|
new
|
|
{
|
|
id = 10404L,
|
|
Code = 10404,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2388),
|
|
ParentId = 104L,
|
|
Title = "لیست فیش حقوقی نهایی"
|
|
},
|
|
new
|
|
{
|
|
id = 11301L,
|
|
Code = 11301,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2391),
|
|
ParentId = 113L,
|
|
Title = "گزارشات تجمیع حقوق پرسنل"
|
|
},
|
|
new
|
|
{
|
|
id = 10601L,
|
|
Code = 10601,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2394),
|
|
ParentId = 106L,
|
|
Title = "ارتقا یا تغییر سرویس حضور غیاب"
|
|
},
|
|
new
|
|
{
|
|
id = 10602L,
|
|
Code = 10602,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2395),
|
|
ParentId = 106L,
|
|
Title = "آپلود عکس پرسنل"
|
|
},
|
|
new
|
|
{
|
|
id = 10604L,
|
|
Code = 10604,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2398),
|
|
ParentId = 106L,
|
|
Title = "سوابق حضور و غیاب"
|
|
},
|
|
new
|
|
{
|
|
id = 10603L,
|
|
Code = 10603,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2400),
|
|
ParentId = 106L,
|
|
Title = "حضور و غیاب جاری"
|
|
},
|
|
new
|
|
{
|
|
id = 10605L,
|
|
Code = 10605,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2401),
|
|
ParentId = 106L,
|
|
Title = "عملیات گروهبندی"
|
|
},
|
|
new
|
|
{
|
|
id = 10606L,
|
|
Code = 10606,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2404),
|
|
ParentId = 106L,
|
|
Title = "تنظیم ساعت فعالیت مجموعه"
|
|
},
|
|
new
|
|
{
|
|
id = 10607L,
|
|
Code = 10607,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2406),
|
|
ParentId = 106L,
|
|
Title = "تنظیمات حساب کاربری دوربین"
|
|
},
|
|
new
|
|
{
|
|
id = 11001L,
|
|
Code = 11001,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2408),
|
|
ParentId = 110L,
|
|
Title = "حضور و غیاب کارپوشه"
|
|
},
|
|
new
|
|
{
|
|
id = 11002L,
|
|
Code = 11002,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2411),
|
|
ParentId = 110L,
|
|
Title = "قرارداد و فیش حقوقی کارپوشه"
|
|
},
|
|
new
|
|
{
|
|
id = 11003L,
|
|
Code = 11003,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2413),
|
|
ParentId = 110L,
|
|
Title = "بیمه کارپوشه"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle3Agg.SubAccountPermissionSubtitle3", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("Code")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("ParentId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("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, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2701),
|
|
ParentId = 10305L,
|
|
Title = "ایجاد وام"
|
|
},
|
|
new
|
|
{
|
|
id = 1030502L,
|
|
Code = 1030502,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2706),
|
|
ParentId = 10305L,
|
|
Title = "ویرایش وام"
|
|
},
|
|
new
|
|
{
|
|
id = 1030503L,
|
|
Code = 1030503,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2710),
|
|
ParentId = 10305L,
|
|
Title = "حذف وام"
|
|
},
|
|
new
|
|
{
|
|
id = 1030601L,
|
|
Code = 1030601,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2713),
|
|
ParentId = 10306L,
|
|
Title = "ایجاد پاداش"
|
|
},
|
|
new
|
|
{
|
|
id = 1030602L,
|
|
Code = 1030602,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2716),
|
|
ParentId = 10306L,
|
|
Title = "ویرایش پاداش"
|
|
},
|
|
new
|
|
{
|
|
id = 1030603L,
|
|
Code = 1030603,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2748),
|
|
ParentId = 10306L,
|
|
Title = "حذف پاداش"
|
|
},
|
|
new
|
|
{
|
|
id = 1030701L,
|
|
Code = 1030701,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2751),
|
|
ParentId = 10307L,
|
|
Title = "ایجاد مساعده"
|
|
},
|
|
new
|
|
{
|
|
id = 1030702L,
|
|
Code = 1030702,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2755),
|
|
ParentId = 10307L,
|
|
Title = "ویرایش مساعده"
|
|
},
|
|
new
|
|
{
|
|
id = 1030703L,
|
|
Code = 1030703,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2759),
|
|
ParentId = 10307L,
|
|
Title = "حذف مساعده"
|
|
},
|
|
new
|
|
{
|
|
id = 1030801L,
|
|
Code = 1030801,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2763),
|
|
ParentId = 10308L,
|
|
Title = "ایجاد جریمه"
|
|
},
|
|
new
|
|
{
|
|
id = 1030802L,
|
|
Code = 1030802,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2766),
|
|
ParentId = 10308L,
|
|
Title = "ایجاد عنوان جریمه"
|
|
},
|
|
new
|
|
{
|
|
id = 1030803L,
|
|
Code = 1030803,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2770),
|
|
ParentId = 10308L,
|
|
Title = "ویرایش جریمه"
|
|
},
|
|
new
|
|
{
|
|
id = 1030804L,
|
|
Code = 1030804,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2773),
|
|
ParentId = 10308L,
|
|
Title = "حذف جریمه"
|
|
},
|
|
new
|
|
{
|
|
id = 1040301L,
|
|
Code = 1040301,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2776),
|
|
ParentId = 10403L,
|
|
Title = "ایجاد فیش حقوقی غیر رسمی موقت"
|
|
},
|
|
new
|
|
{
|
|
id = 1040302L,
|
|
Code = 1040302,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2780),
|
|
ParentId = 10403L,
|
|
Title = "پرینت فیش حقوقی غیر رسمی موقت"
|
|
},
|
|
new
|
|
{
|
|
id = 1040303L,
|
|
Code = 1040303,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2784),
|
|
ParentId = 10403L,
|
|
Title = "حذف فیش حقوقی غیر رسمی موقت"
|
|
},
|
|
new
|
|
{
|
|
id = 1040401L,
|
|
Code = 1040401,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2788),
|
|
ParentId = 10404L,
|
|
Title = "ایجاد فیش حقوقی غیر رسمی نهایی"
|
|
},
|
|
new
|
|
{
|
|
id = 1040402L,
|
|
Code = 1040402,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2792),
|
|
ParentId = 10404L,
|
|
Title = "پرینت فیش حقوقی غیر رسمی نهایی"
|
|
},
|
|
new
|
|
{
|
|
id = 1040403L,
|
|
Code = 1040403,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2796),
|
|
ParentId = 10404L,
|
|
Title = "حذف فیش حقوقی غیر رسمی نهایی"
|
|
},
|
|
new
|
|
{
|
|
id = 1040201L,
|
|
Code = 1040201,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2799),
|
|
ParentId = 10402L,
|
|
Title = "تنظیمات محاسبه فیش حقوقی"
|
|
},
|
|
new
|
|
{
|
|
id = 1060201L,
|
|
Code = 1060201,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2804),
|
|
ParentId = 10602L,
|
|
Title = "ویرایش عکس پرسنل"
|
|
},
|
|
new
|
|
{
|
|
id = 1060202L,
|
|
Code = 1060202,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2808),
|
|
ParentId = 10602L,
|
|
Title = "فعال و غیر فعال کردن پرسنل"
|
|
},
|
|
new
|
|
{
|
|
id = 1060203L,
|
|
Code = 1060203,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2812),
|
|
ParentId = 10602L,
|
|
Title = "ویرایش نام مستعار"
|
|
},
|
|
new
|
|
{
|
|
id = 1060401L,
|
|
Code = 1060401,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2816),
|
|
ParentId = 10604L,
|
|
Title = "ویرایش و افزودن سوابق حضور و غیاب"
|
|
},
|
|
new
|
|
{
|
|
id = 1060402L,
|
|
Code = 1060402,
|
|
CreationDate = new DateTime(2025, 1, 4, 17, 7, 24, 472, DateTimeKind.Local).AddTicks(2821),
|
|
ParentId = 10604L,
|
|
Title = "حذف سوابق حضور و غیاب"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.SubAccountPermissionSubtitle4Agg.SubAccountPermissionSubtitle4", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("Code")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("ParentId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("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<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Title")
|
|
.HasMaxLength(60)
|
|
.HasColumnType("nvarchar(60)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("SubAccountRoles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.TaskAgg.Tasks", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("ContractingPartyName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("ntext");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasMaxLength(7)
|
|
.HasColumnType("nvarchar(7)");
|
|
|
|
b.Property<long>("SenderId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("StartTaskDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("TaskScheduleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("TicketId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("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<long>("MediaId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("TaskId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("MediaId", "TaskId");
|
|
|
|
b.HasIndex("TaskId");
|
|
|
|
b.ToTable("TasksMedias", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.TaskMessageAgg.TaskMessage", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("AssignId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Message")
|
|
.HasColumnType("ntext");
|
|
|
|
b.Property<string>("RequestedDateFa")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<string>("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<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("ReceiverAccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("SenderAccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("TaskMessageId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("TaskMessageId");
|
|
|
|
b.ToTable("TaskMessageItems", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.TaskScheduleAgg.TaskSchedule", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Count")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("LastEndTaskDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(12)
|
|
.HasColumnType("nvarchar(12)");
|
|
|
|
b.Property<string>("UnitNumber")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("UnitType")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("TaskSchedules", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.TaskSubjectAgg.TaskSubject", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Subject")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("TaskSubjects", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.TicketAccessAccountAgg.TicketAccessAccount", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("TicketAccessAccounts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.TicketAgg.Ticket", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("ContractingPartyName")
|
|
.HasMaxLength(155)
|
|
.HasColumnType("nvarchar(155)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("ntext");
|
|
|
|
b.Property<long>("SenderId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Status")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<long>("SubAccountSenderId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("TicketNumber")
|
|
.HasMaxLength(12)
|
|
.HasColumnType("nvarchar(12)");
|
|
|
|
b.Property<string>("TicketType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Title")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Tickets", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.TicketMediasAgg.TicketMedia", b =>
|
|
{
|
|
b.Property<long>("TicketId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("MediaId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("TicketId", "MediaId");
|
|
|
|
b.HasIndex("MediaId");
|
|
|
|
b.ToTable("TicketMedias", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("TaskManager.Domain.PositionAgg.Position", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("PositionName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("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<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property<long>("Id"));
|
|
|
|
b1.Property<int>("Code")
|
|
.HasColumnType("int");
|
|
|
|
b1.Property<long>("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<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property<long>("id"));
|
|
|
|
b1.Property<int>("PermissionCode")
|
|
.HasColumnType("int");
|
|
|
|
b1.Property<long>("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
|
|
}
|
|
}
|
|
}
|