|
@@ -18,6 +18,7 @@ namespace MySystem.Models.Bs
|
|
|
public virtual DbSet<Advertisment> Advertisment { get; set; }
|
|
|
public virtual DbSet<Col> Col { get; set; }
|
|
|
public virtual DbSet<MenuRight> MenuRight { get; set; }
|
|
|
+ public virtual DbSet<MenuRightNew> MenuRightNew { get; set; }
|
|
|
public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
|
|
|
public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
|
|
|
public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
|
|
@@ -31,9 +32,13 @@ namespace MySystem.Models.Bs
|
|
|
public virtual DbSet<PageInfo> PageInfo { get; set; }
|
|
|
public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
|
|
|
public virtual DbSet<RefreshTokens> RefreshTokens { get; set; }
|
|
|
+ public virtual DbSet<RefreshTokensNew> RefreshTokensNew { get; set; }
|
|
|
public virtual DbSet<RightDic> RightDic { get; set; }
|
|
|
+ public virtual DbSet<RightDicNew> RightDicNew { get; set; }
|
|
|
public virtual DbSet<SysAdmin> SysAdmin { get; set; }
|
|
|
+ public virtual DbSet<SysAdminNew> SysAdminNew { get; set; }
|
|
|
public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
|
|
|
+ public virtual DbSet<SysAdminRoleNew> SysAdminRoleNew { get; set; }
|
|
|
public virtual DbSet<SysLog> SysLog { get; set; }
|
|
|
public virtual DbSet<SystemSet> SystemSet { get; set; }
|
|
|
public virtual DbSet<UploadParams> UploadParams { get; set; }
|
|
@@ -214,6 +219,22 @@ namespace MySystem.Models.Bs
|
|
|
.HasCollation("utf8_general_ci");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<MenuRightNew>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasKey(e => e.MenuId)
|
|
|
+ .HasName("PRIMARY");
|
|
|
+
|
|
|
+ entity.Property(e => e.MenuId)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Name)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<MsgBlackList>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
@@ -1244,6 +1265,21 @@ namespace MySystem.Models.Bs
|
|
|
.HasCollation("utf8_general_ci");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<RefreshTokensNew>(entity =>
|
|
|
+ {
|
|
|
+ entity.HasKey(e => e.UserId)
|
|
|
+ .HasName("PRIMARY");
|
|
|
+
|
|
|
+ entity.Property(e => e.UserId).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
|
|
|
+
|
|
|
+ entity.Property(e => e.RefreshToken)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<RightDic>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id)
|
|
@@ -1294,6 +1330,56 @@ namespace MySystem.Models.Bs
|
|
|
.HasCollation("utf8_general_ci");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<RightDicNew>(entity =>
|
|
|
+ {
|
|
|
+ entity.Property(e => e.Id)
|
|
|
+ .HasColumnName("ID")
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Icon)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.MainDataList)
|
|
|
+ .HasColumnType("bit(1)")
|
|
|
+ .HasDefaultValueSql("b'0'");
|
|
|
+
|
|
|
+ entity.Property(e => e.MainMenu)
|
|
|
+ .HasColumnType("bit(1)")
|
|
|
+ .HasDefaultValueSql("b'0'");
|
|
|
+
|
|
|
+ entity.Property(e => e.MainStat)
|
|
|
+ .HasColumnType("bit(1)")
|
|
|
+ .HasDefaultValueSql("b'0'");
|
|
|
+
|
|
|
+ entity.Property(e => e.Name)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.OtherRight)
|
|
|
+ .HasColumnType("varchar(500)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Path)
|
|
|
+ .HasColumnType("varchar(200)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.RightLevel).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.Sort).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.Url)
|
|
|
+ .HasColumnType("varchar(200)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<SysAdmin>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
@@ -1358,6 +1444,70 @@ namespace MySystem.Models.Bs
|
|
|
entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<SysAdminNew>(entity =>
|
|
|
+ {
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.AdminName)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate).HasColumnType("datetime");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateMan)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
|
|
|
+
|
|
|
+ entity.Property(e => e.Password)
|
|
|
+ .HasColumnType("varchar(32)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.QueryCount).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.RealName)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Role)
|
|
|
+ .HasColumnType("varchar(30)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ 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.UpdateDate).HasColumnType("datetime");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateMan)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<SysAdminRole>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
@@ -1415,6 +1565,63 @@ namespace MySystem.Models.Bs
|
|
|
entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<SysAdminRoleNew>(entity =>
|
|
|
+ {
|
|
|
+ entity.Property(e => e.Id).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateDate).HasColumnType("datetime");
|
|
|
+
|
|
|
+ entity.Property(e => e.CreateMan)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Details)
|
|
|
+ .HasColumnType("longtext")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Name)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.QueryCount).HasColumnType("int(11)");
|
|
|
+
|
|
|
+ entity.Property(e => e.RightInfo)
|
|
|
+ .HasColumnType("longtext")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ 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.UpdateDate).HasColumnType("datetime");
|
|
|
+
|
|
|
+ entity.Property(e => e.UpdateMan)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
+ entity.Property(e => e.Version).HasColumnType("int(11)");
|
|
|
+ });
|
|
|
+
|
|
|
modelBuilder.Entity<SysLog>(entity =>
|
|
|
{
|
|
|
entity.Property(e => e.Id).HasColumnType("int(11)");
|