using System.ComponentModel.DataAnnotations;
using PowderCoating.Core.Enums;

namespace PowderCoating.Application.DTOs.BugReport;

public class CreateBugReportDto
{
    [Required(ErrorMessage = "Please provide a brief title for the bug.")]
    [StringLength(200, ErrorMessage = "Title cannot exceed 200 characters.")]
    public string Title { get; set; } = string.Empty;

    [Required(ErrorMessage = "Please describe the issue.")]
    [StringLength(4000, ErrorMessage = "Description cannot exceed 4000 characters.")]
    public string Description { get; set; } = string.Empty;

    public BugReportPriority Priority { get; set; } = BugReportPriority.Normal;
}
