diff --git a/templates/mvc/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20190515120718_Initial.Designer.cs b/templates/mvc/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20190515120718_Initial.Designer.cs
deleted file mode 100644
index eb4daeac8f..0000000000
--- a/templates/mvc/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20190515120718_Initial.Designer.cs
+++ /dev/null
@@ -1,786 +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;
-
-namespace MyCompanyName.MyProjectName.Migrations
-{
- [DbContext(typeof(MyProjectNameMigrationsDbContext))]
- [Migration("20190515120718_Initial")]
- partial class Initial
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
- .HasAnnotation("Relational:MaxIdentifierLength", 128)
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ApplicationName")
- .HasColumnName("ApplicationName")
- .HasMaxLength(96);
-
- b.Property("BrowserInfo")
- .HasColumnName("BrowserInfo")
- .HasMaxLength(512);
-
- b.Property("ClientId")
- .HasColumnName("ClientId")
- .HasMaxLength(64);
-
- b.Property("ClientIpAddress")
- .HasColumnName("ClientIpAddress")
- .HasMaxLength(64);
-
- b.Property("ClientName")
- .HasColumnName("ClientName")
- .HasMaxLength(128);
-
- b.Property("Comments")
- .HasColumnName("Comments")
- .HasMaxLength(256);
-
- b.Property("ConcurrencyStamp");
-
- b.Property("CorrelationId")
- .HasColumnName("CorrelationId")
- .HasMaxLength(64);
-
- b.Property("Exceptions")
- .HasColumnName("Exceptions")
- .HasMaxLength(4000);
-
- b.Property("ExecutionDuration")
- .HasColumnName("ExecutionDuration");
-
- b.Property("ExecutionTime");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties");
-
- b.Property("HttpMethod")
- .HasColumnName("HttpMethod")
- .HasMaxLength(16);
-
- b.Property("HttpStatusCode")
- .HasColumnName("HttpStatusCode");
-
- b.Property("ImpersonatorTenantId")
- .HasColumnName("ImpersonatorTenantId");
-
- b.Property("ImpersonatorUserId")
- .HasColumnName("ImpersonatorUserId");
-
- b.Property("TenantId")
- .HasColumnName("TenantId");
-
- b.Property("TenantName");
-
- b.Property("Url")
- .HasColumnName("Url")
- .HasMaxLength(256);
-
- b.Property("UserId")
- .HasColumnName("UserId");
-
- b.Property("UserName")
- .HasColumnName("UserName")
- .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();
-
- b.Property("AuditLogId")
- .HasColumnName("AuditLogId");
-
- b.Property("ExecutionDuration")
- .HasColumnName("ExecutionDuration");
-
- b.Property("ExecutionTime")
- .HasColumnName("ExecutionTime");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties");
-
- b.Property("MethodName")
- .HasColumnName("MethodName")
- .HasMaxLength(128);
-
- b.Property("Parameters")
- .HasColumnName("Parameters")
- .HasMaxLength(2000);
-
- b.Property("ServiceName")
- .HasColumnName("ServiceName")
- .HasMaxLength(256);
-
- b.Property("TenantId");
-
- 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();
-
- b.Property("AuditLogId")
- .HasColumnName("AuditLogId");
-
- b.Property("ChangeTime")
- .HasColumnName("ChangeTime");
-
- b.Property("ChangeType")
- .HasColumnName("ChangeType");
-
- b.Property("EntityId")
- .IsRequired()
- .HasColumnName("EntityId")
- .HasMaxLength(128);
-
- b.Property("EntityTenantId");
-
- b.Property("EntityTypeFullName")
- .IsRequired()
- .HasColumnName("EntityTypeFullName")
- .HasMaxLength(128);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties");
-
- b.Property("TenantId")
- .HasColumnName("TenantId");
-
- 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();
-
- b.Property("EntityChangeId");
-
- b.Property("NewValue")
- .HasColumnName("NewValue")
- .HasMaxLength(512);
-
- b.Property("OriginalValue")
- .HasColumnName("OriginalValue")
- .HasMaxLength(512);
-
- b.Property("PropertyName")
- .IsRequired()
- .HasColumnName("PropertyName")
- .HasMaxLength(128);
-
- b.Property("PropertyTypeFullName")
- .IsRequired()
- .HasColumnName("PropertyTypeFullName")
- .HasMaxLength(64);
-
- b.Property("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("EntityChangeId");
-
- b.ToTable("AbpEntityPropertyChanges");
- });
-
- modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsAbandoned")
- .ValueGeneratedOnAdd()
- .HasDefaultValue(false);
-
- b.Property("JobArgs")
- .IsRequired()
- .HasMaxLength(1048576);
-
- b.Property("JobName")
- .IsRequired()
- .HasMaxLength(128);
-
- b.Property("LastTryTime");
-
- b.Property("NextTryTime");
-
- b.Property("Priority")
- .ValueGeneratedOnAdd()
- .HasDefaultValue((byte)15);
-
- b.Property("TryCount")
- .ValueGeneratedOnAdd()
- .HasDefaultValue((short)0);
-
- b.HasKey("Id");
-
- b.HasIndex("IsAbandoned", "NextTryTime");
-
- b.ToTable("AbpBackgroundJobs");
- });
-
- modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(128);
-
- b.Property("ProviderKey")
- .HasMaxLength(64);
-
- b.Property("ProviderName")
- .HasMaxLength(64);
-
- b.Property("Value")
- .IsRequired()
- .HasMaxLength(128);
-
- b.HasKey("Id");
-
- b.HasIndex("Name", "ProviderName", "ProviderKey");
-
- b.ToTable("AbpFeatureValues");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasColumnName("ConcurrencyStamp")
- .HasMaxLength(256);
-
- b.Property("Description")
- .HasMaxLength(256);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsStatic");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(256);
-
- b.Property("Regex")
- .HasMaxLength(512);
-
- b.Property("RegexDescription")
- .HasMaxLength(128);
-
- b.Property("Required");
-
- b.Property("ValueType");
-
- b.HasKey("Id");
-
- b.ToTable("AbpClaimTypes");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasColumnName("ConcurrencyStamp")
- .HasMaxLength(256);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDefault")
- .HasColumnName("IsDefault");
-
- b.Property("IsPublic")
- .HasColumnName("IsPublic");
-
- b.Property("IsStatic")
- .HasColumnName("IsStatic");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(256);
-
- b.Property("NormalizedName")
- .IsRequired()
- .HasMaxLength(256);
-
- b.Property("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedName");
-
- b.ToTable("AbpRoles");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ClaimType")
- .IsRequired()
- .HasMaxLength(256);
-
- b.Property("ClaimValue")
- .HasMaxLength(1024);
-
- b.Property("RoleId");
-
- b.Property("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AbpRoleClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("AccessFailedCount")
- .ValueGeneratedOnAdd()
- .HasColumnName("AccessFailedCount")
- .HasDefaultValue(0);
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnName("DeletionTime");
-
- b.Property("Email")
- .HasColumnName("Email")
- .HasMaxLength(256);
-
- b.Property("EmailConfirmed")
- .ValueGeneratedOnAdd()
- .HasColumnName("EmailConfirmed")
- .HasDefaultValue(false);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnName("IsDeleted")
- .HasDefaultValue(false);
-
- b.Property("LastModificationTime")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnName("LastModifierId");
-
- b.Property("LockoutEnabled")
- .ValueGeneratedOnAdd()
- .HasColumnName("LockoutEnabled")
- .HasDefaultValue(false);
-
- b.Property("LockoutEnd");
-
- b.Property("Name")
- .HasColumnName("Name")
- .HasMaxLength(64);
-
- b.Property("NormalizedEmail")
- .HasColumnName("NormalizedEmail")
- .HasMaxLength(256);
-
- b.Property("NormalizedUserName")
- .IsRequired()
- .HasColumnName("NormalizedUserName")
- .HasMaxLength(256);
-
- b.Property("PasswordHash")
- .HasColumnName("PasswordHash")
- .HasMaxLength(256);
-
- b.Property("PhoneNumber")
- .HasColumnName("PhoneNumber")
- .HasMaxLength(16);
-
- b.Property("PhoneNumberConfirmed")
- .ValueGeneratedOnAdd()
- .HasColumnName("PhoneNumberConfirmed")
- .HasDefaultValue(false);
-
- b.Property("SecurityStamp")
- .IsRequired()
- .HasColumnName("SecurityStamp")
- .HasMaxLength(256);
-
- b.Property("Surname")
- .HasColumnName("Surname")
- .HasMaxLength(64);
-
- b.Property("TenantId")
- .HasColumnName("TenantId");
-
- b.Property("TwoFactorEnabled")
- .ValueGeneratedOnAdd()
- .HasColumnName("TwoFactorEnabled")
- .HasDefaultValue(false);
-
- b.Property("UserName")
- .IsRequired()
- .HasColumnName("UserName")
- .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")
- .ValueGeneratedOnAdd();
-
- b.Property("ClaimType")
- .IsRequired()
- .HasMaxLength(256);
-
- b.Property("ClaimValue")
- .HasMaxLength(1024);
-
- b.Property("TenantId");
-
- b.Property("UserId");
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("AbpUserClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
- {
- b.Property("UserId");
-
- b.Property("LoginProvider")
- .HasMaxLength(64);
-
- b.Property("ProviderDisplayName")
- .HasMaxLength(128);
-
- b.Property("ProviderKey")
- .IsRequired()
- .HasMaxLength(196);
-
- b.Property("TenantId");
-
- b.HasKey("UserId", "LoginProvider");
-
- b.HasIndex("LoginProvider", "ProviderKey");
-
- b.ToTable("AbpUserLogins");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
- {
- b.Property("UserId");
-
- b.Property("RoleId");
-
- b.Property("TenantId");
-
- b.HasKey("UserId", "RoleId");
-
- b.HasIndex("RoleId", "UserId");
-
- b.ToTable("AbpUserRoles");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
- {
- b.Property("UserId");
-
- b.Property("LoginProvider")
- .HasMaxLength(64);
-
- b.Property("Name")
- .HasMaxLength(128);
-
- b.Property("TenantId");
-
- b.Property("Value");
-
- b.HasKey("UserId", "LoginProvider", "Name");
-
- b.ToTable("AbpUserTokens");
- });
-
- modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(128);
-
- b.Property("ProviderKey")
- .IsRequired()
- .HasMaxLength(64);
-
- b.Property("ProviderName")
- .IsRequired()
- .HasMaxLength(64);
-
- b.Property("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("Name", "ProviderName", "ProviderKey");
-
- b.ToTable("AbpPermissionGrants");
- });
-
- modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(128);
-
- b.Property("ProviderKey")
- .HasMaxLength(64);
-
- b.Property("ProviderName")
- .HasMaxLength(64);
-
- b.Property("Value")
- .IsRequired()
- .HasMaxLength(2048);
-
- b.HasKey("Id");
-
- b.HasIndex("Name", "ProviderName", "ProviderKey");
-
- b.ToTable("AbpSettings");
- });
-
- modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnName("IsDeleted")
- .HasDefaultValue(false);
-
- b.Property("LastModificationTime")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnName("LastModifierId");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(64);
-
- b.HasKey("Id");
-
- b.HasIndex("Name")
- .IsUnique();
-
- b.ToTable("AbpTenants");
- });
-
- modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
- {
- b.Property("TenantId");
-
- b.Property("Name")
- .HasMaxLength(64);
-
- b.Property("Value")
- .IsRequired()
- .HasMaxLength(1024);
-
- b.HasKey("TenantId", "Name");
-
- b.ToTable("AbpTenantConnectionStrings");
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
- {
- b.HasOne("Volo.Abp.AuditLogging.AuditLog")
- .WithMany("Actions")
- .HasForeignKey("AuditLogId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
- {
- b.HasOne("Volo.Abp.AuditLogging.AuditLog")
- .WithMany("EntityChanges")
- .HasForeignKey("AuditLogId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
- {
- b.HasOne("Volo.Abp.AuditLogging.EntityChange")
- .WithMany("PropertyChanges")
- .HasForeignKey("EntityChangeId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
- {
- b.HasOne("Volo.Abp.Identity.IdentityRole")
- .WithMany("Claims")
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
- {
- b.HasOne("Volo.Abp.Identity.IdentityUser")
- .WithMany("Claims")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
- {
- b.HasOne("Volo.Abp.Identity.IdentityUser")
- .WithMany("Logins")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
- {
- b.HasOne("Volo.Abp.Identity.IdentityRole")
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade);
-
- b.HasOne("Volo.Abp.Identity.IdentityUser")
- .WithMany("Roles")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
- {
- b.HasOne("Volo.Abp.Identity.IdentityUser")
- .WithMany("Tokens")
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
- {
- b.HasOne("Volo.Abp.TenantManagement.Tenant")
- .WithMany("ConnectionStrings")
- .HasForeignKey("TenantId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/templates/mvc/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20190521155035_Added_IdentityServer_Module.cs b/templates/mvc/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20190521155035_Added_IdentityServer_Module.cs
deleted file mode 100644
index c401171e91..0000000000
--- a/templates/mvc/src/MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations/Migrations/20190521155035_Added_IdentityServer_Module.cs
+++ /dev/null
@@ -1,470 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace MyCompanyName.MyProjectName.Migrations
-{
- public partial class Added_IdentityServer_Module : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "IdentityServerApiResources",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(nullable: true),
- CreationTime = table.Column(nullable: false),
- CreatorId = table.Column(nullable: true),
- LastModificationTime = table.Column(nullable: true),
- LastModifierId = table.Column(nullable: true),
- IsDeleted = table.Column(nullable: false, defaultValue: false),
- DeleterId = table.Column(nullable: true),
- DeletionTime = table.Column(nullable: true),
- Name = table.Column(maxLength: 200, nullable: false),
- DisplayName = table.Column(maxLength: 200, nullable: true),
- Description = table.Column(maxLength: 1000, nullable: true),
- Enabled = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_IdentityServerApiResources", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "IdentityServerClients",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(nullable: true),
- CreationTime = table.Column(nullable: false),
- CreatorId = table.Column(nullable: true),
- LastModificationTime = table.Column(nullable: true),
- LastModifierId = table.Column(nullable: true),
- IsDeleted = table.Column(nullable: false, defaultValue: false),
- DeleterId = table.Column(nullable: true),
- DeletionTime = table.Column(nullable: true),
- ClientId = table.Column(maxLength: 200, nullable: false),
- ClientName = table.Column(maxLength: 200, nullable: true),
- Description = table.Column(maxLength: 1000, nullable: true),
- ClientUri = table.Column(maxLength: 300, nullable: true),
- LogoUri = table.Column(maxLength: 300, nullable: true),
- Enabled = table.Column(nullable: false),
- ProtocolType = table.Column(maxLength: 200, nullable: false),
- RequireClientSecret = table.Column(nullable: false),
- RequireConsent = table.Column(nullable: false),
- AllowRememberConsent = table.Column(nullable: false),
- AlwaysIncludeUserClaimsInIdToken = table.Column(nullable: false),
- RequirePkce = table.Column(nullable: false),
- AllowPlainTextPkce = table.Column(nullable: false),
- AllowAccessTokensViaBrowser = table.Column(nullable: false),
- FrontChannelLogoutUri = table.Column(maxLength: 300, nullable: true),
- FrontChannelLogoutSessionRequired = table.Column(nullable: false),
- BackChannelLogoutUri = table.Column(maxLength: 300, nullable: true),
- BackChannelLogoutSessionRequired = table.Column(nullable: false),
- AllowOfflineAccess = table.Column(nullable: false),
- IdentityTokenLifetime = table.Column(nullable: false),
- AccessTokenLifetime = table.Column(nullable: false),
- AuthorizationCodeLifetime = table.Column(nullable: false),
- ConsentLifetime = table.Column(nullable: true),
- AbsoluteRefreshTokenLifetime = table.Column(nullable: false),
- SlidingRefreshTokenLifetime = table.Column(nullable: false),
- RefreshTokenUsage = table.Column(nullable: false),
- UpdateAccessTokenClaimsOnRefresh = table.Column(nullable: false),
- RefreshTokenExpiration = table.Column(nullable: false),
- AccessTokenType = table.Column(nullable: false),
- EnableLocalLogin = table.Column(nullable: false),
- IncludeJwtId = table.Column(nullable: false),
- AlwaysSendClientClaims = table.Column(nullable: false),
- ClientClaimsPrefix = table.Column(maxLength: 200, nullable: true),
- PairWiseSubjectSalt = table.Column(maxLength: 200, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_IdentityServerClients", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "IdentityServerIdentityResources",
- columns: table => new
- {
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(nullable: true),
- CreationTime = table.Column(nullable: false),
- CreatorId = table.Column(nullable: true),
- LastModificationTime = table.Column(nullable: true),
- LastModifierId = table.Column(nullable: true),
- IsDeleted = table.Column(nullable: false, defaultValue: false),
- DeleterId = table.Column(nullable: true),
- DeletionTime = table.Column(nullable: true),
- Name = table.Column(maxLength: 200, nullable: false),
- DisplayName = table.Column(maxLength: 200, nullable: true),
- Description = table.Column(maxLength: 1000, nullable: true),
- Enabled = table.Column(nullable: false),
- Required = table.Column(nullable: false),
- Emphasize = table.Column(nullable: false),
- ShowInDiscoveryDocument = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_IdentityServerIdentityResources", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "IdentityServerPersistedGrants",
- columns: table => new
- {
- Key = table.Column(maxLength: 200, nullable: false),
- Id = table.Column(nullable: false),
- ExtraProperties = table.Column(nullable: true),
- ConcurrencyStamp = table.Column(nullable: true),
- Type = table.Column(maxLength: 50, nullable: false),
- SubjectId = table.Column(maxLength: 200, nullable: true),
- ClientId = table.Column(maxLength: 200, nullable: false),
- CreationTime = table.Column(nullable: false),
- Expiration = table.Column(nullable: true),
- Data = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_IdentityServerPersistedGrants", x => x.Key);
- });
-
- migrationBuilder.CreateTable(
- name: "IdentityServerApiClaims",
- columns: table => new
- {
- Type = table.Column(maxLength: 196, nullable: false),
- ApiResourceId = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_IdentityServerApiClaims", x => new { x.ApiResourceId, x.Type });
- table.ForeignKey(
- name: "FK_IdentityServerApiClaims_IdentityServerApiResources_ApiResourceId",
- column: x => x.ApiResourceId,
- principalTable: "IdentityServerApiResources",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "IdentityServerApiScopes",
- columns: table => new
- {
- ApiResourceId = table.Column(nullable: false),
- Name = table.Column(maxLength: 196, nullable: false),
- DisplayName = table.Column(maxLength: 128, nullable: true),
- Description = table.Column(maxLength: 256, nullable: true),
- Required = table.Column(nullable: false),
- Emphasize = table.Column(nullable: false),
- ShowInDiscoveryDocument = table.Column(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_IdentityServerApiScopes", x => new { x.ApiResourceId, x.Name });
- table.ForeignKey(
- name: "FK_IdentityServerApiScopes_IdentityServerApiResources_ApiResourceId",
- column: x => x.ApiResourceId,
- principalTable: "IdentityServerApiResources",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "IdentityServerApiSecrets",
- columns: table => new
- {
- Type = table.Column(maxLength: 32, nullable: false),
- Value = table.Column(maxLength: 196, nullable: false),
- ApiResourceId = table.Column(nullable: false),
- Description = table.Column(maxLength: 256, nullable: true),
- Expiration = table.Column(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_IdentityServerApiSecrets", x => new { x.ApiResourceId, x.Type, x.Value });
- table.ForeignKey(
- name: "FK_IdentityServerApiSecrets_IdentityServerApiResources_ApiResourceId",
- column: x => x.ApiResourceId,
- principalTable: "IdentityServerApiResources",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "IdentityServerClientClaims",
- columns: table => new
- {
- ClientId = table.Column