mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 00:56: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 string Locale { get; set; }
|
||||
public bool IsAdministrator { get; set; }
|
||||
|
||||
public virtual ICollection<Award> Awards { get; set; }
|
||||
}
|
||||
|
||||
@ -154,6 +154,11 @@ namespace JetKarmaBot.Models
|
||||
.HasColumnName("locale")
|
||||
.HasColumnType("varchar(10)")
|
||||
.HasDefaultValueSql("'ru-RU'");
|
||||
|
||||
entity.Property(e => e.IsAdministrator)
|
||||
.HasColumnName("isadministrator")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("'0'");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<User>(entity =>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user