From 31f7ea37ef44281945a601547b232f33a7466298 Mon Sep 17 00:00:00 2001
From: maliming <6908465+maliming@users.noreply.github.com>
Date: Thu, 30 Jul 2020 18:28:28 +0800
Subject: [PATCH] Update template projects migration.
---
.../20200710064926_Initial.Designer.cs | 2025 -----------------
.../Migrations/20200710064926_Initial.cs | 1235 ----------
.../20200730102617_Initial.Designer.cs} | 232 +-
.../Migrations/20200730102617_Initial.cs} | 100 +
...ectNameMigrationsDbContextModelSnapshot.cs | 64 +-
.../20200710065039_Initial.Designer.cs | 1936 ----------------
.../Migrations/20200710065039_Initial.cs | 1183 ----------
.../20200730102718_Initial.Designer.cs} | 232 +-
.../Migrations/20200730102718_Initial.cs} | 100 +-
...verHostMigrationsDbContextModelSnapshot.cs | 64 +-
.../20200707075539_Initial.Designer.cs | 1043 ---------
....cs => 20200730102724_Initial.Designer.cs} | 2 +-
...2_Initial.cs => 20200730102724_Initial.cs} | 0
13 files changed, 520 insertions(+), 7696 deletions(-)
delete mode 100644 templates/app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20200710064926_Initial.Designer.cs
delete mode 100644 templates/app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20200710064926_Initial.cs
rename templates/{module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/Migrations/20200707075532_Initial.Designer.cs => app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20200730102617_Initial.Designer.cs} (91%)
rename templates/{module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/Migrations/20200707075532_Initial.cs => app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20200730102617_Initial.cs} (92%)
delete mode 100644 templates/module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/Migrations/20200710065039_Initial.Designer.cs
delete mode 100644 templates/module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/Migrations/20200710065039_Initial.cs
rename templates/{app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20200707075540_Initial.Designer.cs => module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/Migrations/20200730102718_Initial.Designer.cs} (95%)
rename templates/{app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20200707075540_Initial.cs => module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/Migrations/20200730102718_Initial.cs} (97%)
delete mode 100644 templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Migrations/20200707075539_Initial.Designer.cs
rename templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Migrations/{20200710065052_Initial.Designer.cs => 20200730102724_Initial.Designer.cs} (99%)
rename templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Migrations/{20200710065052_Initial.cs => 20200730102724_Initial.cs} (100%)
diff --git a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20200710064926_Initial.Designer.cs b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20200710064926_Initial.Designer.cs
deleted file mode 100644
index e2ca97db45..0000000000
--- a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20200710064926_Initial.Designer.cs
+++ /dev/null
@@ -1,2025 +0,0 @@
-//
-using System;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using MyCompanyName.MyProjectName.EntityFrameworkCore;
-using Volo.Abp.EntityFrameworkCore;
-
-namespace MyCompanyName.MyProjectName.Migrations
-{
- [DbContext(typeof(MyProjectNameMigrationsDbContext))]
- [Migration("20200710064926_Initial")]
- partial class Initial
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "3.1.5")
- .HasAnnotation("Relational:MaxIdentifierLength", 128)
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ApplicationName")
- .HasColumnName("ApplicationName")
- .HasColumnType("nvarchar(96)")
- .HasMaxLength(96);
-
- b.Property("BrowserInfo")
- .HasColumnName("BrowserInfo")
- .HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
-
- b.Property("ClientId")
- .HasColumnName("ClientId")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("ClientIpAddress")
- .HasColumnName("ClientIpAddress")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("ClientName")
- .HasColumnName("ClientName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("Comments")
- .HasColumnName("Comments")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
-
- b.Property("CorrelationId")
- .HasColumnName("CorrelationId")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("Exceptions")
- .HasColumnName("Exceptions")
- .HasColumnType("nvarchar(4000)")
- .HasMaxLength(4000);
-
- b.Property("ExecutionDuration")
- .HasColumnName("ExecutionDuration")
- .HasColumnType("int");
-
- b.Property("ExecutionTime")
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("HttpMethod")
- .HasColumnName("HttpMethod")
- .HasColumnType("nvarchar(16)")
- .HasMaxLength(16);
-
- b.Property("HttpStatusCode")
- .HasColumnName("HttpStatusCode")
- .HasColumnType("int");
-
- b.Property("ImpersonatorTenantId")
- .HasColumnName("ImpersonatorTenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ImpersonatorUserId")
- .HasColumnName("ImpersonatorUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Url")
- .HasColumnName("Url")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("UserId")
- .HasColumnName("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("UserName")
- .HasColumnName("UserName")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("TenantId", "ExecutionTime");
-
- b.HasIndex("TenantId", "UserId", "ExecutionTime");
-
- b.ToTable("AbpAuditLogs");
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("AuditLogId")
- .HasColumnName("AuditLogId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ExecutionDuration")
- .HasColumnName("ExecutionDuration")
- .HasColumnType("int");
-
- b.Property("ExecutionTime")
- .HasColumnName("ExecutionTime")
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("MethodName")
- .HasColumnName("MethodName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("Parameters")
- .HasColumnName("Parameters")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("ServiceName")
- .HasColumnName("ServiceName")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("AuditLogId");
-
- b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
-
- b.ToTable("AbpAuditLogActions");
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("AuditLogId")
- .HasColumnName("AuditLogId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ChangeTime")
- .HasColumnName("ChangeTime")
- .HasColumnType("datetime2");
-
- b.Property("ChangeType")
- .HasColumnName("ChangeType")
- .HasColumnType("tinyint");
-
- b.Property("EntityId")
- .IsRequired()
- .HasColumnName("EntityId")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("EntityTenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("EntityTypeFullName")
- .IsRequired()
- .HasColumnName("EntityTypeFullName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("AuditLogId");
-
- b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
-
- b.ToTable("AbpEntityChanges");
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("EntityChangeId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("NewValue")
- .HasColumnName("NewValue")
- .HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
-
- b.Property("OriginalValue")
- .HasColumnName("OriginalValue")
- .HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
-
- b.Property("PropertyName")
- .IsRequired()
- .HasColumnName("PropertyName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("PropertyTypeFullName")
- .IsRequired()
- .HasColumnName("PropertyTypeFullName")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("EntityChangeId");
-
- b.ToTable("AbpEntityPropertyChanges");
- });
-
- modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsAbandoned")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("JobArgs")
- .IsRequired()
- .HasColumnType("nvarchar(max)")
- .HasMaxLength(1048576);
-
- b.Property("JobName")
- .IsRequired()
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("LastTryTime")
- .HasColumnType("datetime2");
-
- b.Property("NextTryTime")
- .HasColumnType("datetime2");
-
- b.Property("Priority")
- .ValueGeneratedOnAdd()
- .HasColumnType("tinyint")
- .HasDefaultValue((byte)15);
-
- b.Property("TryCount")
- .ValueGeneratedOnAdd()
- .HasColumnType("smallint")
- .HasDefaultValue((short)0);
-
- b.HasKey("Id");
-
- b.HasIndex("IsAbandoned", "NextTryTime");
-
- b.ToTable("AbpBackgroundJobs");
- });
-
- modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("ProviderKey")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("ProviderName")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("Value")
- .IsRequired()
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.HasKey("Id");
-
- b.HasIndex("Name", "ProviderName", "ProviderKey");
-
- b.ToTable("AbpFeatureValues");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
-
- b.Property("Description")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsStatic")
- .HasColumnType("bit");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("Regex")
- .HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
-
- b.Property("RegexDescription")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("Required")
- .HasColumnType("bit");
-
- b.Property("ValueType")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.ToTable("AbpClaimTypes");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsDefault")
- .HasColumnName("IsDefault")
- .HasColumnType("bit");
-
- b.Property("IsPublic")
- .HasColumnName("IsPublic")
- .HasColumnType("bit");
-
- b.Property("IsStatic")
- .HasColumnName("IsStatic")
- .HasColumnType("bit");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("NormalizedName")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedName");
-
- b.ToTable("AbpRoles");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ClaimType")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("ClaimValue")
- .HasColumnType("nvarchar(1024)")
- .HasMaxLength(1024);
-
- b.Property("RoleId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AbpRoleClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("Action")
- .HasColumnType("nvarchar(96)")
- .HasMaxLength(96);
-
- b.Property("ApplicationName")
- .HasColumnType("nvarchar(96)")
- .HasMaxLength(96);
-
- b.Property("BrowserInfo")
- .HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
-
- b.Property("ClientId")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("ClientIpAddress")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
-
- b.Property("CorrelationId")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Identity")
- .HasColumnType("nvarchar(96)")
- .HasMaxLength(96);
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantName")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("UserName")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("TenantId", "Action");
-
- b.HasIndex("TenantId", "ApplicationName");
-
- b.HasIndex("TenantId", "Identity");
-
- b.HasIndex("TenantId", "UserId");
-
- b.ToTable("AbpSecurityLogs");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("AccessFailedCount")
- .ValueGeneratedOnAdd()
- .HasColumnName("AccessFailedCount")
- .HasColumnType("int")
- .HasDefaultValue(0);
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeleterId")
- .HasColumnName("DeleterId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeletionTime")
- .HasColumnName("DeletionTime")
- .HasColumnType("datetime2");
-
- b.Property("Email")
- .IsRequired()
- .HasColumnName("Email")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("EmailConfirmed")
- .ValueGeneratedOnAdd()
- .HasColumnName("EmailConfirmed")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnName("IsDeleted")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("LastModificationTime")
- .HasColumnName("LastModificationTime")
- .HasColumnType("datetime2");
-
- b.Property("LastModifierId")
- .HasColumnName("LastModifierId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("LockoutEnabled")
- .ValueGeneratedOnAdd()
- .HasColumnName("LockoutEnabled")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("LockoutEnd")
- .HasColumnType("datetimeoffset");
-
- b.Property("Name")
- .HasColumnName("Name")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("NormalizedEmail")
- .IsRequired()
- .HasColumnName("NormalizedEmail")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("NormalizedUserName")
- .IsRequired()
- .HasColumnName("NormalizedUserName")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("PasswordHash")
- .HasColumnName("PasswordHash")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("PhoneNumber")
- .HasColumnName("PhoneNumber")
- .HasColumnType("nvarchar(16)")
- .HasMaxLength(16);
-
- b.Property("PhoneNumberConfirmed")
- .ValueGeneratedOnAdd()
- .HasColumnName("PhoneNumberConfirmed")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("SecurityStamp")
- .IsRequired()
- .HasColumnName("SecurityStamp")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("Surname")
- .HasColumnName("Surname")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TwoFactorEnabled")
- .ValueGeneratedOnAdd()
- .HasColumnName("TwoFactorEnabled")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("UserName")
- .IsRequired()
- .HasColumnName("UserName")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("Email");
-
- b.HasIndex("NormalizedEmail");
-
- b.HasIndex("NormalizedUserName");
-
- b.HasIndex("UserName");
-
- b.ToTable("AbpUsers");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ClaimType")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("ClaimValue")
- .HasColumnType("nvarchar(1024)")
- .HasMaxLength(1024);
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("AbpUserClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
- {
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("LoginProvider")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("ProviderDisplayName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("ProviderKey")
- .IsRequired()
- .HasColumnType("nvarchar(196)")
- .HasMaxLength(196);
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("UserId", "LoginProvider");
-
- b.HasIndex("LoginProvider", "ProviderKey");
-
- b.ToTable("AbpUserLogins");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
- {
- b.Property("OrganizationUnitId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("OrganizationUnitId", "UserId");
-
- b.HasIndex("UserId", "OrganizationUnitId");
-
- b.ToTable("AbpUserOrganizationUnits");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
- {
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("RoleId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("UserId", "RoleId");
-
- b.HasIndex("RoleId", "UserId");
-
- b.ToTable("AbpUserRoles");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
- {
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("LoginProvider")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("Name")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Value")
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("UserId", "LoginProvider", "Name");
-
- b.ToTable("AbpUserTokens");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("Code")
- .IsRequired()
- .HasColumnName("Code")
- .HasColumnType("nvarchar(95)")
- .HasMaxLength(95);
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeleterId")
- .HasColumnName("DeleterId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeletionTime")
- .HasColumnName("DeletionTime")
- .HasColumnType("datetime2");
-
- b.Property("DisplayName")
- .IsRequired()
- .HasColumnName("DisplayName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnName("IsDeleted")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("LastModificationTime")
- .HasColumnName("LastModificationTime")
- .HasColumnType("datetime2");
-
- b.Property("LastModifierId")
- .HasColumnName("LastModifierId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ParentId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("Code");
-
- b.HasIndex("ParentId");
-
- b.ToTable("AbpOrganizationUnits");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
- {
- b.Property("OrganizationUnitId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("RoleId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("OrganizationUnitId", "RoleId");
-
- b.HasIndex("RoleId", "OrganizationUnitId");
-
- b.ToTable("AbpOrganizationUnitRoles");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeleterId")
- .HasColumnName("DeleterId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeletionTime")
- .HasColumnName("DeletionTime")
- .HasColumnType("datetime2");
-
- b.Property("Description")
- .HasColumnType("nvarchar(1000)")
- .HasMaxLength(1000);
-
- b.Property("DisplayName")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Enabled")
- .HasColumnType("bit");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnName("IsDeleted")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("LastModificationTime")
- .HasColumnName("LastModificationTime")
- .HasColumnType("datetime2");
-
- b.Property("LastModifierId")
- .HasColumnName("LastModifierId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Properties")
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("IdentityServerApiResources");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
- {
- b.Property("ApiResourceId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Type")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.HasKey("ApiResourceId", "Type");
-
- b.ToTable("IdentityServerApiClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScope", b =>
- {
- b.Property("ApiResourceId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Name")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Description")
- .HasColumnType("nvarchar(1000)")
- .HasMaxLength(1000);
-
- b.Property("DisplayName")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Emphasize")
- .HasColumnType("bit");
-
- b.Property("Required")
- .HasColumnType("bit");
-
- b.Property("ShowInDiscoveryDocument")
- .HasColumnType("bit");
-
- b.HasKey("ApiResourceId", "Name");
-
- b.ToTable("IdentityServerApiScopes");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScopeClaim", b =>
- {
- b.Property("ApiResourceId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Name")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Type")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.HasKey("ApiResourceId", "Name", "Type");
-
- b.ToTable("IdentityServerApiScopeClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiSecret", b =>
- {
- b.Property("ApiResourceId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Type")
- .HasColumnType("nvarchar(250)")
- .HasMaxLength(250);
-
- b.Property("Value")
- .HasColumnType("nvarchar(4000)")
- .HasMaxLength(4000);
-
- b.Property("Description")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("Expiration")
- .HasColumnType("datetime2");
-
- b.HasKey("ApiResourceId", "Type", "Value");
-
- b.ToTable("IdentityServerApiSecrets");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("AbsoluteRefreshTokenLifetime")
- .HasColumnType("int");
-
- b.Property("AccessTokenLifetime")
- .HasColumnType("int");
-
- b.Property("AccessTokenType")
- .HasColumnType("int");
-
- b.Property("AllowAccessTokensViaBrowser")
- .HasColumnType("bit");
-
- b.Property("AllowOfflineAccess")
- .HasColumnType("bit");
-
- b.Property("AllowPlainTextPkce")
- .HasColumnType("bit");
-
- b.Property("AllowRememberConsent")
- .HasColumnType("bit");
-
- b.Property("AlwaysIncludeUserClaimsInIdToken")
- .HasColumnType("bit");
-
- b.Property("AlwaysSendClientClaims")
- .HasColumnType("bit");
-
- b.Property("AuthorizationCodeLifetime")
- .HasColumnType("int");
-
- b.Property("BackChannelLogoutSessionRequired")
- .HasColumnType("bit");
-
- b.Property("BackChannelLogoutUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("ClientClaimsPrefix")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ClientId")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ClientName")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ClientUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(40)")
- .HasMaxLength(40);
-
- b.Property("ConsentLifetime")
- .HasColumnType("int");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeleterId")
- .HasColumnName("DeleterId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeletionTime")
- .HasColumnName("DeletionTime")
- .HasColumnType("datetime2");
-
- b.Property("Description")
- .HasColumnType("nvarchar(1000)")
- .HasMaxLength(1000);
-
- b.Property("DeviceCodeLifetime")
- .HasColumnType("int");
-
- b.Property("EnableLocalLogin")
- .HasColumnType("bit");
-
- b.Property("Enabled")
- .HasColumnType("bit");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("FrontChannelLogoutSessionRequired")
- .HasColumnType("bit");
-
- b.Property("FrontChannelLogoutUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("IdentityTokenLifetime")
- .HasColumnType("int");
-
- b.Property("IncludeJwtId")
- .HasColumnType("bit");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnName("IsDeleted")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("LastModificationTime")
- .HasColumnName("LastModificationTime")
- .HasColumnType("datetime2");
-
- b.Property("LastModifierId")
- .HasColumnName("LastModifierId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("LogoUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("PairWiseSubjectSalt")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ProtocolType")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("RefreshTokenExpiration")
- .HasColumnType("int");
-
- b.Property("RefreshTokenUsage")
- .HasColumnType("int");
-
- b.Property("RequireClientSecret")
- .HasColumnType("bit");
-
- b.Property("RequireConsent")
- .HasColumnType("bit");
-
- b.Property("RequirePkce")
- .HasColumnType("bit");
-
- b.Property("SlidingRefreshTokenLifetime")
- .HasColumnType("int");
-
- b.Property("UpdateAccessTokenClaimsOnRefresh")
- .HasColumnType("bit");
-
- b.Property("UserCodeType")
- .HasColumnType("nvarchar(100)")
- .HasMaxLength(100);
-
- b.Property("UserSsoLifetime")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.HasIndex("ClientId");
-
- b.ToTable("IdentityServerClients");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Type")
- .HasColumnType("nvarchar(250)")
- .HasMaxLength(250);
-
- b.Property("Value")
- .HasColumnType("nvarchar(250)")
- .HasMaxLength(250);
-
- b.HasKey("ClientId", "Type", "Value");
-
- b.ToTable("IdentityServerClientClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Origin")
- .HasColumnType("nvarchar(150)")
- .HasMaxLength(150);
-
- b.HasKey("ClientId", "Origin");
-
- b.ToTable("IdentityServerClientCorsOrigins");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
- {
- b.Property