|
@@ -20,6 +20,9 @@ namespace MySystem.OpModels
|
|
|
public virtual DbSet<Advertisment> Advertisment { get; set; }
|
|
|
public virtual DbSet<AmountChangeRecord> AmountChangeRecord { get; set; }
|
|
|
public virtual DbSet<AmountRecord> AmountRecord { get; set; }
|
|
|
+ public virtual DbSet<AmountRecordNew> AmountRecordNew { get; set; }
|
|
|
+ public virtual DbSet<ChangeTypeKind> ChangeTypeKind { get; set; }
|
|
|
+ public virtual DbSet<ChangeTypes> ChangeTypes { get; set; }
|
|
|
public virtual DbSet<Col> Col { get; set; }
|
|
|
public virtual DbSet<MachineApplyOpRecord> MachineApplyOpRecord { get; set; }
|
|
|
public virtual DbSet<MenuRight> MenuRight { get; set; }
|
|
@@ -379,6 +382,183 @@ namespace MySystem.OpModels
|
|
|
entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<AmountRecordNew>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasComment("新合伙人额度变动记录");
|
|
|
+
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterAmount)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("使用后剩余额度");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterTotalAmt)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("使用后未使用额度");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterValidAmount)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("使用后关联分仓额度");
|
|
|
+
|
|
|
+ entity.Property(e => e.AfterValidForGetAmount)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("使用后可提现额度");
|
|
|
+
|
|
|
+ entity.Property(e => e.ApplyId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("申请单");
|
|
|
+
|
|
|
+ entity.Property(e => e.BeforeAmount)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("使用前剩余额度");
|
|
|
+
|
|
|
+ entity.Property(e => e.ChangeTypeId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("收支类别");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("创建时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.DataId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("数据来源Id");
|
|
|
+
|
|
|
+ entity.Property(e => e.DataType)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("数据来源表类型");
|
|
|
+
|
|
|
+ entity.Property(e => e.OperateType)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("操作类别");
|
|
|
+
|
|
|
+ entity.Property(e => e.Remark)
|
|
|
+ .HasColumnType("varchar(100)")
|
|
|
+ .HasComment("备注")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.ShowType)
|
|
|
+ .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.UpdateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("修改时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.UseAmount)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("使用额度");
|
|
|
+
|
|
|
+ entity.Property(e => e.UseTotalAmt)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("使用未使用额度");
|
|
|
+
|
|
|
+ entity.Property(e => e.UseValidAmount)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("使用关联分仓额度");
|
|
|
+
|
|
|
+ entity.Property(e => e.UseValidForGetAmount)
|
|
|
+ .HasColumnType("decimal(18,2)")
|
|
|
+ .HasComment("使用可提现额度");
|
|
|
+
|
|
|
+ entity.Property(e => e.UserId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("运营中心");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("版本号");
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity<ChangeTypeKind>(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.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.Version)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("版本号");
|
|
|
+ });
|
|
|
+
|
|
|
+ modelBuilder.Entity<ChangeTypes>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasComment("收支明细");
|
|
|
+
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("创建时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.Kind)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("类型");
|
|
|
+
|
|
|
+ entity.Property(e => e.Name)
|
|
|
+ .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.TypeId)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("所属分类Id");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("修改时间");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version)
|
|
|
+ .HasColumnType("int(11)")
|
|
|
+ .HasComment("版本号");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<Col>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|