|
|
|
@ -18,6 +18,7 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
UserId = table.Column<Guid>(nullable: true), |
|
|
|
UserName = table.Column<string>(maxLength: 256, nullable: true), |
|
|
|
TenantId = table.Column<Guid>(nullable: true), |
|
|
|
TenantName = table.Column<string>(nullable: true), |
|
|
|
ImpersonatorUserId = table.Column<Guid>(nullable: true), |
|
|
|
ImpersonatorTenantId = table.Column<Guid>(nullable: true), |
|
|
|
ExecutionTime = table.Column<DateTime>(nullable: false), |
|
|
|
@ -128,6 +129,27 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table.PrimaryKey("PK_AbpSettings", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpTenants", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(nullable: true), |
|
|
|
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, defaultValue: false), |
|
|
|
DeleterId = table.Column<Guid>(nullable: true), |
|
|
|
DeletionTime = table.Column<DateTime>(nullable: true), |
|
|
|
Name = table.Column<string>(maxLength: 64, nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpTenants", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpUsers", |
|
|
|
columns: table => new |
|
|
|
@ -198,6 +220,7 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
TenantId = table.Column<Guid>(nullable: true), |
|
|
|
ChangeTime = table.Column<DateTime>(nullable: false), |
|
|
|
ChangeType = table.Column<byte>(nullable: false), |
|
|
|
EntityTenantId = table.Column<Guid>(nullable: true), |
|
|
|
EntityId = table.Column<string>(maxLength: 128, nullable: false), |
|
|
|
EntityTypeFullName = table.Column<string>(maxLength: 128, nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(nullable: true) |
|
|
|
@ -234,6 +257,25 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
onDelete: ReferentialAction.Cascade); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpTenantConnectionStrings", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
TenantId = table.Column<Guid>(nullable: false), |
|
|
|
Name = table.Column<string>(maxLength: 64, nullable: false), |
|
|
|
Value = table.Column<string>(maxLength: 1024, nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name }); |
|
|
|
table.ForeignKey( |
|
|
|
name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId", |
|
|
|
column: x => x.TenantId, |
|
|
|
principalTable: "AbpTenants", |
|
|
|
principalColumn: "Id", |
|
|
|
onDelete: ReferentialAction.Cascade); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpUserClaims", |
|
|
|
columns: table => new |
|
|
|
@ -405,6 +447,12 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table: "AbpSettings", |
|
|
|
columns: new[] { "Name", "ProviderName", "ProviderKey" }); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_Name", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name", |
|
|
|
unique: true); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -464,6 +512,9 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSettings"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpTenantConnectionStrings"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpUserClaims"); |
|
|
|
|
|
|
|
@ -479,6 +530,9 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpEntityChanges"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpTenants"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpRoles"); |
|
|
|
|