|
@@ -48,8 +48,10 @@ namespace MySystem.MainModels
|
|
|
public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
|
|
|
public virtual DbSet<Coupons> Coupons { get; set; }
|
|
|
public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
|
|
|
+ public virtual DbSet<CustomQuery> CustomQuery { get; set; }
|
|
|
public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
|
|
|
public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
|
|
|
+ public virtual DbSet<ExportExcels> ExportExcels { get; set; }
|
|
|
public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
|
|
|
public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
|
|
|
public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
|
|
@@ -103,6 +105,7 @@ namespace MySystem.MainModels
|
|
|
public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
|
|
|
public virtual DbSet<MerchantLoginInfo> MerchantLoginInfo { get; set; }
|
|
|
public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
|
|
|
+ public virtual DbSet<MerchantParamSetRecord> MerchantParamSetRecord { get; set; }
|
|
|
public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
|
|
|
public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
|
|
|
public virtual DbSet<MerchantTradeSummary> MerchantTradeSummary { get; set; }
|
|
@@ -2257,6 +2260,20 @@ namespace MySystem.MainModels
|
|
|
|
|
|
entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
|
|
|
|
|
|
+ entity.Property(e => e.DivideDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("提交分账时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.DivideFlag)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("分账标记");
|
|
|
+
|
|
|
+ entity.Property(e => e.DivideLog)
|
|
|
+ .HasColumnType("mediumtext")
|
|
|
+ .HasComment("分账结果日志")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
entity.Property(e => e.IsAct)
|
|
|
.HasColumnType("bit(1)")
|
|
|
.HasDefaultValueSql("b'0'");
|
|
@@ -2297,6 +2314,10 @@ namespace MySystem.MainModels
|
|
|
.HasCharSet("utf8")
|
|
|
.HasCollation("utf8_general_ci");
|
|
|
|
|
|
+ entity.Property(e => e.SetRecordId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("活动记录Id");
|
|
|
+
|
|
|
entity.Property(e => e.SnNo)
|
|
|
.HasColumnType("varchar(50)")
|
|
|
.HasCharSet("utf8")
|
|
@@ -2306,6 +2327,12 @@ namespace MySystem.MainModels
|
|
|
|
|
|
entity.Property(e => e.Status).HasColumnType("int(11)");
|
|
|
|
|
|
+ entity.Property(e => e.TradePayNo)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("支付交易号")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
entity.Property(e => e.UpdateDate).HasColumnType("datetime");
|
|
|
|
|
|
entity.Property(e => e.UpdateMan)
|
|
@@ -2727,6 +2754,82 @@ namespace MySystem.MainModels
|
|
|
entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<CustomQuery>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasComment("自定义查询");
|
|
|
+
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.AdminNames)
|
|
|
+ .HasColumnType("varchar(500)")
|
|
|
+ .HasComment("后台账号")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("创建时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateMan)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("创建人")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.QueryCount)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("点击量");
|
|
|
+
|
|
|
+ entity.Property(e => e.SeoDescription)
|
|
|
+ .HasColumnType("varchar(500)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.SeoKeyword)
|
|
|
+ .HasColumnType("varchar(200)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.SeoTitle)
|
|
|
+ .HasColumnType("varchar(100)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Sort)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("排序序号");
|
|
|
+
|
|
|
+ entity.Property(e => e.SqlContent)
|
|
|
+ .HasColumnType("mediumtext")
|
|
|
+ .HasComment("sql语句")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Status)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("状态");
|
|
|
+
|
|
|
+ entity.Property(e => e.Title)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("标题")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("更新时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateMan)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("更新人")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("版本号");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<CustomTagSet>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
@@ -2841,6 +2944,48 @@ namespace MySystem.MainModels
|
|
|
entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<ExportExcels>(entity =>
|
|
|
+ {
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate).HasColumnType("datetime");
|
|
|
+
|
|
|
+ entity.Property(e => e.FileName)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.FileUrl)
|
|
|
+ .HasColumnType("varchar(500)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.QueryCount).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.SeoDescription)
|
|
|
+ .HasColumnType("varchar(500)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.SeoKeyword)
|
|
|
+ .HasColumnType("varchar(200)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.SeoTitle)
|
|
|
+ .HasColumnType("varchar(100)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Sort).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.Status).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.SysId).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateDate).HasColumnType("datetime");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<FileUpdateInfo>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
@@ -5504,6 +5649,12 @@ namespace MySystem.MainModels
|
|
|
.HasCharSet("utf8")
|
|
|
.HasCollation("utf8_general_ci");
|
|
|
|
|
|
+ entity.Property(e => e.MerchantType)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("商户类型")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
entity.Property(e => e.MiniProgramAppid)
|
|
|
.HasColumnType("varchar(50)")
|
|
|
.HasCharSet("utf8")
|
|
@@ -6942,6 +7093,116 @@ namespace MySystem.MainModels
|
|
|
entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<MerchantParamSetRecord>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasComment("商户活动配置历史记录");
|
|
|
+
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterDiviPercent)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("修改后最大分红比例");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterDiviPersons)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("修改后单笔订单分红人数");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterGetPercent)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("修改后商家实收比例");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterIsAll)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("修改后是否收全额");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterMinPayMoney)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("修改后订单参与门槛");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterProfitDays)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("修改后分红期限(天)");
|
|
|
+
|
|
|
+ entity.Property(e => e.BeforeDiviPercent)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("修改前最大分红比例");
|
|
|
+
|
|
|
+ entity.Property(e => e.BeforeDiviPersons)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("修改前单笔订单分红人数");
|
|
|
+
|
|
|
+ entity.Property(e => e.BeforeGetPercent)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("修改前商家实收比例");
|
|
|
+
|
|
|
+ entity.Property(e => e.BeforeIsAll)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("修改前是否收全额");
|
|
|
+
|
|
|
+ entity.Property(e => e.BeforeMinPayMoney)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("修改前订单参与门槛");
|
|
|
+
|
|
|
+ entity.Property(e => e.BeforeProfitDays)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("修改前分红期限(天)");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("创建时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateMan)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("创建人")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.MerchantId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("商户Id");
|
|
|
+
|
|
|
+ entity.Property(e => e.QueryCount)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("点击量");
|
|
|
+
|
|
|
+ entity.Property(e => e.SeoDescription)
|
|
|
+ .HasColumnType("varchar(500)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.SeoKeyword)
|
|
|
+ .HasColumnType("varchar(200)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.SeoTitle)
|
|
|
+ .HasColumnType("varchar(100)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Sort)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("排序序号");
|
|
|
+
|
|
|
+ entity.Property(e => e.Status)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("状态");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("更新时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateMan)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("更新人")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("版本号");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<MerchantQrCode>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
@@ -16244,6 +16505,9 @@ namespace MySystem.MainModels
|
|
|
|
|
|
modelBuilder.Entity<UserAmountSummary>(entity =>
|
|
|
{
|
|
|
+ entity.HasIndex(e => new { e.UserId, e.IsAct, e.TradeMonth, e.TradeDate, e.SeoTitle })
|
|
|
+ .HasName("UserAmountSummaryIndex");
|
|
|
+
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
|
|
|
entity.Property(e => e.CreateDate).HasColumnType("datetime");
|