Ombi/src/Ombi.Store/Entities/Requests/Issues.cs
Jamie 246f1c07cf
Add the Issue Reporting functionality (#1811)
* Added issuesreporting and the ability to add categories to the UI
* Added lazy loading!
2017-12-28 21:51:33 +00:00

33 lines
No EOL
1 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace Ombi.Store.Entities.Requests
{
[Table("Issues")]
public class Issues : Entity
{
public string Title { get; set; }
public RequestType RequestType { get; set; }
public string ProviderId { get; set; }
public int? RequestId { get; set; }
public string Subject { get; set; }
public string Description { get; set; }
public int IssueCategoryId { get; set; }
[ForeignKey(nameof(IssueCategoryId))]
public IssueCategory IssueCategory { get; set; }
public IssueStatus Status { get; set; }
public DateTime? ResovledDate { get; set; }
[ForeignKey(nameof(UserReported))]
public string UserReportedId { get; set; }
public OmbiUser UserReported { get; set; }
public List<IssueComments> Comments { get; set; }
}
public enum IssueStatus
{
Pending = 0,
InProgress = 1,
Resolved = 2,
}
}