using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;

namespace Marco.Pms.Model.Forum
{

    public class TicketAttachment
    {
        public Guid Id { get; set; }
        public Guid TicketId { get; set; }
        [ValidateNever]
        [ForeignKey(nameof(TicketId))]
        public TicketForum? Ticket { get; set; }
        public Guid? CommentId { get; set; }
        [ValidateNever]
        [ForeignKey(nameof(CommentId))]
        public TicketComment? TicketComment { get; set; }
        public string FileName { get; set; } = string.Empty;
        public Guid FileId { get; set; }
    }
}
