mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
* Added issuesreporting and the ability to add categories to the UI * Added lazy loading!
33 lines
No EOL
1 KiB
C#
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,
|
|
}
|
|
} |