|
|
@ -5,8 +5,10 @@ using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
|
|
|
|
|
namespace Migrations |
|
|
namespace Migrations |
|
|
{ |
|
|
{ |
|
|
|
|
|
/// <inheritdoc />
|
|
|
public partial class Initial : Migration |
|
|
public partial class Initial : Migration |
|
|
{ |
|
|
{ |
|
|
|
|
|
/// <inheritdoc />
|
|
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
|
{ |
|
|
{ |
|
|
migrationBuilder.CreateTable( |
|
|
migrationBuilder.CreateTable( |
|
|
@ -53,6 +55,7 @@ namespace Migrations |
|
|
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
Code = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: false), |
|
|
Code = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: false), |
|
|
DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false), |
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
@ -133,6 +136,7 @@ namespace Migrations |
|
|
IsDefault = table.Column<bool>(type: "bit", nullable: false), |
|
|
IsDefault = table.Column<bool>(type: "bit", nullable: false), |
|
|
IsStatic = table.Column<bool>(type: "bit", nullable: false), |
|
|
IsStatic = table.Column<bool>(type: "bit", nullable: false), |
|
|
IsPublic = table.Column<bool>(type: "bit", nullable: false), |
|
|
IsPublic = table.Column<bool>(type: "bit", nullable: false), |
|
|
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false), |
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|
|
}, |
|
|
}, |
|
|
@ -181,6 +185,22 @@ namespace Migrations |
|
|
table.PrimaryKey("PK_AbpSettings", x => x.Id); |
|
|
table.PrimaryKey("PK_AbpSettings", x => x.Id); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
|
|
name: "AbpUserDelegations", |
|
|
|
|
|
columns: table => new |
|
|
|
|
|
{ |
|
|
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
|
|
SourceUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
|
|
TargetUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
|
|
StartTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
|
|
EndTime = table.Column<DateTime>(type: "datetime2", nullable: false) |
|
|
|
|
|
}, |
|
|
|
|
|
constraints: table => |
|
|
|
|
|
{ |
|
|
|
|
|
table.PrimaryKey("PK_AbpUserDelegations", x => x.Id); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
migrationBuilder.CreateTable( |
|
|
name: "AbpUsers", |
|
|
name: "AbpUsers", |
|
|
columns: table => new |
|
|
columns: table => new |
|
|
@ -204,6 +224,9 @@ namespace Migrations |
|
|
LockoutEnd = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
|
|
LockoutEnd = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
|
|
LockoutEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
|
LockoutEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
|
AccessFailedCount = table.Column<int>(type: "int", nullable: false, defaultValue: 0), |
|
|
AccessFailedCount = table.Column<int>(type: "int", nullable: false, defaultValue: 0), |
|
|
|
|
|
ShouldChangePasswordOnNextLogin = table.Column<bool>(type: "bit", nullable: false), |
|
|
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false), |
|
|
|
|
|
LastPasswordChangeTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
@ -578,6 +601,7 @@ namespace Migrations |
|
|
column: "UserName"); |
|
|
column: "UserName"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
|
{ |
|
|
{ |
|
|
migrationBuilder.DropTable( |
|
|
migrationBuilder.DropTable( |
|
|
@ -610,6 +634,9 @@ namespace Migrations |
|
|
migrationBuilder.DropTable( |
|
|
migrationBuilder.DropTable( |
|
|
name: "AbpUserClaims"); |
|
|
name: "AbpUserClaims"); |
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
|
|
name: "AbpUserDelegations"); |
|
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
migrationBuilder.DropTable( |
|
|
name: "AbpUserLogins"); |
|
|
name: "AbpUserLogins"); |
|
|
|
|
|
|