Browse Source

Re-create EF Core migrations

pull/170/head
gdlcf88 4 years ago
parent
commit
648531a0f5
  1. 5119
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220101201151_InitialAbp501.Designer.cs
  2. 5131
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220210064700_UpgradedToAbp5_1_3.Designer.cs
  3. 57
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220210064700_UpgradedToAbp5_1_3.cs
  4. 5131
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220411111127_MadeProductDetailIdNullable.Designer.cs
  5. 70
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220411111127_MadeProductDetailIdNullable.cs
  6. 5134
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220411204916_AddedProductDetailIdToOrderLine.Designer.cs
  7. 26
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220411204916_AddedProductDetailIdToOrderLine.cs
  8. 5171
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220420080940_OrderExtraFeesRefund.Designer.cs
  9. 55
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220420080940_OrderExtraFeesRefund.cs
  10. 5363
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220516160609_AddedEntitiesInBookingPlugins.Designer.cs
  11. 126
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220516160609_AddedEntitiesInBookingPlugins.cs
  12. 5410
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220603095504_AddedStoreAssetCategory.Designer.cs
  13. 39
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220603095504_AddedStoreAssetCategory.cs
  14. 5416
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220603163430_AddedStoreIdInProductAssetAndProductAssetCategory.Designer.cs
  15. 38
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220603163430_AddedStoreIdInProductAssetAndProductAssetCategory.cs
  16. 64
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220604201021_RefactoredToGrantedStore.cs
  17. 5177
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220610120322_AddedInventoryProviderName.Designer.cs
  18. 35
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220610120322_AddedInventoryProviderName.cs
  19. 10
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220612113639_Initial.Designer.cs
  20. 183
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220612113639_Initial.cs
  21. 265
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/EShopSampleDbContextModelSnapshot.cs

5119
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220101201151_InitialAbp501.Designer.cs

File diff suppressed because it is too large

5131
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220210064700_UpgradedToAbp5_1_3.Designer.cs

File diff suppressed because it is too large

57
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220210064700_UpgradedToAbp5_1_3.cs

@ -1,57 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class UpgradedToAbp5_1_3 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "TenantName",
table: "AbpAuditLogs",
type: "nvarchar(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "ImpersonatorTenantName",
table: "AbpAuditLogs",
type: "nvarchar(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ImpersonatorUserName",
table: "AbpAuditLogs",
type: "nvarchar(256)",
maxLength: 256,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ImpersonatorTenantName",
table: "AbpAuditLogs");
migrationBuilder.DropColumn(
name: "ImpersonatorUserName",
table: "AbpAuditLogs");
migrationBuilder.AlterColumn<string>(
name: "TenantName",
table: "AbpAuditLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(64)",
oldMaxLength: 64,
oldNullable: true);
}
}
}

5131
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220411111127_MadeProductDetailIdNullable.Designer.cs

File diff suppressed because it is too large

70
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220411111127_MadeProductDetailIdNullable.cs

@ -1,70 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class MadeProductDetailIdNullable : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
name: "ProductDetailId",
table: "EasyAbpEShopProductsProductViews",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier");
migrationBuilder.AlterColumn<Guid>(
name: "ProductDetailId",
table: "EasyAbpEShopProductsProducts",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier");
migrationBuilder.AlterColumn<DateTime>(
name: "ProductDetailModificationTime",
table: "EasyAbpEShopOrdersOrderLines",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
name: "ProductDetailId",
table: "EasyAbpEShopProductsProductViews",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn<Guid>(
name: "ProductDetailId",
table: "EasyAbpEShopProductsProducts",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "ProductDetailModificationTime",
table: "EasyAbpEShopOrdersOrderLines",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
}
}
}

5134
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220411204916_AddedProductDetailIdToOrderLine.Designer.cs

File diff suppressed because it is too large

26
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220411204916_AddedProductDetailIdToOrderLine.cs

@ -1,26 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class AddedProductDetailIdToOrderLine : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "ProductDetailId",
table: "EasyAbpEShopOrdersOrderLines",
type: "uniqueidentifier",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ProductDetailId",
table: "EasyAbpEShopOrdersOrderLines");
}
}
}

5171
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220420080940_OrderExtraFeesRefund.Designer.cs

File diff suppressed because it is too large

55
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220420080940_OrderExtraFeesRefund.cs

@ -1,55 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class OrderExtraFeesRefund : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "RefundAmount",
table: "EasyAbpEShopOrdersOrderExtraFees",
type: "decimal(20,8)",
nullable: false,
defaultValue: 0m);
migrationBuilder.CreateTable(
name: "EasyAbpEShopPaymentsRefundItemOrderExtraFees",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
Key = table.Column<string>(type: "nvarchar(max)", nullable: true),
RefundAmount = table.Column<decimal>(type: "decimal(20,8)", nullable: false),
RefundItemId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPaymentsRefundItemOrderExtraFees", x => x.Id);
table.ForeignKey(
name: "FK_EasyAbpEShopPaymentsRefundItemOrderExtraFees_EasyAbpEShopPaymentsRefundItems_RefundItemId",
column: x => x.RefundItemId,
principalTable: "EasyAbpEShopPaymentsRefundItems",
principalColumn: "Id");
});
migrationBuilder.CreateIndex(
name: "IX_EasyAbpEShopPaymentsRefundItemOrderExtraFees_RefundItemId",
table: "EasyAbpEShopPaymentsRefundItemOrderExtraFees",
column: "RefundItemId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EasyAbpEShopPaymentsRefundItemOrderExtraFees");
migrationBuilder.DropColumn(
name: "RefundAmount",
table: "EasyAbpEShopOrdersOrderExtraFees");
}
}
}

5363
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220516160609_AddedEntitiesInBookingPlugins.Designer.cs

File diff suppressed because it is too large

126
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220516160609_AddedEntitiesInBookingPlugins.cs

@ -1,126 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class AddedEntitiesInBookingPlugins : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingProductAssetCategories",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ProductId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductSkuId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AssetCategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodSchemeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
FromTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ToTime = table.Column<DateTime>(type: "datetime2", nullable: true),
Price = table.Column<decimal>(type: "decimal(20,8)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingProductAssetCategories", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingProductAssets",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ProductId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductSkuId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodSchemeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
FromTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ToTime = table.Column<DateTime>(type: "datetime2", nullable: true),
Price = table.Column<decimal>(type: "decimal(20,8)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingProductAssets", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingProductAssetCategoryPeriods",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Price = table.Column<decimal>(type: "decimal(20,8)", nullable: false),
ProductAssetCategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingProductAssetCategoryPeriods", x => x.Id);
table.ForeignKey(
name: "FK_EasyAbpEShopPluginsBookingProductAssetCategoryPeriods_EasyAbpEShopPluginsBookingProductAssetCategories_ProductAssetCategoryId",
column: x => x.ProductAssetCategoryId,
principalTable: "EasyAbpEShopPluginsBookingProductAssetCategories",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingProductAssetPeriods",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Price = table.Column<decimal>(type: "decimal(20,8)", nullable: false),
ProductAssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingProductAssetPeriods", x => x.Id);
table.ForeignKey(
name: "FK_EasyAbpEShopPluginsBookingProductAssetPeriods_EasyAbpEShopPluginsBookingProductAssets_ProductAssetId",
column: x => x.ProductAssetId,
principalTable: "EasyAbpEShopPluginsBookingProductAssets",
principalColumn: "Id");
});
migrationBuilder.CreateIndex(
name: "IX_EasyAbpEShopPluginsBookingProductAssetCategoryPeriods_ProductAssetCategoryId",
table: "EasyAbpEShopPluginsBookingProductAssetCategoryPeriods",
column: "ProductAssetCategoryId");
migrationBuilder.CreateIndex(
name: "IX_EasyAbpEShopPluginsBookingProductAssetPeriods_ProductAssetId",
table: "EasyAbpEShopPluginsBookingProductAssetPeriods",
column: "ProductAssetId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingProductAssetCategoryPeriods");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingProductAssetPeriods");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingProductAssetCategories");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingProductAssets");
}
}
}

5410
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220603095504_AddedStoreAssetCategory.Designer.cs

File diff suppressed because it is too large

39
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220603095504_AddedStoreAssetCategory.cs

@ -1,39 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class AddedStoreAssetCategory : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingStoreAssetCategories",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
StoreId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AssetCategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingStoreAssetCategories", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingStoreAssetCategories");
}
}
}

5416
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220603163430_AddedStoreIdInProductAssetAndProductAssetCategory.Designer.cs

File diff suppressed because it is too large

38
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220603163430_AddedStoreIdInProductAssetAndProductAssetCategory.cs

@ -1,38 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class AddedStoreIdInProductAssetAndProductAssetCategory : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "StoreId",
table: "EasyAbpEShopPluginsBookingProductAssets",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
migrationBuilder.AddColumn<Guid>(
name: "StoreId",
table: "EasyAbpEShopPluginsBookingProductAssetCategories",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "StoreId",
table: "EasyAbpEShopPluginsBookingProductAssets");
migrationBuilder.DropColumn(
name: "StoreId",
table: "EasyAbpEShopPluginsBookingProductAssetCategories");
}
}
}

64
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220604201021_RefactoredToGrantedStore.cs

@ -1,64 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class RefactoredToGrantedStore : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingStoreAssetCategories");
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingGrantedStores",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
StoreId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
AssetCategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
AllowAll = table.Column<bool>(type: "bit", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingGrantedStores", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingGrantedStores");
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingStoreAssetCategories",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AssetCategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
StoreId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingStoreAssetCategories", x => x.Id);
});
}
}
}

5177
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220610120322_AddedInventoryProviderName.Designer.cs

File diff suppressed because it is too large

35
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220610120322_AddedInventoryProviderName.cs

@ -1,35 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class AddedInventoryProviderName : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "InventoryProviderName",
table: "EasyAbpEShopProductsProductViews",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "InventoryProviderName",
table: "EasyAbpEShopProductsProducts",
type: "nvarchar(max)",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "InventoryProviderName",
table: "EasyAbpEShopProductsProductViews");
migrationBuilder.DropColumn(
name: "InventoryProviderName",
table: "EasyAbpEShopProductsProducts");
}
}
}

10
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220604201021_RefactoredToGrantedStore.Designer.cs → samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220612113639_Initial.Designer.cs

@ -13,8 +13,8 @@ using Volo.Abp.EntityFrameworkCore;
namespace EShopSample.Migrations
{
[DbContext(typeof(EShopSampleDbContext))]
[Migration("20220604201021_RefactoredToGrantedStore")]
partial class RefactoredToGrantedStore
[Migration("20220612113639_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
@ -1626,6 +1626,9 @@ namespace EShopSample.Migrations
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("InventoryProviderName")
.HasColumnType("nvarchar(max)");
b.Property<int>("InventoryStrategy")
.HasColumnType("int");
@ -1909,6 +1912,9 @@ namespace EShopSample.Migrations
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("InventoryProviderName")
.HasColumnType("nvarchar(max)");
b.Property<int>("InventoryStrategy")
.HasColumnType("int");

183
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220101201151_InitialAbp501.cs → samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220612113639_Initial.cs

@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class InitialAbp501 : Migration
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
@ -18,9 +18,11 @@ namespace EShopSample.Migrations
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
TenantName = table.Column<string>(type: "nvarchar(max)", nullable: true),
TenantName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ImpersonatorUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ImpersonatorUserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
ImpersonatorTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ImpersonatorTenantName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ExecutionTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ExecutionDuration = table.Column<int>(type: "int", nullable: false),
ClientIpAddress = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
@ -436,6 +438,80 @@ namespace EShopSample.Migrations
table.PrimaryKey("PK_EasyAbpEShopPluginsBasketsProductUpdates", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingGrantedStores",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
StoreId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
AssetCategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
AllowAll = table.Column<bool>(type: "bit", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingGrantedStores", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingProductAssetCategories",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
StoreId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductSkuId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AssetCategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodSchemeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
FromTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ToTime = table.Column<DateTime>(type: "datetime2", nullable: true),
Price = table.Column<decimal>(type: "decimal(20,8)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingProductAssetCategories", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingProductAssets",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
StoreId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductSkuId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodSchemeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
FromTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ToTime = table.Column<DateTime>(type: "datetime2", nullable: true),
Price = table.Column<decimal>(type: "decimal(20,8)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingProductAssets", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsCouponsCoupons",
columns: table => new
@ -642,10 +718,11 @@ namespace EShopSample.Migrations
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
StoreId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductGroupName = table.Column<string>(type: "nvarchar(max)", nullable: true),
ProductDetailId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductDetailId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
UniqueName = table.Column<string>(type: "nvarchar(450)", nullable: true),
DisplayName = table.Column<string>(type: "nvarchar(max)", nullable: true),
InventoryStrategy = table.Column<int>(type: "int", nullable: false),
InventoryProviderName = table.Column<string>(type: "nvarchar(max)", nullable: true),
MediaResources = table.Column<string>(type: "nvarchar(max)", nullable: true),
DisplayOrder = table.Column<int>(type: "int", nullable: false),
IsPublished = table.Column<bool>(type: "bit", nullable: false),
@ -675,10 +752,11 @@ namespace EShopSample.Migrations
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
StoreId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductGroupName = table.Column<string>(type: "nvarchar(max)", nullable: true),
ProductDetailId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductDetailId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
UniqueName = table.Column<string>(type: "nvarchar(450)", nullable: true),
DisplayName = table.Column<string>(type: "nvarchar(max)", nullable: true),
InventoryStrategy = table.Column<int>(type: "int", nullable: false),
InventoryProviderName = table.Column<string>(type: "nvarchar(max)", nullable: true),
MediaResources = table.Column<string>(type: "nvarchar(max)", nullable: true),
DisplayOrder = table.Column<int>(type: "int", nullable: false),
IsPublished = table.Column<bool>(type: "bit", nullable: false),
@ -1445,7 +1523,8 @@ namespace EShopSample.Migrations
OrderId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(450)", nullable: false),
Key = table.Column<string>(type: "nvarchar(450)", nullable: false),
Fee = table.Column<decimal>(type: "decimal(20,8)", nullable: false)
Fee = table.Column<decimal>(type: "decimal(20,8)", nullable: false),
RefundAmount = table.Column<decimal>(type: "decimal(20,8)", nullable: false)
},
constraints: table =>
{
@ -1465,8 +1544,9 @@ namespace EShopSample.Migrations
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductSkuId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductDetailId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ProductModificationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ProductDetailModificationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ProductDetailModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
ProductGroupName = table.Column<string>(type: "nvarchar(max)", nullable: true),
ProductGroupDisplayName = table.Column<string>(type: "nvarchar(max)", nullable: true),
ProductUniqueName = table.Column<string>(type: "nvarchar(max)", nullable: true),
@ -1566,6 +1646,44 @@ namespace EShopSample.Migrations
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingProductAssetCategoryPeriods",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Price = table.Column<decimal>(type: "decimal(20,8)", nullable: false),
ProductAssetCategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingProductAssetCategoryPeriods", x => x.Id);
table.ForeignKey(
name: "FK_EasyAbpEShopPluginsBookingProductAssetCategoryPeriods_EasyAbpEShopPluginsBookingProductAssetCategories_ProductAssetCategoryId",
column: x => x.ProductAssetCategoryId,
principalTable: "EasyAbpEShopPluginsBookingProductAssetCategories",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsBookingProductAssetPeriods",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Price = table.Column<decimal>(type: "decimal(20,8)", nullable: false),
ProductAssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPluginsBookingProductAssetPeriods", x => x.Id);
table.ForeignKey(
name: "FK_EasyAbpEShopPluginsBookingProductAssetPeriods_EasyAbpEShopPluginsBookingProductAssets_ProductAssetId",
column: x => x.ProductAssetId,
principalTable: "EasyAbpEShopPluginsBookingProductAssets",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPluginsCouponsCouponTemplateScopes",
columns: table => new
@ -2058,6 +2176,26 @@ namespace EShopSample.Migrations
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPaymentsRefundItemOrderExtraFees",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
Key = table.Column<string>(type: "nvarchar(max)", nullable: true),
RefundAmount = table.Column<decimal>(type: "decimal(20,8)", nullable: false),
RefundItemId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpEShopPaymentsRefundItemOrderExtraFees", x => x.Id);
table.ForeignKey(
name: "FK_EasyAbpEShopPaymentsRefundItemOrderExtraFees_EasyAbpEShopPaymentsRefundItems_RefundItemId",
column: x => x.RefundItemId,
principalTable: "EasyAbpEShopPaymentsRefundItems",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "EasyAbpEShopPaymentsRefundItemOrderLines",
columns: table => new
@ -2281,6 +2419,11 @@ namespace EShopSample.Migrations
table: "EasyAbpEShopPaymentsPaymentItems",
column: "PaymentId");
migrationBuilder.CreateIndex(
name: "IX_EasyAbpEShopPaymentsRefundItemOrderExtraFees_RefundItemId",
table: "EasyAbpEShopPaymentsRefundItemOrderExtraFees",
column: "RefundItemId");
migrationBuilder.CreateIndex(
name: "IX_EasyAbpEShopPaymentsRefundItemOrderLines_RefundItemId",
table: "EasyAbpEShopPaymentsRefundItemOrderLines",
@ -2301,6 +2444,16 @@ namespace EShopSample.Migrations
table: "EasyAbpEShopPluginsBasketsProductUpdates",
column: "ProductSkuId");
migrationBuilder.CreateIndex(
name: "IX_EasyAbpEShopPluginsBookingProductAssetCategoryPeriods_ProductAssetCategoryId",
table: "EasyAbpEShopPluginsBookingProductAssetCategoryPeriods",
column: "ProductAssetCategoryId");
migrationBuilder.CreateIndex(
name: "IX_EasyAbpEShopPluginsBookingProductAssetPeriods_ProductAssetId",
table: "EasyAbpEShopPluginsBookingProductAssetPeriods",
column: "ProductAssetId");
migrationBuilder.CreateIndex(
name: "IX_EasyAbpEShopPluginsCouponsCouponTemplateScopes_CouponTemplateId",
table: "EasyAbpEShopPluginsCouponsCouponTemplateScopes",
@ -2501,6 +2654,9 @@ namespace EShopSample.Migrations
migrationBuilder.DropTable(
name: "EasyAbpEShopPaymentsPaymentItems");
migrationBuilder.DropTable(
name: "EasyAbpEShopPaymentsRefundItemOrderExtraFees");
migrationBuilder.DropTable(
name: "EasyAbpEShopPaymentsRefundItemOrderLines");
@ -2510,6 +2666,15 @@ namespace EShopSample.Migrations
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBasketsProductUpdates");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingGrantedStores");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingProductAssetCategoryPeriods");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingProductAssetPeriods");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsCouponsCoupons");
@ -2657,6 +2822,12 @@ namespace EShopSample.Migrations
migrationBuilder.DropTable(
name: "EasyAbpEShopPaymentsRefundItems");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingProductAssetCategories");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsBookingProductAssets");
migrationBuilder.DropTable(
name: "EasyAbpEShopPluginsCouponsCouponTemplates");

265
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/EShopSampleDbContextModelSnapshot.cs

@ -797,6 +797,233 @@ namespace EShopSample.Migrations
b.ToTable("EasyAbpEShopPluginsBasketsProductUpdates", (string)null);
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Booking.GrantedStores.GrantedStore", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<bool>("AllowAll")
.HasColumnType("bit");
b.Property<Guid?>("AssetCategoryId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("AssetId")
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<Guid>("StoreId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("EasyAbpEShopPluginsBookingGrantedStores", (string)null);
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Booking.ProductAssetCategories.ProductAssetCategory", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid>("AssetCategoryId")
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<DateTime>("FromTime")
.HasColumnType("datetime2");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<Guid>("PeriodSchemeId")
.HasColumnType("uniqueidentifier");
b.Property<decimal?>("Price")
.HasColumnType("decimal(20,8)");
b.Property<Guid>("ProductId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("ProductSkuId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("StoreId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property<DateTime?>("ToTime")
.HasColumnType("datetime2");
b.HasKey("Id");
b.ToTable("EasyAbpEShopPluginsBookingProductAssetCategories", (string)null);
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Booking.ProductAssetCategories.ProductAssetCategoryPeriod", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid>("PeriodId")
.HasColumnType("uniqueidentifier");
b.Property<decimal>("Price")
.HasColumnType("decimal(20,8)");
b.Property<Guid?>("ProductAssetCategoryId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("ProductAssetCategoryId");
b.ToTable("EasyAbpEShopPluginsBookingProductAssetCategoryPeriods", (string)null);
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Booking.ProductAssets.ProductAsset", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid>("AssetId")
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<DateTime>("FromTime")
.HasColumnType("datetime2");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<Guid>("PeriodSchemeId")
.HasColumnType("uniqueidentifier");
b.Property<decimal?>("Price")
.HasColumnType("decimal(20,8)");
b.Property<Guid>("ProductId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("ProductSkuId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("StoreId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property<DateTime?>("ToTime")
.HasColumnType("datetime2");
b.HasKey("Id");
b.ToTable("EasyAbpEShopPluginsBookingProductAssets", (string)null);
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Booking.ProductAssets.ProductAssetPeriod", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid>("PeriodId")
.HasColumnType("uniqueidentifier");
b.Property<decimal>("Price")
.HasColumnType("decimal(20,8)");
b.Property<Guid?>("ProductAssetId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("ProductAssetId");
b.ToTable("EasyAbpEShopPluginsBookingProductAssetPeriods", (string)null);
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Coupons.Coupons.Coupon", b =>
{
b.Property<Guid>("Id")
@ -1397,6 +1624,9 @@ namespace EShopSample.Migrations
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("InventoryProviderName")
.HasColumnType("nvarchar(max)");
b.Property<int>("InventoryStrategy")
.HasColumnType("int");
@ -1680,6 +1910,9 @@ namespace EShopSample.Migrations
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("InventoryProviderName")
.HasColumnType("nvarchar(max)");
b.Property<int>("InventoryStrategy")
.HasColumnType("int");
@ -4683,17 +4916,31 @@ namespace EShopSample.Migrations
modelBuilder.Entity("EasyAbp.EShop.Payments.Refunds.RefundItemOrderExtraFee", b =>
{
b.HasOne("EasyAbp.EShop.Payments.Refunds.RefundItem", null)
.WithMany("RefundItemOrderExtraFees")
.WithMany("OrderExtraFees")
.HasForeignKey("RefundItemId");
});
modelBuilder.Entity("EasyAbp.EShop.Payments.Refunds.RefundItemOrderLine", b =>
{
b.HasOne("EasyAbp.EShop.Payments.Refunds.RefundItem", null)
.WithMany("RefundItemOrderLines")
.WithMany("OrderLines")
.HasForeignKey("RefundItemId");
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Booking.ProductAssetCategories.ProductAssetCategoryPeriod", b =>
{
b.HasOne("EasyAbp.EShop.Plugins.Booking.ProductAssetCategories.ProductAssetCategory", null)
.WithMany("Periods")
.HasForeignKey("ProductAssetCategoryId");
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Booking.ProductAssets.ProductAssetPeriod", b =>
{
b.HasOne("EasyAbp.EShop.Plugins.Booking.ProductAssets.ProductAsset", null)
.WithMany("Periods")
.HasForeignKey("ProductAssetId");
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Coupons.CouponTemplates.CouponTemplateScope", b =>
{
b.HasOne("EasyAbp.EShop.Plugins.Coupons.CouponTemplates.CouponTemplate", null)
@ -5041,9 +5288,19 @@ namespace EShopSample.Migrations
modelBuilder.Entity("EasyAbp.EShop.Payments.Refunds.RefundItem", b =>
{
b.Navigation("RefundItemOrderExtraFees");
b.Navigation("OrderExtraFees");
b.Navigation("RefundItemOrderLines");
b.Navigation("OrderLines");
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Booking.ProductAssetCategories.ProductAssetCategory", b =>
{
b.Navigation("Periods");
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Booking.ProductAssets.ProductAsset", b =>
{
b.Navigation("Periods");
});
modelBuilder.Entity("EasyAbp.EShop.Plugins.Coupons.CouponTemplates.CouponTemplate", b =>

Loading…
Cancel
Save