|
@@ -24,6 +24,9 @@ namespace MySystem.Models.Main1
|
|
|
public virtual DbSet<ActivityRedPackageTop10> ActivityRedPackageTop10 { get; set; }
|
|
|
public virtual DbSet<Advertisment> Advertisment { get; set; }
|
|
|
public virtual DbSet<AgentLevelSet> AgentLevelSet { get; set; }
|
|
|
+ public virtual DbSet<AgentLevels> AgentLevels { get; set; }
|
|
|
+ public virtual DbSet<AgentProfitRecord> AgentProfitRecord { get; set; }
|
|
|
+ public virtual DbSet<AgentTradeStatSummary> AgentTradeStatSummary { get; set; }
|
|
|
public virtual DbSet<AppBottomNavs> AppBottomNavs { get; set; }
|
|
|
public virtual DbSet<AppVersion> AppVersion { get; set; }
|
|
|
public virtual DbSet<AppVideo> AppVideo { get; set; }
|
|
@@ -237,6 +240,7 @@ namespace MySystem.Models.Main1
|
|
|
public virtual DbSet<UserAccount> UserAccount { get; set; }
|
|
|
public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
|
|
|
public virtual DbSet<UserAddress> UserAddress { get; set; }
|
|
|
+ public virtual DbSet<UserAgent> UserAgent { get; set; }
|
|
|
public virtual DbSet<UserAmountSummary> UserAmountSummary { get; set; }
|
|
|
public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
|
|
|
public virtual DbSet<UserBack> UserBack { get; set; }
|
|
@@ -928,6 +932,171 @@ namespace MySystem.Models.Main1
|
|
|
entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<AgentLevels>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasComment("区域代理等级");
|
|
|
+
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("创建时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.Name)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("名称")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Percent)
|
|
|
+ .HasColumnType("decimal(18,5)")
|
|
|
+ .HasComment("分润比例");
|
|
|
+
|
|
|
+ entity.Property(e => e.Sort)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("排序序号");
|
|
|
+
|
|
|
+ entity.Property(e => e.Status)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("状态");
|
|
|
+
|
|
|
+ entity.Property(e => e.UnActPercent)
|
|
|
+ .HasColumnType("decimal(18,5)")
|
|
|
+ .HasComment("非活动分润比例");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("修改时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("版本号");
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity<AgentProfitRecord>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasComment("区域代理等级");
|
|
|
+
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.CheckStatus)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("验证和同步账户状态");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("创建时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreditTradeAmt)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("贷记卡交易总金额");
|
|
|
+
|
|
|
+ entity.Property(e => e.ProfitType)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("创客分润类型");
|
|
|
+
|
|
|
+ entity.Property(e => e.Remark)
|
|
|
+ .HasColumnType("varchar(64)")
|
|
|
+ .HasComment("备注")
|
|
|
+ .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.TradeMonth)
|
|
|
+ .HasColumnType("varchar(6)")
|
|
|
+ .HasComment("交易月")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.TradeProfit)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("交易分润");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("修改时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.UserId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("创客");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("版本号");
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity<AgentTradeStatSummary>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasComment("创客区域代理");
|
|
|
+
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("创建时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.IsAct)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("是否活动");
|
|
|
+
|
|
|
+ entity.Property(e => e.ManageAreas)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("管辖区域")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.PayMode)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("支付方式");
|
|
|
+
|
|
|
+ entity.Property(e => e.Sort)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("排序序号");
|
|
|
+
|
|
|
+ entity.Property(e => e.Status)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("状态");
|
|
|
+
|
|
|
+ entity.Property(e => e.TotalAmount)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("订单总额");
|
|
|
+
|
|
|
+ entity.Property(e => e.TradeCount)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("交易笔数");
|
|
|
+
|
|
|
+ entity.Property(e => e.TradeDate)
|
|
|
+ .HasColumnType("varchar(8)")
|
|
|
+ .HasComment("交易日")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.TradeMonth)
|
|
|
+ .HasColumnType("varchar(6)")
|
|
|
+ .HasComment("交易月")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("修改时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.UserId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("创客");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("版本号");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<AppBottomNavs>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
@@ -16611,6 +16780,53 @@ namespace MySystem.Models.Main1
|
|
|
entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<UserAgent>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasComment("创客区域代理");
|
|
|
+
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.AgentLevel)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("等级");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("创建时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.ManageAreas)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("管辖区域")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Operator)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasComment("操作人")
|
|
|
+ .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.UserId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("创客Id");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("版本号");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<UserAmountSummary>(entity =>
|
|
|
{
|
|
|
entity.HasIndex(e => new { e.UserId, e.IsAct, e.TradeMonth, e.TradeDate, e.SeoTitle })
|