22 lines
655 B
C#
22 lines
655 B
C#
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
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; }
|
|
}
|
|
}
|