|
@@ -30,6 +30,7 @@ namespace MySystem.BsModels
|
|
|
public virtual DbSet<OperateRightList> OperateRightList { get; set; }
|
|
|
public virtual DbSet<PageInfo> PageInfo { get; set; }
|
|
|
public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
|
|
|
+ public virtual DbSet<RefreshTokens> RefreshTokens { get; set; }
|
|
|
public virtual DbSet<RightDic> RightDic { get; set; }
|
|
|
public virtual DbSet<SysAdmin> SysAdmin { get; set; }
|
|
|
public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
|
|
@@ -1228,6 +1229,21 @@ namespace MySystem.BsModels
|
|
|
.HasCollation("utf8_general_ci");
|
|
|
});
|
|
|
|
|
|
+ modelBuilder.Entity<RefreshTokens>(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)
|
|
@@ -1258,10 +1274,25 @@ namespace MySystem.BsModels
|
|
|
.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.Title)
|
|
|
+ .HasColumnType("varchar(50)")
|
|
|
+ .HasCharSet("utf8")
|
|
|
+ .HasCollation("utf8_general_ci");
|
|
|
+
|
|
|
entity.Property(e => e.Url)
|
|
|
.HasColumnType("varchar(200)")
|
|
|
.HasCharSet("utf8")
|