Minor database fix

This commit is contained in:
Nikolay Kochulin 2019-11-17 12:05:42 +00:00
parent 609ddf542b
commit dc58447ad4
2 changed files with 5 additions and 2 deletions

View File

@ -14,9 +14,7 @@ namespace JetKarmaBot.Models
public sbyte AwardTypeId { get; set; } public sbyte AwardTypeId { get; set; }
public string CommandName { get; set; } public string CommandName { get; set; }
public long ChatId { get; set; } public long ChatId { get; set; }
[Column("name")]
public string NominativeName { get; set; } public string NominativeName { get; set; }
[Column("accname")]
public string AccusativeName { get; set; } public string AccusativeName { get; set; }
public string Symbol { get; set; } public string Symbol { get; set; }
public string Description { get; set; } public string Description { get; set; }

View File

@ -135,6 +135,11 @@ namespace JetKarmaBot.Models
.HasColumnName("name") .HasColumnName("name")
.HasColumnType("varchar(32)"); .HasColumnType("varchar(32)");
entity.Property(e => e.AccusativeName)
.IsRequired()
.HasColumnName("accname")
.HasColumnType("varchar(32)");
entity.Property(e => e.Symbol) entity.Property(e => e.Symbol)
.IsRequired() .IsRequired()
.HasColumnName("symbol") .HasColumnName("symbol")