mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 09:06:09 +03:00
Add field IsAdministrator
Signed-off-by: Nikolay Kochulin <porez0xfeedface@gmail.com>
This commit is contained in:
parent
79e78f41c5
commit
45b94e7561
@ -12,6 +12,7 @@ namespace JetKarmaBot.Models
|
|||||||
|
|
||||||
public long ChatId { get; set; }
|
public long ChatId { get; set; }
|
||||||
public string Locale { get; set; }
|
public string Locale { get; set; }
|
||||||
|
public bool IsAdministrator { get; set; }
|
||||||
|
|
||||||
public virtual ICollection<Award> Awards { get; set; }
|
public virtual ICollection<Award> Awards { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -154,6 +154,11 @@ namespace JetKarmaBot.Models
|
|||||||
.HasColumnName("locale")
|
.HasColumnName("locale")
|
||||||
.HasColumnType("varchar(10)")
|
.HasColumnType("varchar(10)")
|
||||||
.HasDefaultValueSql("'ru-RU'");
|
.HasDefaultValueSql("'ru-RU'");
|
||||||
|
|
||||||
|
entity.Property(e => e.IsAdministrator)
|
||||||
|
.HasColumnName("isadministrator")
|
||||||
|
.HasColumnType("tinyint(1)")
|
||||||
|
.HasDefaultValueSql("'0'");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity<User>(entity =>
|
modelBuilder.Entity<User>(entity =>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user