1447 lines
53 KiB
C#
1447 lines
53 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using AccountMangement.Infrastructure.EFCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace AccountMangement.Infrastructure.EFCore.Migrations
|
|
{
|
|
[DbContext(typeof(AccountContext))]
|
|
partial class AccountContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "10.0.1")
|
|
.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<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("LeftWorkGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("RoleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("StartWorkGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
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>("ServiceName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Medias", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.PmDomains.PmRoleAgg.PmRole", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("GozareshgirRoleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("RoleName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("PmRoles", null, t =>
|
|
{
|
|
t.ExcludeFromMigrations();
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.PmDomains.PmUserAgg.PmUser", 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>("Email")
|
|
.HasMaxLength(150)
|
|
.HasColumnType("nvarchar(150)");
|
|
|
|
b.Property<string>("FullName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Mobile")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("ProfilePhotoPath")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("VerifyCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Users", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.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.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(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
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);
|
|
});
|
|
|
|
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);
|
|
});
|
|
|
|
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);
|
|
});
|
|
|
|
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<string>("IsActive")
|
|
.IsRequired()
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<DateTime>("LastEndTaskDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(12)
|
|
.HasColumnType("nvarchar(12)");
|
|
|
|
b.Property<string>("UnitNumber")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("UnitType")
|
|
.IsRequired()
|
|
.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<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
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("AccountManagement.Domain.AccountAgg.Account", b =>
|
|
{
|
|
b.HasOne("AccountManagement.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.PmDomains.PmRoleAgg.PmRole", b =>
|
|
{
|
|
b.OwnsMany("AccountManagement.Domain.PmDomains.PmPermissionAgg.PmPermission", "PmPermission", 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("PmRolePermissions", null, t =>
|
|
{
|
|
t.ExcludeFromMigrations();
|
|
});
|
|
|
|
b1.WithOwner("Role")
|
|
.HasForeignKey("Roleid");
|
|
|
|
b1.Navigation("Role");
|
|
});
|
|
|
|
b.Navigation("PmPermission");
|
|
});
|
|
|
|
modelBuilder.Entity("AccountManagement.Domain.PmDomains.PmUserAgg.PmUser", b =>
|
|
{
|
|
b.OwnsMany("AccountManagement.Domain.PmDomains.PmRoleUserAgg.PmRoleUser", "RoleUser", b1 =>
|
|
{
|
|
b1.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property<long>("Id"));
|
|
|
|
b1.Property<long>("RoleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<long>("Userid")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("Userid");
|
|
|
|
b1.ToTable("RoleUsers", (string)null);
|
|
|
|
b1.WithOwner("User")
|
|
.HasForeignKey("Userid");
|
|
|
|
b1.Navigation("User");
|
|
});
|
|
|
|
b.Navigation("RoleUser");
|
|
});
|
|
|
|
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.SubAccountRoleWorkshop", "RoleWorkshops", b1 =>
|
|
{
|
|
b1.Property<long>("SubAccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property<long>("id"));
|
|
|
|
b1.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.HasKey("SubAccountId", "id");
|
|
|
|
b1.ToTable("SubAccountRoleWorkshop");
|
|
|
|
b1.WithOwner("SubAccountRole")
|
|
.HasForeignKey("SubAccountId");
|
|
|
|
b1.Navigation("SubAccountRole");
|
|
});
|
|
|
|
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");
|
|
|
|
b.Navigation("RoleWorkshops");
|
|
});
|
|
|
|
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.PositionAgg.Position", b =>
|
|
{
|
|
b.Navigation("Accounts");
|
|
});
|
|
|
|
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");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|