sodoff/src/Model/GameData.cs
2026-09-03 10:31:45 -07:00

24 lines
685 B
C#

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<GameDataPair> GameDataPairs { get; set; } = null!;
[JsonIgnore]
public virtual Viking Viking { get; set; } = null!;
}