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.
22 lines
630 B
C#
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; }
|
|
}
|
|
}
|