namespace PowderCoating.Core.Entities; /// /// Records that a company imported a specific FormulaLibraryItem into their local template library. /// Tenant-scoped via BaseEntity.CompanyId. One row per (company, library item) — re-importing the /// same item overwrites the existing row rather than creating a duplicate. /// public class FormulaLibraryImport : BaseEntity { public int FormulaLibraryItemId { get; set; } public virtual FormulaLibraryItem FormulaLibraryItem { get; set; } = null!; public string ImportedByUserId { get; set; } = string.Empty; public DateTime ImportedAt { get; set; } = DateTime.UtcNow; /// The CustomItemTemplate row created in this company's local library on import. public int ResultingCustomItemTemplateId { get; set; } public virtual CustomItemTemplate ResultingCustomItemTemplate { get; set; } = null!; }