LANCommander/LANCommander.Server/Data/Models/Issue.cs
Pat Hartl 76106691eb Add ability to track issues with games
Adds an admin section to view and resolve submitted issues and a menu option in the game context menu in the launcher to report an issue.
2024-08-11 14:48:00 -05:00

22 lines
630 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Server.Data.Models
{
[Table("Issues")]
public class Issue : BaseModel
{
public string Description { get; set; }
public DateTime? ResolvedOn { get; set; }
public Guid GameId { get; set; }
[JsonIgnore]
[ForeignKey(nameof(GameId))]
[InverseProperty("Issues")]
public virtual Game Game { get; set; }
[Display(Name = "Resolved By")]
public virtual User? ResolvedBy { get; set; }
}
}