diff --git a/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20220923075101_Initial.Designer.cs b/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20230622110108_Initial.Designer.cs
similarity index 96%
rename from modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20220923075101_Initial.Designer.cs
rename to modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20230622110108_Initial.Designer.cs
index 89c93dcc84..cdd15cda63 100644
--- a/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20220923075101_Initial.Designer.cs
+++ b/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20230622110108_Initial.Designer.cs
@@ -13,18 +13,19 @@ using VoloDocs.EntityFrameworkCore;
namespace Migrations
{
[DbContext(typeof(VoloDocsDbContext))]
- [Migration("20220923075101_Initial")]
+ [Migration("20230622110108_Initial")]
partial class Initial
{
+ ///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "6.0.5")
+ .HasAnnotation("ProductVersion", "7.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
{
@@ -112,6 +113,9 @@ namespace Migrations
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -298,6 +302,9 @@ namespace Migrations
.HasDefaultValue(false)
.HasColumnName("EmailConfirmed");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -326,6 +333,9 @@ namespace Migrations
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
+ b.Property("LastPasswordChangeTime")
+ .HasColumnType("datetimeoffset");
+
b.Property("LockoutEnabled")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
@@ -374,6 +384,9 @@ namespace Migrations
.HasColumnType("nvarchar(256)")
.HasColumnName("SecurityStamp");
+ b.Property("ShouldChangePasswordOnNextLogin")
+ .HasColumnType("bit");
+
b.Property("Surname")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
@@ -436,6 +449,33 @@ namespace Migrations
b.ToTable("AbpUserClaims", (string)null);
});
+ modelBuilder.Entity("Volo.Abp.Identity.IdentityUserDelegation", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("EndTime")
+ .HasColumnType("datetime2");
+
+ b.Property("SourceUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("StartTime")
+ .HasColumnType("datetime2");
+
+ b.Property("TargetUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.ToTable("AbpUserDelegations", (string)null);
+ });
+
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.Property("UserId")
@@ -576,6 +616,9 @@ namespace Migrations
.HasColumnType("nvarchar(128)")
.HasColumnName("DisplayName");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
diff --git a/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20220923075101_Initial.cs b/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20230622110108_Initial.cs
similarity index 95%
rename from modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20220923075101_Initial.cs
rename to modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20230622110108_Initial.cs
index 4715db32f4..606214611c 100644
--- a/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20220923075101_Initial.cs
+++ b/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/20230622110108_Initial.cs
@@ -5,8 +5,10 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace Migrations
{
+ ///
public partial class Initial : Migration
{
+ ///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
@@ -53,6 +55,7 @@ namespace Migrations
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),
+ 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),
CreationTime = table.Column(type: "datetime2", nullable: false),
@@ -133,6 +136,7 @@ namespace Migrations
IsDefault = table.Column(type: "bit", nullable: false),
IsStatic = table.Column(type: "bit", nullable: false),
IsPublic = 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)
},
@@ -181,6 +185,22 @@ namespace Migrations
table.PrimaryKey("PK_AbpSettings", x => x.Id);
});
+ migrationBuilder.CreateTable(
+ name: "AbpUserDelegations",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ TenantId = table.Column(type: "uniqueidentifier", nullable: true),
+ SourceUserId = table.Column(type: "uniqueidentifier", nullable: false),
+ TargetUserId = table.Column(type: "uniqueidentifier", nullable: false),
+ StartTime = table.Column(type: "datetime2", nullable: false),
+ EndTime = table.Column(type: "datetime2", nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_AbpUserDelegations", x => x.Id);
+ });
+
migrationBuilder.CreateTable(
name: "AbpUsers",
columns: table => new
@@ -204,6 +224,9 @@ namespace 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),
+ LastPasswordChangeTime = table.Column(type: "datetimeoffset", 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),
@@ -578,6 +601,7 @@ namespace Migrations
column: "UserName");
}
+ ///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
@@ -610,6 +634,9 @@ namespace Migrations
migrationBuilder.DropTable(
name: "AbpUserClaims");
+ migrationBuilder.DropTable(
+ name: "AbpUserDelegations");
+
migrationBuilder.DropTable(
name: "AbpUserLogins");
diff --git a/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/VoloDocsDbContextModelSnapshot.cs b/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/VoloDocsDbContextModelSnapshot.cs
index 12b920e7fa..7627101da3 100644
--- a/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/VoloDocsDbContextModelSnapshot.cs
+++ b/modules/docs/app/VoloDocs.EntityFrameworkCore/Migrations/VoloDocsDbContextModelSnapshot.cs
@@ -19,10 +19,10 @@ namespace Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "6.0.5")
+ .HasAnnotation("ProductVersion", "7.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
{
@@ -110,6 +110,9 @@ namespace Migrations
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -296,6 +299,9 @@ namespace Migrations
.HasDefaultValue(false)
.HasColumnName("EmailConfirmed");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
@@ -324,6 +330,9 @@ namespace Migrations
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
+ b.Property("LastPasswordChangeTime")
+ .HasColumnType("datetimeoffset");
+
b.Property("LockoutEnabled")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
@@ -372,6 +381,9 @@ namespace Migrations
.HasColumnType("nvarchar(256)")
.HasColumnName("SecurityStamp");
+ b.Property("ShouldChangePasswordOnNextLogin")
+ .HasColumnType("bit");
+
b.Property("Surname")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
@@ -434,6 +446,33 @@ namespace Migrations
b.ToTable("AbpUserClaims", (string)null);
});
+ modelBuilder.Entity("Volo.Abp.Identity.IdentityUserDelegation", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("EndTime")
+ .HasColumnType("datetime2");
+
+ b.Property("SourceUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("StartTime")
+ .HasColumnType("datetime2");
+
+ b.Property("TargetUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.ToTable("AbpUserDelegations", (string)null);
+ });
+
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.Property("UserId")
@@ -574,6 +613,9 @@ namespace Migrations
.HasColumnType("nvarchar(128)")
.HasColumnName("DisplayName");
+ b.Property("EntityVersion")
+ .HasColumnType("int");
+
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");