diff --git a/samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220101201151_InitialAbp501.Designer.cs b/samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220101201151_InitialAbp501.Designer.cs
deleted file mode 100644
index 2184e77e..00000000
--- a/samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220101201151_InitialAbp501.Designer.cs
+++ /dev/null
@@ -1,5119 +0,0 @@
-//
-using System;
-using EShopSample.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using Volo.Abp.EntityFrameworkCore;
-
-#nullable disable
-
-namespace EShopSample.Migrations
-{
- [DbContext(typeof(EShopSampleDbContext))]
- [Migration("20220101201151_InitialAbp501")]
- partial class InitialAbp501
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "6.0.1")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
-
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
-
- modelBuilder.Entity("EasyAbp.EShop.Orders.Orders.Order", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ActualTotalPrice")
- .HasColumnType("decimal(20,8)");
-
- b.Property("CanceledTime")
- .HasColumnType("datetime2");
-
- b.Property("CancellationReason")
- .HasColumnType("nvarchar(max)");
-
- b.Property("CompletionTime")
- .HasColumnType("datetime2");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("Currency")
- .HasColumnType("nvarchar(max)");
-
- b.Property("CustomerRemark")
- .HasColumnType("nvarchar(max)");
-
- b.Property("CustomerUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("OrderNumber")
- .HasColumnType("nvarchar(450)");
-
- b.Property("OrderStatus")
- .HasColumnType("int");
-
- b.Property("PaidTime")
- .HasColumnType("datetime2");
-
- b.Property("PaymentExpiration")
- .HasColumnType("datetime2");
-
- b.Property("PaymentId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ProductTotalPrice")
- .HasColumnType("decimal(20,8)");
-
- b.Property("ReducedInventoryAfterPaymentTime")
- .HasColumnType("datetime2");
-
- b.Property("ReducedInventoryAfterPlacingTime")
- .HasColumnType("datetime2");
-
- b.Property("RefundAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("StaffRemark")
- .HasColumnType("nvarchar(max)");
-
- b.Property("StoreId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("TenantId");
-
- b.Property("TotalDiscount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("TotalPrice")
- .HasColumnType("decimal(20,8)");
-
- b.HasKey("Id");
-
- b.HasIndex("OrderNumber")
- .IsUnique()
- .HasFilter("[OrderNumber] IS NOT NULL");
-
- b.ToTable("EasyAbpEShopOrdersOrders", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Orders.Orders.OrderExtraFee", b =>
- {
- b.Property("OrderId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Name")
- .HasColumnType("nvarchar(450)");
-
- b.Property("Key")
- .HasColumnType("nvarchar(450)");
-
- b.Property("Fee")
- .HasColumnType("decimal(20,8)");
-
- b.HasKey("OrderId", "Name", "Key");
-
- b.ToTable("EasyAbpEShopOrdersOrderExtraFees", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Orders.Orders.OrderLine", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ActualTotalPrice")
- .HasColumnType("decimal(20,8)");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("Currency")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("MediaResources")
- .HasColumnType("nvarchar(max)");
-
- b.Property("OrderId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ProductDetailModificationTime")
- .HasColumnType("datetime2");
-
- b.Property("ProductDisplayName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ProductGroupDisplayName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ProductGroupName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ProductId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ProductModificationTime")
- .HasColumnType("datetime2");
-
- b.Property("ProductSkuId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ProductUniqueName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Quantity")
- .HasColumnType("int");
-
- b.Property("RefundAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("RefundedQuantity")
- .HasColumnType("int");
-
- b.Property("SkuDescription")
- .HasColumnType("nvarchar(max)");
-
- b.Property("SkuName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("TotalDiscount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("TotalPrice")
- .HasColumnType("decimal(20,8)");
-
- b.Property("UnitPrice")
- .HasColumnType("decimal(20,8)");
-
- b.HasKey("Id");
-
- b.HasIndex("OrderId");
-
- b.ToTable("EasyAbpEShopOrdersOrderLines", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Payments.Payments.Payment", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ActualPaymentAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("CanceledTime")
- .HasColumnType("datetime2");
-
- b.Property("CompletionTime")
- .HasColumnType("datetime2");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("Currency")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("ExternalTradingCode")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("OriginalPaymentAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("PayeeAccount")
- .HasColumnType("nvarchar(max)");
-
- b.Property("PaymentDiscount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("PaymentMethod")
- .HasColumnType("nvarchar(max)");
-
- b.Property("PendingRefundAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("RefundAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("TenantId");
-
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.ToTable("EasyAbpEShopPaymentsPayments", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Payments.Payments.PaymentItem", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ActualPaymentAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("ItemKey")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ItemType")
- .HasColumnType("nvarchar(max)");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("OriginalPaymentAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("PaymentDiscount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("PaymentId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("PendingRefundAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("RefundAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("StoreId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("PaymentId");
-
- b.ToTable("EasyAbpEShopPaymentsPaymentItems", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Payments.Refunds.Refund", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("CanceledTime")
- .HasColumnType("datetime2");
-
- b.Property("CompletedTime")
- .HasColumnType("datetime2");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("Currency")
- .HasColumnType("nvarchar(max)");
-
- b.Property("CustomerRemark")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("DisplayReason")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ExternalTradingCode")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("PaymentId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("RefundAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("RefundPaymentMethod")
- .HasColumnType("nvarchar(max)");
-
- b.Property("StaffRemark")
- .HasColumnType("nvarchar(max)");
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("TenantId");
-
- b.HasKey("Id");
-
- b.ToTable("EasyAbpEShopPaymentsRefunds", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Payments.Refunds.RefundItem", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("CustomerRemark")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("OrderId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("PaymentItemId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("RefundAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("RefundId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("StaffRemark")
- .HasColumnType("nvarchar(max)");
-
- b.Property("StoreId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("RefundId");
-
- b.ToTable("EasyAbpEShopPaymentsRefundItems", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Payments.Refunds.RefundItemOrderLine", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("OrderLineId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("RefundAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("RefundItemId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("RefundedQuantity")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.HasIndex("RefundItemId");
-
- b.ToTable("EasyAbpEShopPaymentsRefundItemOrderLines", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Plugins.Baskets.BasketItems.BasketItem", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("BasketName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("Currency")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("Inventory")
- .HasColumnType("int");
-
- b.Property("IsInvalid")
- .HasColumnType("bit");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("MediaResources")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ProductDisplayName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ProductId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ProductSkuId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ProductUniqueName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Quantity")
- .HasColumnType("int");
-
- b.Property("SkuDescription")
- .HasColumnType("nvarchar(max)");
-
- b.Property("SkuName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("StoreId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("TenantId");
-
- b.Property("TotalDiscount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("TotalPrice")
- .HasColumnType("decimal(20,8)");
-
- b.Property("UnitPrice")
- .HasColumnType("decimal(20,8)");
-
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("EasyAbpEShopPluginsBasketsBasketItems", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Plugins.Baskets.ProductUpdates.ProductUpdate", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("ProductSkuId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("TenantId");
-
- b.HasKey("Id");
-
- b.HasIndex("ProductSkuId");
-
- b.ToTable("EasyAbpEShopPluginsBasketsProductUpdates", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Plugins.Coupons.Coupons.Coupon", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CouponTemplateId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("Currency")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("DiscountedAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("ExpirationTime")
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("OrderId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("TenantId");
-
- b.Property("UsedTime")
- .HasColumnType("datetime2");
-
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.ToTable("EasyAbpEShopPluginsCouponsCoupons", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Plugins.Coupons.CouponTemplates.CouponTemplate", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("ConditionAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("CouponType")
- .HasColumnType("int");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("Currency")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("Description")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DiscountAmount")
- .HasColumnType("decimal(20,8)");
-
- b.Property("DisplayName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("IsUnscoped")
- .HasColumnType("bit");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("StoreId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("TenantId");
-
- b.Property("UniqueName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("UsableBeginTime")
- .HasColumnType("datetime2");
-
- b.Property("UsableDuration")
- .HasColumnType("time");
-
- b.Property("UsableEndTime")
- .HasColumnType("datetime2");
-
- b.HasKey("Id");
-
- b.ToTable("EasyAbpEShopPluginsCouponsCouponTemplates", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Plugins.Coupons.CouponTemplates.CouponTemplateScope", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("CouponTemplateId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("ProductGroupName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ProductId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ProductSkuId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("StoreId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("CouponTemplateId");
-
- b.ToTable("EasyAbpEShopPluginsCouponsCouponTemplateScopes", (string)null);
- });
-
- modelBuilder.Entity("EasyAbp.EShop.Products.Categories.Category", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("Code")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("Description")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DisplayName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("IsHidden")
- .HasColumnType("bit");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("Level")
- .HasColumnType("int");
-
- b.Property("MediaResources")
- .HasColumnType("nvarchar(max)");
-
- b.Property