|
@@ -48,8 +48,10 @@ namespace MySystem.Models.Main1
|
|
|
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; }
|
|
@@ -2752,6 +2754,82 @@ namespace MySystem.Models.Main1
|
|
|
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)");
|
|
@@ -2866,6 +2944,48 @@ namespace MySystem.Models.Main1
|
|
|
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)");
|
|
@@ -16385,6 +16505,9 @@ namespace MySystem.Models.Main1
|
|
|
|
|
|
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");
|