using PowderCoating.Core.Enums;

namespace PowderCoating.Core.Entities;

public class BugReport : BaseEntity
{
    public string Title { get; set; } = string.Empty;
    public string Description { get; set; } = string.Empty;
    public string SubmittedByUserId { get; set; } = string.Empty;
    public string SubmittedByUserName { get; set; } = string.Empty;
    public string? CompanyName { get; set; }
    public BugReportPriority Priority { get; set; } = BugReportPriority.Normal;
    public BugReportStatus Status { get; set; } = BugReportStatus.New;
    public string? ResolutionNotes { get; set; }
    public DateTime? ResolvedAt { get; set; }
    public string? ResolvedBy { get; set; }

    public ICollection<BugReportAttachment> Attachments { get; set; } = new List<BugReportAttachment>();
}
