using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace sodoff.Model; public class GameData { [Key] [JsonIgnore] public int Id { get; set; } [JsonIgnore] public int VikingId { get; set; } public int GameId { get; set; } public int Difficulty { get; set; } public int GameLevel { get; set; } public DateTime DatePlayed { get; set; } public bool IsMultiplayer { get; set; } public bool Win { get; set; } public bool Loss { get; set; } public virtual ICollection GameDataPairs { get; set; } = null!; [JsonIgnore] public virtual Viking Viking { get; set; } = null!; }