namespace DXApp.TemplateKitProject.Models;

/// <summary>
/// Extrahierte Anhänge einer ZUGFeRD-Rechnung (gespeichert in DB)
/// </summary>
public class InvoiceAttachment
{
    public int Id { get; set; }
    public int ZugferdInvoiceId { get; set; }
    public string OriginalFileName { get; set; } = string.Empty;
    public string SavedFilePath { get; set; } = string.Empty;
    public long FileSizeBytes { get; set; }
    public bool IsZugferdXml { get; set; }
    public DateTime ExtractedAt { get; set; }

    // Navigation Property
    public ZugferdInvoice? ZugferdInvoice { get; set; }
}
