From e5895d712bb6c020ef3bd9cfb635d0c0be76d860 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?O=C4=9Fuzhan=20A=C4=9F=C4=B1r?=
<90545225+oguzhanagir@users.noreply.github.com>
Date: Fri, 3 May 2024 10:12:08 +0300
Subject: [PATCH] added abp 9.2 migration
---
...0503071035_Upgraded_To_Abp_9_2.Designer.cs | 1971 +++++++++++++++++
.../20240503071035_Upgraded_To_Abp_9_2.cs | 29 +
.../AbpProjectNameDbContextModelSnapshot.cs | 6 +-
3 files changed, 2005 insertions(+), 1 deletion(-)
create mode 100644 aspnet-core/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.Designer.cs
create mode 100644 aspnet-core/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.cs
diff --git a/aspnet-core/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.Designer.cs b/aspnet-core/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.Designer.cs
new file mode 100644
index 00000000..a9409bc3
--- /dev/null
+++ b/aspnet-core/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.Designer.cs
@@ -0,0 +1,1971 @@
+//
+using System;
+using AbpCompanyName.AbpProjectName.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace AbpCompanyName.AbpProjectName.Migrations
+{
+ [DbContext(typeof(AbpProjectNameDbContext))]
+ [Migration("20240503071035_Upgraded_To_Abp_9_2")]
+ partial class Upgraded_To_Abp_9_2
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "8.0.4")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("Abp.Application.Editions.Edition", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("DeleterUserId")
+ .HasColumnType("bigint");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DisplayName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("LastModifierUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("nvarchar(32)");
+
+ b.HasKey("Id");
+
+ b.ToTable("AbpEditions");
+ });
+
+ modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Discriminator")
+ .IsRequired()
+ .HasMaxLength(21)
+ .HasColumnType("nvarchar(21)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasMaxLength(2000)
+ .HasColumnType("nvarchar(2000)");
+
+ b.HasKey("Id");
+
+ b.ToTable("AbpFeatures");
+
+ b.HasDiscriminator("Discriminator").HasValue("FeatureSetting");
+
+ b.UseTphMappingStrategy();
+ });
+
+ modelBuilder.Entity("Abp.Auditing.AuditLog", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("BrowserInfo")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("ClientIpAddress")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ClientName")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("CustomData")
+ .HasMaxLength(2000)
+ .HasColumnType("nvarchar(2000)");
+
+ b.Property("Exception")
+ .HasMaxLength(2000)
+ .HasColumnType("nvarchar(2000)");
+
+ b.Property("ExceptionMessage")
+ .HasMaxLength(1024)
+ .HasColumnType("nvarchar(1024)");
+
+ b.Property("ExecutionDuration")
+ .HasColumnType("int");
+
+ b.Property("ExecutionTime")
+ .HasColumnType("datetime2");
+
+ b.Property("ImpersonatorTenantId")
+ .HasColumnType("int");
+
+ b.Property("ImpersonatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("MethodName")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("Parameters")
+ .HasMaxLength(1024)
+ .HasColumnType("nvarchar(1024)");
+
+ b.Property("ReturnValue")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ServiceName")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Discriminator")
+ .IsRequired()
+ .HasMaxLength(21)
+ .HasColumnType("nvarchar(21)");
+
+ b.Property("IsGranted")
+ .HasColumnType("bit");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "Name");
+
+ b.ToTable("AbpPermissions");
+
+ b.HasDiscriminator("Discriminator").HasValue("PermissionSetting");
+
+ b.UseTphMappingStrategy();
+ });
+
+ modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ClaimType")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("ClaimValue")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("RoleId")
+ .HasColumnType("int");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("DeleterUserId")
+ .HasColumnType("bigint");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2");
+
+ b.Property("EmailAddress")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("LastModifierUserId")
+ .HasColumnType("bigint");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("UserId")
+ .HasColumnType("bigint");
+
+ b.Property("UserLinkId")
+ .HasColumnType("bigint");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ClaimType")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("ClaimValue")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("LoginProvider")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("ProviderKey")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("BrowserInfo")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("ClientIpAddress")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ClientName")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FailReason")
+ .HasMaxLength(1024)
+ .HasColumnType("nvarchar(1024)");
+
+ b.Property("Result")
+ .HasColumnType("tinyint");
+
+ b.Property("TenancyName")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("UserId")
+ .HasColumnType("bigint");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("OrganizationUnitId")
+ .HasColumnType("bigint");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("RoleId")
+ .HasColumnType("int");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ExpireDate")
+ .HasColumnType("datetime2");
+
+ b.Property("LoginProvider")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("Name")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("UserId")
+ .HasColumnType("bigint");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("IsAbandoned")
+ .HasColumnType("bit");
+
+ b.Property("JobArgs")
+ .IsRequired()
+ .HasMaxLength(1048576)
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("JobType")
+ .IsRequired()
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("LastTryTime")
+ .HasColumnType("datetime2");
+
+ b.Property("NextTryTime")
+ .HasColumnType("datetime2");
+
+ b.Property("Priority")
+ .HasColumnType("tinyint");
+
+ b.Property("TryCount")
+ .HasColumnType("smallint");
+
+ b.HasKey("Id");
+
+ b.HasIndex("IsAbandoned", "NextTryTime");
+
+ b.ToTable("AbpBackgroundJobs");
+ });
+
+ modelBuilder.Entity("Abp.Configuration.Setting", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("LastModifierUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("UserId")
+ .HasColumnType("bigint");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("DynamicPropertyId")
+ .HasColumnType("int");
+
+ b.Property("EntityFullName")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("DynamicEntityPropertyId")
+ .HasColumnType("int");
+
+ b.Property("EntityId")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("DynamicEntityPropertyId");
+
+ b.ToTable("AbpDynamicEntityPropertyValues");
+ });
+
+ modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("DisplayName")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("InputType")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Permission")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PropertyName")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("DynamicPropertyId")
+ .HasColumnType("int");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("DynamicPropertyId");
+
+ b.ToTable("AbpDynamicPropertyValues");
+ });
+
+ modelBuilder.Entity("Abp.EntityHistory.EntityChange", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("ChangeTime")
+ .HasColumnType("datetime2");
+
+ b.Property("ChangeType")
+ .HasColumnType("tinyint");
+
+ b.Property("EntityChangeSetId")
+ .HasColumnType("bigint");
+
+ b.Property("EntityId")
+ .HasMaxLength(48)
+ .HasColumnType("nvarchar(48)");
+
+ b.Property("EntityTypeFullName")
+ .HasMaxLength(192)
+ .HasColumnType("nvarchar(192)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("EntityChangeSetId");
+
+ b.HasIndex("EntityTypeFullName", "EntityId");
+
+ b.ToTable("AbpEntityChanges");
+ });
+
+ modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("BrowserInfo")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("ClientIpAddress")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ClientName")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("ExtensionData")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ImpersonatorTenantId")
+ .HasColumnType("int");
+
+ b.Property("ImpersonatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Reason")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("EntityChangeId")
+ .HasColumnType("bigint");
+
+ b.Property("NewValue")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("NewValueHash")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("OriginalValue")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("OriginalValueHash")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PropertyName")
+ .HasMaxLength(96)
+ .HasColumnType("nvarchar(96)");
+
+ b.Property("PropertyTypeFullName")
+ .HasMaxLength(192)
+ .HasColumnType("nvarchar(192)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("EntityChangeId");
+
+ b.ToTable("AbpEntityPropertyChanges");
+ });
+
+ modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("DeleterUserId")
+ .HasColumnType("bigint");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DisplayName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("Icon")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("IsDisabled")
+ .HasColumnType("bit");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("LastModifierUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId", "Name");
+
+ b.ToTable("AbpLanguages");
+ });
+
+ modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Key")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("LanguageName")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("LastModifierUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Source")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Data")
+ .HasMaxLength(1048576)
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DataTypeName")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("EntityId")
+ .HasMaxLength(96)
+ .HasColumnType("nvarchar(96)");
+
+ b.Property("EntityTypeAssemblyQualifiedName")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("EntityTypeName")
+ .HasMaxLength(250)
+ .HasColumnType("nvarchar(250)");
+
+ b.Property("ExcludedUserIds")
+ .HasMaxLength(131072)
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("NotificationName")
+ .IsRequired()
+ .HasMaxLength(96)
+ .HasColumnType("nvarchar(96)");
+
+ b.Property("Severity")
+ .HasColumnType("tinyint");
+
+ b.Property("TargetNotifiers")
+ .HasMaxLength(1024)
+ .HasColumnType("nvarchar(1024)");
+
+ b.Property("TenantIds")
+ .HasMaxLength(131072)
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UserIds")
+ .HasMaxLength(131072)
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.ToTable("AbpNotifications");
+ });
+
+ modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("EntityId")
+ .HasMaxLength(96)
+ .HasColumnType("nvarchar(96)");
+
+ b.Property("EntityTypeAssemblyQualifiedName")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("EntityTypeName")
+ .HasMaxLength(250)
+ .HasColumnType("nvarchar(250)");
+
+ b.Property("NotificationName")
+ .HasMaxLength(96)
+ .HasColumnType("nvarchar(96)");
+
+ b.Property("TargetNotifiers")
+ .HasMaxLength(1024)
+ .HasColumnType("nvarchar(1024)");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.Property("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("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreatorUserId")
+ .HasColumnType("bigint");
+
+ b.Property("Data")
+ .HasMaxLength(1048576)
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DataTypeName")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("EntityId")
+ .HasMaxLength(96)
+ .HasColumnType("nvarchar(96)");
+
+ b.Property("EntityTypeAssemblyQualifiedName")
+ .HasMaxLength(512)
+ .HasColumnType("nvarchar(512)");
+
+ b.Property("EntityTypeName")
+ .HasMaxLength(250)
+ .HasColumnType("nvarchar(250)");
+
+ b.Property("NotificationName")
+ .IsRequired()
+ .HasMaxLength(96)
+ .HasColumnType("nvarchar(96)");
+
+ b.Property("Severity")
+ .HasColumnType("tinyint");
+
+ b.Property("TenantId")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TenantId");
+
+ b.ToTable("AbpTenantNotifications");
+ });
+
+ modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property