|
@@ -1,4 +1,5 @@
|
|
|
using System;
|
|
|
+using System.ComponentModel.DataAnnotations;
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
using System.Threading.Tasks;
|
|
|
using MafiaTelegramBot.DataBase.EntityDao;
|
|
@@ -9,15 +10,15 @@ namespace MafiaTelegramBot.DataBase.Entity
|
|
|
[Table("statistics")]
|
|
|
public class StatisticsEntity
|
|
|
{
|
|
|
- [DatabaseGenerated(DatabaseGeneratedOption.None)] [Column("id")]
|
|
|
+ [DatabaseGenerated(DatabaseGeneratedOption.None)] [Column("id") , MaxLength(127)]
|
|
|
public long UserId { get; init; }
|
|
|
- [DatabaseGenerated(DatabaseGeneratedOption.None)] [Column("role")]
|
|
|
+ [DatabaseGenerated(DatabaseGeneratedOption.None)] [Column("role") , MaxLength(127)]
|
|
|
public string Role { get; init; }
|
|
|
|
|
|
[NotMapped]
|
|
|
private int _games = 0;
|
|
|
|
|
|
- [Column("games")]
|
|
|
+ [Column("games") , MaxLength(127)]
|
|
|
public int Games
|
|
|
{
|
|
|
get=> _games;
|
|
@@ -32,7 +33,7 @@ namespace MafiaTelegramBot.DataBase.Entity
|
|
|
[NotMapped]
|
|
|
private int _wins = 0;
|
|
|
|
|
|
- [Column("wins")]
|
|
|
+ [Column("wins") , MaxLength(127)]
|
|
|
public int Wins
|
|
|
{
|
|
|
get=> _wins;
|