using Marco.Pms.Model.DocumentManager;
using Marco.Pms.Model.Utilities;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.ComponentModel.DataAnnotations.Schema;

namespace Marco.Pms.Model.Collection
{
    public class InvoiceAttachment : TenantRelation
    {
        public Guid Id { get; set; }
        public Guid InvoiceId { get; set; }

        [ValidateNever]
        [ForeignKey("InvoiceId")]
        public Invoice? Invoice { get; set; }
        public Guid DocumentId { get; set; }

        [ValidateNever]
        [ForeignKey("DocumentId")]
        public Document? Document { get; set; }
    }
}
