2101 lines
74 KiB
C#
2101 lines
74 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using BCS.BMC.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace BCS.BMC.Migrations
|
|
{
|
|
[DbContext(typeof(BMCDbContext))]
|
|
partial class BMCDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "6.0.4")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
|
|
|
modelBuilder.Entity("Abp.Application.Editions.Edition", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("nvarchar(32)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("AbpEditions");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Discriminator")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("AbpFeatures");
|
|
|
|
b.HasDiscriminator<string>("Discriminator").HasValue("FeatureSetting");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Auditing.AuditLog", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("BrowserInfo")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("ClientIpAddress")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ClientName")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<string>("CustomData")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.Property<string>("Exception")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.Property<string>("ExceptionMessage")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("ExecutionDuration")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("ExecutionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int?>("ImpersonatorTenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long?>("ImpersonatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("MethodName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("Parameters")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<string>("ReturnValue")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ServiceName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long?>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "ExecutionDuration");
|
|
|
|
b.HasIndex("TenantId", "ExecutionTime");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.ToTable("AbpAuditLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.PermissionSetting", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Discriminator")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsGranted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name");
|
|
|
|
b.ToTable("AbpPermissions");
|
|
|
|
b.HasDiscriminator<string>("Discriminator").HasValue("PermissionSetting");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("RoleId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.HasIndex("TenantId", "ClaimType");
|
|
|
|
b.ToTable("AbpRoleClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EmailAddress")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("UserLinkId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("EmailAddress");
|
|
|
|
b.HasIndex("UserName");
|
|
|
|
b.HasIndex("TenantId", "EmailAddress");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.HasIndex("TenantId", "UserName");
|
|
|
|
b.ToTable("AbpUserAccounts");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.HasIndex("TenantId", "ClaimType");
|
|
|
|
b.ToTable("AbpUserClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.HasIndex("ProviderKey", "TenantId")
|
|
.IsUnique()
|
|
.HasFilter("[TenantId] IS NOT NULL");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.HasIndex("TenantId", "LoginProvider", "ProviderKey");
|
|
|
|
b.ToTable("AbpUserLogins");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("BrowserInfo")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("ClientIpAddress")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ClientName")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<byte>("Result")
|
|
.HasColumnType("tinyint");
|
|
|
|
b.Property<string>("TenancyName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long?>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("UserNameOrEmailAddress")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId", "TenantId");
|
|
|
|
b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result");
|
|
|
|
b.ToTable("AbpUserLoginAttempts");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<long>("OrganizationUnitId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "OrganizationUnitId");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.ToTable("AbpUserOrganizationUnits");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserRole", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("RoleId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.HasIndex("TenantId", "RoleId");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.ToTable("AbpUserRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserToken", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime?>("ExpireDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Value")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.ToTable("AbpUserTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsAbandoned")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("JobArgs")
|
|
.IsRequired()
|
|
.HasMaxLength(1048576)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("JobType")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<DateTime?>("LastTryTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("NextTryTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<byte>("Priority")
|
|
.HasColumnType("tinyint");
|
|
|
|
b.Property<short>("TryCount")
|
|
.HasColumnType("smallint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("IsAbandoned", "NextTryTime");
|
|
|
|
b.ToTable("AbpBackgroundJobs");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Configuration.Setting", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long?>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.HasIndex("TenantId", "Name", "UserId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("AbpSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<int>("DynamicPropertyId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("EntityFullName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DynamicPropertyId");
|
|
|
|
b.HasIndex("EntityFullName", "DynamicPropertyId", "TenantId")
|
|
.IsUnique()
|
|
.HasFilter("[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL");
|
|
|
|
b.ToTable("AbpDynamicEntityProperties");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<int>("DynamicEntityPropertyId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("EntityId")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DynamicEntityPropertyId");
|
|
|
|
b.ToTable("AbpDynamicEntityPropertyValues");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("DisplayName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("InputType")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Permission")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PropertyName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PropertyName", "TenantId")
|
|
.IsUnique()
|
|
.HasFilter("[PropertyName] IS NOT NULL AND [TenantId] IS NOT NULL");
|
|
|
|
b.ToTable("AbpDynamicProperties");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<int>("DynamicPropertyId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DynamicPropertyId");
|
|
|
|
b.ToTable("AbpDynamicPropertyValues");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.EntityHistory.EntityChange", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("ChangeTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<byte>("ChangeType")
|
|
.HasColumnType("tinyint");
|
|
|
|
b.Property<long>("EntityChangeSetId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("EntityId")
|
|
.HasMaxLength(48)
|
|
.HasColumnType("nvarchar(48)");
|
|
|
|
b.Property<string>("EntityTypeFullName")
|
|
.HasMaxLength(192)
|
|
.HasColumnType("nvarchar(192)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("EntityChangeSetId");
|
|
|
|
b.HasIndex("EntityTypeFullName", "EntityId");
|
|
|
|
b.ToTable("AbpEntityChanges");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("BrowserInfo")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("ClientIpAddress")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ClientName")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ExtensionData")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int?>("ImpersonatorTenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long?>("ImpersonatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Reason")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long?>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "CreationTime");
|
|
|
|
b.HasIndex("TenantId", "Reason");
|
|
|
|
b.HasIndex("TenantId", "UserId");
|
|
|
|
b.ToTable("AbpEntityChangeSets");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<long>("EntityChangeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("NewValue")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("NewValueHash")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("OriginalValue")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("OriginalValueHash")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PropertyName")
|
|
.HasMaxLength(96)
|
|
.HasColumnType("nvarchar(96)");
|
|
|
|
b.Property<string>("PropertyTypeFullName")
|
|
.HasMaxLength(192)
|
|
.HasColumnType("nvarchar(192)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("EntityChangeId");
|
|
|
|
b.ToTable("AbpEntityPropertyChanges");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Icon")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsDisabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name");
|
|
|
|
b.ToTable("AbpLanguages");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("LanguageName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Source")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(67108864)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Source", "LanguageName", "Key");
|
|
|
|
b.ToTable("AbpLanguageTexts");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Notifications.NotificationInfo", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Data")
|
|
.HasMaxLength(1048576)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("DataTypeName")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("EntityId")
|
|
.HasMaxLength(96)
|
|
.HasColumnType("nvarchar(96)");
|
|
|
|
b.Property<string>("EntityTypeAssemblyQualifiedName")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("EntityTypeName")
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("ExcludedUserIds")
|
|
.HasMaxLength(131072)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("NotificationName")
|
|
.IsRequired()
|
|
.HasMaxLength(96)
|
|
.HasColumnType("nvarchar(96)");
|
|
|
|
b.Property<byte>("Severity")
|
|
.HasColumnType("tinyint");
|
|
|
|
b.Property<string>("TargetNotifiers")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("TenantIds")
|
|
.HasMaxLength(131072)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("UserIds")
|
|
.HasMaxLength(131072)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("AbpNotifications");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("EntityId")
|
|
.HasMaxLength(96)
|
|
.HasColumnType("nvarchar(96)");
|
|
|
|
b.Property<string>("EntityTypeAssemblyQualifiedName")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("EntityTypeName")
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("NotificationName")
|
|
.HasMaxLength(96)
|
|
.HasColumnType("nvarchar(96)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId");
|
|
|
|
b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId");
|
|
|
|
b.ToTable("AbpNotificationSubscriptions");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Data")
|
|
.HasMaxLength(1048576)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("DataTypeName")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("EntityId")
|
|
.HasMaxLength(96)
|
|
.HasColumnType("nvarchar(96)");
|
|
|
|
b.Property<string>("EntityTypeAssemblyQualifiedName")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<string>("EntityTypeName")
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("NotificationName")
|
|
.IsRequired()
|
|
.HasMaxLength(96)
|
|
.HasColumnType("nvarchar(96)");
|
|
|
|
b.Property<byte>("Severity")
|
|
.HasColumnType("tinyint");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.ToTable("AbpTenantNotifications");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TargetNotifiers")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid>("TenantNotificationId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId", "State", "CreationTime");
|
|
|
|
b.ToTable("AbpUserNotifications");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("Code")
|
|
.IsRequired()
|
|
.HasMaxLength(95)
|
|
.HasColumnType("nvarchar(95)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("ParentId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ParentId");
|
|
|
|
b.HasIndex("TenantId", "Code");
|
|
|
|
b.ToTable("AbpOrganizationUnits");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<long>("OrganizationUnitId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("RoleId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "OrganizationUnitId");
|
|
|
|
b.HasIndex("TenantId", "RoleId");
|
|
|
|
b.ToTable("AbpOrganizationUnitRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Data")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("WebhookName")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("AbpWebhookEvents");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Response")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int?>("ResponseStatusCode")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid>("WebhookEventId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("WebhookSubscriptionId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("WebhookEventId");
|
|
|
|
b.ToTable("AbpWebhookSendAttempts");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Headers")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Secret")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("WebhookUri")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Webhooks")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("AbpWebhookSubscriptions");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.Authorization.Roles.Role", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(5000)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("IsDefault")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsStatic")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("nvarchar(32)");
|
|
|
|
b.Property<string>("NormalizedName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("nvarchar(32)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreatorUserId");
|
|
|
|
b.HasIndex("DeleterUserId");
|
|
|
|
b.HasIndex("LastModifierUserId");
|
|
|
|
b.HasIndex("TenantId", "NormalizedName");
|
|
|
|
b.ToTable("AbpRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.Authorization.Users.User", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("AuthenticationSource")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EmailAddress")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("EmailConfirmationCode")
|
|
.HasMaxLength(328)
|
|
.HasColumnType("nvarchar(328)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsEmailConfirmed")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsLockoutEnabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsPhoneNumberConfirmed")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsTwoFactorEnabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("LockoutEndDateUtc")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("NormalizedEmailAddress")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<string>("PasswordResetCode")
|
|
.HasMaxLength(328)
|
|
.HasColumnType("nvarchar(328)");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("nvarchar(32)");
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<string>("Surname")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int?>("TenantId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreatorUserId");
|
|
|
|
b.HasIndex("DeleterUserId");
|
|
|
|
b.HasIndex("LastModifierUserId");
|
|
|
|
b.HasIndex("TenantId", "NormalizedEmailAddress");
|
|
|
|
b.HasIndex("TenantId", "NormalizedUserName");
|
|
|
|
b.ToTable("AbpUsers");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.BMC.CompanyMasters.CompanyMaster", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("CompanyName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DomainName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("SubDomainName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Url")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("CompanyMaster");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.BMC.FirebaseCloudMessages.FirebaseCloudMessageDetails", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FcmToken")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Message")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("MessageSentDateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("SenderImageurl")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("SenderName")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("nvarchar(32)");
|
|
|
|
b.Property<bool>("Status")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("FirebaseCloudMessageDetails");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.BMC.FirebaseCloudMessages.FirebaseToken", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FcmToken")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HostName")
|
|
.HasMaxLength(512)
|
|
.HasColumnType("nvarchar(512)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int?>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("FirebaseToken");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.MultiTenancy.Tenant", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("ConnectionString")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("CreatorUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("DeleterUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int?>("EditionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("LastModifierUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<string>("TenancyName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreatorUserId");
|
|
|
|
b.HasIndex("DeleterUserId");
|
|
|
|
b.HasIndex("EditionId");
|
|
|
|
b.HasIndex("LastModifierUserId");
|
|
|
|
b.HasIndex("TenancyName");
|
|
|
|
b.ToTable("AbpTenants");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b =>
|
|
{
|
|
b.HasBaseType("Abp.Application.Features.FeatureSetting");
|
|
|
|
b.Property<int>("EditionId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasIndex("EditionId", "Name");
|
|
|
|
b.ToTable("AbpFeatures");
|
|
|
|
b.HasDiscriminator().HasValue("EditionFeatureSetting");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b =>
|
|
{
|
|
b.HasBaseType("Abp.Authorization.PermissionSetting");
|
|
|
|
b.Property<int>("RoleId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AbpPermissions");
|
|
|
|
b.HasDiscriminator().HasValue("RolePermissionSetting");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b =>
|
|
{
|
|
b.HasBaseType("Abp.Authorization.PermissionSetting");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AbpPermissions");
|
|
|
|
b.HasDiscriminator().HasValue("UserPermissionSetting");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b =>
|
|
{
|
|
b.HasBaseType("Abp.Application.Features.FeatureSetting");
|
|
|
|
b.HasIndex("TenantId", "Name");
|
|
|
|
b.ToTable("AbpFeatures");
|
|
|
|
b.HasDiscriminator().HasValue("TenantFeatureSetting");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Roles.Role", null)
|
|
.WithMany("Claims")
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", null)
|
|
.WithMany("Claims")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", null)
|
|
.WithMany("Logins")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserRole", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", null)
|
|
.WithMany("Roles")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserToken", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", null)
|
|
.WithMany("Tokens")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Configuration.Setting", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", null)
|
|
.WithMany("Settings")
|
|
.HasForeignKey("UserId");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b =>
|
|
{
|
|
b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty")
|
|
.WithMany()
|
|
.HasForeignKey("DynamicPropertyId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("DynamicProperty");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b =>
|
|
{
|
|
b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty")
|
|
.WithMany()
|
|
.HasForeignKey("DynamicEntityPropertyId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("DynamicEntityProperty");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b =>
|
|
{
|
|
b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty")
|
|
.WithMany("DynamicPropertyValues")
|
|
.HasForeignKey("DynamicPropertyId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("DynamicProperty");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.EntityHistory.EntityChange", b =>
|
|
{
|
|
b.HasOne("Abp.EntityHistory.EntityChangeSet", null)
|
|
.WithMany("EntityChanges")
|
|
.HasForeignKey("EntityChangeSetId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b =>
|
|
{
|
|
b.HasOne("Abp.EntityHistory.EntityChange", null)
|
|
.WithMany("PropertyChanges")
|
|
.HasForeignKey("EntityChangeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b =>
|
|
{
|
|
b.HasOne("Abp.Organizations.OrganizationUnit", "Parent")
|
|
.WithMany("Children")
|
|
.HasForeignKey("ParentId");
|
|
|
|
b.Navigation("Parent");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b =>
|
|
{
|
|
b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent")
|
|
.WithMany()
|
|
.HasForeignKey("WebhookEventId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("WebhookEvent");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.Authorization.Roles.Role", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", "CreatorUser")
|
|
.WithMany()
|
|
.HasForeignKey("CreatorUserId");
|
|
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", "DeleterUser")
|
|
.WithMany()
|
|
.HasForeignKey("DeleterUserId");
|
|
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", "LastModifierUser")
|
|
.WithMany()
|
|
.HasForeignKey("LastModifierUserId");
|
|
|
|
b.Navigation("CreatorUser");
|
|
|
|
b.Navigation("DeleterUser");
|
|
|
|
b.Navigation("LastModifierUser");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.Authorization.Users.User", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", "CreatorUser")
|
|
.WithMany()
|
|
.HasForeignKey("CreatorUserId");
|
|
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", "DeleterUser")
|
|
.WithMany()
|
|
.HasForeignKey("DeleterUserId");
|
|
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", "LastModifierUser")
|
|
.WithMany()
|
|
.HasForeignKey("LastModifierUserId");
|
|
|
|
b.Navigation("CreatorUser");
|
|
|
|
b.Navigation("DeleterUser");
|
|
|
|
b.Navigation("LastModifierUser");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.MultiTenancy.Tenant", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", "CreatorUser")
|
|
.WithMany()
|
|
.HasForeignKey("CreatorUserId");
|
|
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", "DeleterUser")
|
|
.WithMany()
|
|
.HasForeignKey("DeleterUserId");
|
|
|
|
b.HasOne("Abp.Application.Editions.Edition", "Edition")
|
|
.WithMany()
|
|
.HasForeignKey("EditionId");
|
|
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", "LastModifierUser")
|
|
.WithMany()
|
|
.HasForeignKey("LastModifierUserId");
|
|
|
|
b.Navigation("CreatorUser");
|
|
|
|
b.Navigation("DeleterUser");
|
|
|
|
b.Navigation("Edition");
|
|
|
|
b.Navigation("LastModifierUser");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b =>
|
|
{
|
|
b.HasOne("Abp.Application.Editions.Edition", "Edition")
|
|
.WithMany()
|
|
.HasForeignKey("EditionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Edition");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Roles.Role", null)
|
|
.WithMany("Permissions")
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b =>
|
|
{
|
|
b.HasOne("BCS.BMC.Authorization.Users.User", null)
|
|
.WithMany("Permissions")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b =>
|
|
{
|
|
b.Navigation("DynamicPropertyValues");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.EntityHistory.EntityChange", b =>
|
|
{
|
|
b.Navigation("PropertyChanges");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b =>
|
|
{
|
|
b.Navigation("EntityChanges");
|
|
});
|
|
|
|
modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b =>
|
|
{
|
|
b.Navigation("Children");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.Authorization.Roles.Role", b =>
|
|
{
|
|
b.Navigation("Claims");
|
|
|
|
b.Navigation("Permissions");
|
|
});
|
|
|
|
modelBuilder.Entity("BCS.BMC.Authorization.Users.User", b =>
|
|
{
|
|
b.Navigation("Claims");
|
|
|
|
b.Navigation("Logins");
|
|
|
|
b.Navigation("Permissions");
|
|
|
|
b.Navigation("Roles");
|
|
|
|
b.Navigation("Settings");
|
|
|
|
b.Navigation("Tokens");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|