|
|
|
@ -7,6 +7,26 @@ namespace MyCompanyName.MyProjectName.DemoApp.Migrations |
|
|
|
{ |
|
|
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
|
|
{ |
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpClaimTypes", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
Name = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
Required = table.Column<bool>(nullable: false), |
|
|
|
IsStatic = table.Column<bool>(nullable: false), |
|
|
|
Regex = table.Column<string>(maxLength: 512, nullable: true), |
|
|
|
RegexDescription = table.Column<string>(maxLength: 128, nullable: true), |
|
|
|
Description = table.Column<string>(maxLength: 256, nullable: true), |
|
|
|
ValueType = table.Column<int>(nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpPermissionGrants", |
|
|
|
columns: table => new |
|
|
|
@ -27,10 +47,14 @@ namespace MyCompanyName.MyProjectName.DemoApp.Migrations |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
TenantId = table.Column<Guid>(nullable: true), |
|
|
|
Name = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
NormalizedName = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(nullable: true) |
|
|
|
IsDefault = table.Column<bool>(nullable: false), |
|
|
|
IsStatic = table.Column<bool>(nullable: false), |
|
|
|
IsPublic = table.Column<bool>(nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -57,22 +81,31 @@ namespace MyCompanyName.MyProjectName.DemoApp.Migrations |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
CreationTime = table.Column<DateTime>(nullable: false), |
|
|
|
CreatorId = table.Column<Guid>(nullable: true), |
|
|
|
LastModificationTime = table.Column<DateTime>(nullable: true), |
|
|
|
LastModifierId = table.Column<Guid>(nullable: true), |
|
|
|
IsDeleted = table.Column<bool>(nullable: false), |
|
|
|
DeleterId = table.Column<Guid>(nullable: true), |
|
|
|
DeletionTime = table.Column<DateTime>(nullable: true), |
|
|
|
TenantId = table.Column<Guid>(nullable: true), |
|
|
|
UserName = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
NormalizedUserName = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
Name = table.Column<string>(maxLength: 64, nullable: true), |
|
|
|
Surname = table.Column<string>(maxLength: 64, nullable: true), |
|
|
|
Email = table.Column<string>(maxLength: 256, nullable: true), |
|
|
|
NormalizedEmail = table.Column<string>(maxLength: 256, nullable: true), |
|
|
|
EmailConfirmed = table.Column<bool>(nullable: false, defaultValue: false), |
|
|
|
PasswordHash = table.Column<string>(maxLength: 256, nullable: true), |
|
|
|
SecurityStamp = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(maxLength: 256, nullable: false), |
|
|
|
PhoneNumber = table.Column<string>(maxLength: 16, nullable: true), |
|
|
|
PhoneNumberConfirmed = table.Column<bool>(nullable: false, defaultValue: false), |
|
|
|
TwoFactorEnabled = table.Column<bool>(nullable: false, defaultValue: false), |
|
|
|
LockoutEnd = table.Column<DateTimeOffset>(nullable: true), |
|
|
|
LockoutEnabled = table.Column<bool>(nullable: false, defaultValue: false), |
|
|
|
AccessFailedCount = table.Column<int>(nullable: false, defaultValue: 0), |
|
|
|
ExtraProperties = table.Column<string>(nullable: true) |
|
|
|
AccessFailedCount = table.Column<int>(nullable: false, defaultValue: 0) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -173,8 +206,8 @@ namespace MyCompanyName.MyProjectName.DemoApp.Migrations |
|
|
|
{ |
|
|
|
TenantId = table.Column<Guid>(nullable: true), |
|
|
|
UserId = table.Column<Guid>(nullable: false), |
|
|
|
LoginProvider = table.Column<string>(maxLength: 128, nullable: false), |
|
|
|
Name = table.Column<string>(nullable: false), |
|
|
|
LoginProvider = table.Column<string>(maxLength: 64, nullable: false), |
|
|
|
Name = table.Column<string>(maxLength: 128, nullable: false), |
|
|
|
Value = table.Column<string>(nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
@ -246,6 +279,9 @@ namespace MyCompanyName.MyProjectName.DemoApp.Migrations |
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
|
|
{ |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpClaimTypes"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpPermissionGrants"); |
|
|
|
|