|
|
|
@ -76,6 +76,27 @@ namespace MyCompanyName.MyProjectName.DemoApp.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 |
|
|
|
@ -133,6 +154,25 @@ namespace MyCompanyName.MyProjectName.DemoApp.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 |
|
|
|
@ -241,6 +281,12 @@ namespace MyCompanyName.MyProjectName.DemoApp.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", |
|
|
|
@ -291,6 +337,9 @@ namespace MyCompanyName.MyProjectName.DemoApp.Migrations |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSettings"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpTenantConnectionStrings"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpUserClaims"); |
|
|
|
|
|
|
|
@ -303,6 +352,9 @@ namespace MyCompanyName.MyProjectName.DemoApp.Migrations |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpUserTokens"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpTenants"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpRoles"); |
|
|
|
|