namespace ERPCore.Domain.Entities;

/// <summary>
/// Per-item conversion factor between two UOMs (FR-MD-02/03): quantity in
/// <see cref="FromUomId"/> × <see cref="Factor"/> = quantity in <see cref="ToUomId"/>.
/// Model: docs/10-BACKEND-PHASE1.md Part C.1.
/// </summary>
public class UomConversion
{
    public int ConversionId { get; set; }

    public int ItemId { get; set; }
    public Item? Item { get; set; }

    public int FromUomId { get; set; }
    public Uom? FromUom { get; set; }

    public int ToUomId { get; set; }
    public Uom? ToUom { get; set; }

    public decimal Factor { get; set; }
}
