diff --git a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20221220114435_Initial.Designer.cs b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20230216095309_Initial.Designer.cs
similarity index 99%
rename from templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20221220114435_Initial.Designer.cs
rename to templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20230216095309_Initial.Designer.cs
index a1747ee5fa..61c01dafb3 100644
--- a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20221220114435_Initial.Designer.cs
+++ b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20230216095309_Initial.Designer.cs
@@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations
{
[DbContext(typeof(MyProjectNameDbContext))]
- [Migration("20221220114435_Initial")]
+ [Migration("20230216095309_Initial")]
partial class Initial
{
///
@@ -22,7 +22,7 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "7.0.0")
+ .HasAnnotation("ProductVersion", "7.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
@@ -765,6 +765,9 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations
.HasColumnType("nvarchar(256)")
.HasColumnName("SecurityStamp");
+ b.Property("ShouldChangePasswordOnNextLogin")
+ .HasColumnType("bit");
+
b.Property("Surname")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
diff --git a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20221220114435_Initial.cs b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20230216095309_Initial.cs
similarity index 99%
rename from templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20221220114435_Initial.cs
rename to templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20230216095309_Initial.cs
index 90d52b8c31..72b29f70ed 100644
--- a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20221220114435_Initial.cs
+++ b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20230216095309_Initial.cs
@@ -315,6 +315,7 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations
LockoutEnd = table.Column(type: "datetimeoffset", nullable: true),
LockoutEnabled = table.Column(type: "bit", nullable: false, defaultValue: false),
AccessFailedCount = table.Column(type: "int", nullable: false, defaultValue: 0),
+ ShouldChangePasswordOnNextLogin = table.Column(type: "bit", nullable: false),
EntityVersion = table.Column(type: "int", nullable: false),
ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
diff --git a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/MyProjectNameDbContextModelSnapshot.cs b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/MyProjectNameDbContextModelSnapshot.cs
index c881e44e52..c0b3f67565 100644
--- a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/MyProjectNameDbContextModelSnapshot.cs
+++ b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/MyProjectNameDbContextModelSnapshot.cs
@@ -19,7 +19,7 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "7.0.0")
+ .HasAnnotation("ProductVersion", "7.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
@@ -762,6 +762,9 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations
.HasColumnType("nvarchar(256)")
.HasColumnName("SecurityStamp");
+ b.Property("ShouldChangePasswordOnNextLogin")
+ .HasColumnType("bit");
+
b.Property("Surname")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
diff --git a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20221205080257_Initial.Designer.cs b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20230216094727_Initial.Designer.cs
similarity index 99%
rename from templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20221205080257_Initial.Designer.cs
rename to templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20230216094727_Initial.Designer.cs
index 81cbbcf0d0..afc35017e1 100644
--- a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20221205080257_Initial.Designer.cs
+++ b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20230216094727_Initial.Designer.cs
@@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace MyCompanyName.MyProjectName.Migrations
{
[DbContext(typeof(MyProjectNameDbContext))]
- [Migration("20221205080257_Initial")]
+ [Migration("20230216094727_Initial")]
partial class Initial
{
///
@@ -22,7 +22,7 @@ namespace MyCompanyName.MyProjectName.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "7.0.0")
+ .HasAnnotation("ProductVersion", "7.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
@@ -497,6 +497,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -683,6 +686,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasDefaultValue(false)
.HasColumnName("EmailConfirmed");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -759,6 +765,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasColumnType("nvarchar(256)")
.HasColumnName("SecurityStamp");
+ b.Property("ShouldChangePasswordOnNextLogin")
+ .HasColumnType("bit");
+
b.Property("Surname")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
@@ -961,6 +970,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasColumnType("nvarchar(128)")
.HasColumnName("DisplayName");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -1539,6 +1551,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasColumnType("datetime2")
.HasColumnName("DeletionTime");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
diff --git a/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.AuthServer/Migrations/20221220114625_Initial.cs b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20230216094727_Initial.cs
similarity index 99%
rename from templates/module/aspnet-core/host/MyCompanyName.MyProjectName.AuthServer/Migrations/20221220114625_Initial.cs
rename to templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20230216094727_Initial.cs
index 75e2c5889d..feed514678 100644
--- a/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.AuthServer/Migrations/20221220114625_Initial.cs
+++ b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20230216094727_Initial.cs
@@ -315,6 +315,7 @@ namespace MyCompanyName.MyProjectName.Migrations
LockoutEnd = table.Column(type: "datetimeoffset", nullable: true),
LockoutEnabled = table.Column(type: "bit", nullable: false, defaultValue: false),
AccessFailedCount = table.Column(type: "int", nullable: false, defaultValue: 0),
+ ShouldChangePasswordOnNextLogin = table.Column(type: "bit", nullable: false),
EntityVersion = table.Column(type: "int", nullable: false),
ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
diff --git a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/MyProjectNameDbContextModelSnapshot.cs b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/MyProjectNameDbContextModelSnapshot.cs
index d2becf58f5..81d2653b8b 100644
--- a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/MyProjectNameDbContextModelSnapshot.cs
+++ b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/MyProjectNameDbContextModelSnapshot.cs
@@ -19,7 +19,7 @@ namespace MyCompanyName.MyProjectName.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "7.0.0")
+ .HasAnnotation("ProductVersion", "7.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
@@ -494,6 +494,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -680,6 +683,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasDefaultValue(false)
.HasColumnName("EmailConfirmed");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -756,6 +762,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasColumnType("nvarchar(256)")
.HasColumnName("SecurityStamp");
+ b.Property("ShouldChangePasswordOnNextLogin")
+ .HasColumnType("bit");
+
b.Property("Surname")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
@@ -958,6 +967,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasColumnType("nvarchar(128)")
.HasColumnName("DisplayName");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -1536,6 +1548,9 @@ namespace MyCompanyName.MyProjectName.Migrations
.HasColumnType("datetime2")
.HasColumnName("DeletionTime");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
diff --git a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Migrations/20220913013918_Initial.cs b/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Migrations/20220913013918_Initial.cs
deleted file mode 100644
index d34c67552d..0000000000
--- a/templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Migrations/20220913013918_Initial.cs
+++ /dev/null
@@ -1,1027 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace MyCompanyName.MyProjectName.Host.Migrations
-{
- public partial class Initial : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "AbpAuditLogs",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true),
- UserId = table.Column(type: "uniqueidentifier", nullable: true),
- UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- TenantId = table.Column(type: "uniqueidentifier", nullable: true),
- TenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- ImpersonatorUserId = table.Column(type: "uniqueidentifier", nullable: true),
- ImpersonatorUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- ImpersonatorTenantId = table.Column(type: "uniqueidentifier", nullable: true),
- ImpersonatorTenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- ExecutionTime = table.Column(type: "datetime2", nullable: false),
- ExecutionDuration = table.Column(type: "int", nullable: false),
- ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- ClientName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
- ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true),
- HttpMethod = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true),
- Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- Exceptions = table.Column(type: "nvarchar(max)", nullable: true),
- Comments = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- HttpStatusCode = table.Column(type: "int", nullable: true),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpAuditLogs", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpClaimTypes",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- Required = table.Column(type: "bit", nullable: false),
- IsStatic = table.Column(type: "bit", nullable: false),
- Regex = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true),
- RegexDescription = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
- Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- ValueType = table.Column(type: "int", nullable: false),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpClaimTypes", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpFeatureGroups",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpFeatureGroups", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpFeatures",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- GroupName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- ParentName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
- DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- DefaultValue = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- IsVisibleToClients = table.Column(type: "bit", nullable: false),
- IsAvailableToHost = table.Column(type: "bit", nullable: false),
- AllowedProviders = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- ValueType = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpFeatures", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpFeatureValues",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- Value = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpFeatureValues", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpLinkUsers",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- SourceUserId = table.Column(type: "uniqueidentifier", nullable: false),
- SourceTenantId = table.Column(type: "uniqueidentifier", nullable: true),
- TargetUserId = table.Column(type: "uniqueidentifier", nullable: false),
- TargetTenantId = table.Column(type: "uniqueidentifier", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpLinkUsers", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpOrganizationUnits",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- TenantId = table.Column(type: "uniqueidentifier", nullable: true),
- ParentId = table.Column(type: "uniqueidentifier", nullable: true),
- Code = table.Column(type: "nvarchar(95)", maxLength: 95, nullable: false),
- DisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id);
- table.ForeignKey(
- name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId",
- column: x => x.ParentId,
- principalTable: "AbpOrganizationUnits",
- principalColumn: "Id");
- });
-
- migrationBuilder.CreateTable(
- name: "AbpPermissionGrants",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- TenantId = table.Column(type: "uniqueidentifier", nullable: true),
- Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpPermissionGroups",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpPermissionGroups", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpPermissions",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- GroupName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- ParentName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
- DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- IsEnabled = table.Column(type: "bit", nullable: false),
- MultiTenancySide = table.Column(type: "tinyint", nullable: false),
- Providers = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
- StateCheckers = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpPermissions", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpRoles",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- TenantId = table.Column(type: "uniqueidentifier", nullable: true),
- Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- NormalizedName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- IsDefault = table.Column(type: "bit", nullable: false),
- IsStatic = table.Column(type: "bit", nullable: false),
- IsPublic = table.Column(type: "bit", nullable: false),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpRoles", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpSecurityLogs",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- TenantId = table.Column(type: "uniqueidentifier", nullable: true),
- ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true),
- Identity = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true),
- Action = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true),
- UserId = table.Column(type: "uniqueidentifier", nullable: true),
- UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- TenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpSettings",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- Value = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false),
- ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpSettings", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpTenants",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpTenants", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpUsers",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- TenantId = table.Column(type: "uniqueidentifier", nullable: true),
- UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- NormalizedUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Surname = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- NormalizedEmail = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- EmailConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false),
- PasswordHash = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- SecurityStamp = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false),
- IsExternal = table.Column(type: "bit", nullable: false, defaultValue: false),
- PhoneNumber = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true),
- PhoneNumberConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false),
- IsActive = table.Column(type: "bit", nullable: false),
- TwoFactorEnabled = table.Column(type: "bit", nullable: false, defaultValue: false),
- LockoutEnd = table.Column(type: "datetimeoffset", nullable: true),
- LockoutEnabled = table.Column(type: "bit", nullable: false, defaultValue: false),
- AccessFailedCount = table.Column(type: "int", nullable: false, defaultValue: 0),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpUsers", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "OpenIddictApplications",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- ClientId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
- ClientSecret = table.Column(type: "nvarchar(max)", nullable: true),
- ConsentType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- DisplayName = table.Column(type: "nvarchar(max)", nullable: true),
- DisplayNames = table.Column(type: "nvarchar(max)", nullable: true),
- Permissions = table.Column(type: "nvarchar(max)", nullable: true),
- PostLogoutRedirectUris = table.Column(type: "nvarchar(max)", nullable: true),
- Properties = table.Column(type: "nvarchar(max)", nullable: true),
- RedirectUris = table.Column(type: "nvarchar(max)", nullable: true),
- Requirements = table.Column(type: "nvarchar(max)", nullable: true),
- Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- ClientUri = table.Column(type: "nvarchar(max)", nullable: true),
- LogoUri = table.Column(type: "nvarchar(max)", nullable: true),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_OpenIddictApplications", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "OpenIddictScopes",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Description = table.Column(type: "nvarchar(max)", nullable: true),
- Descriptions = table.Column(type: "nvarchar(max)", nullable: true),
- DisplayName = table.Column(type: "nvarchar(max)", nullable: true),
- DisplayNames = table.Column(type: "nvarchar(max)", nullable: true),
- Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
- Properties = table.Column(type: "nvarchar(max)", nullable: true),
- Resources = table.Column(type: "nvarchar(max)", nullable: true),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_OpenIddictScopes", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpAuditLogActions",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- TenantId = table.Column(type: "uniqueidentifier", nullable: true),
- AuditLogId = table.Column(type: "uniqueidentifier", nullable: false),
- ServiceName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- MethodName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
- Parameters = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
- ExecutionTime = table.Column(type: "datetime2", nullable: false),
- ExecutionDuration = table.Column(type: "int", nullable: false),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id);
- table.ForeignKey(
- name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId",
- column: x => x.AuditLogId,
- principalTable: "AbpAuditLogs",
- principalColumn: "Id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "AbpEntityChanges",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- AuditLogId = table.Column(type: "uniqueidentifier", nullable: false),
- TenantId = table.Column(type: "uniqueidentifier", nullable: true),
- ChangeTime = table.Column(type: "datetime2", nullable: false),
- ChangeType = table.Column(type: "tinyint", nullable: false),
- EntityTenantId = table.Column(type: "uniqueidentifier", nullable: true),
- EntityId = table.Column