namespace ERPCore.Domain.Entities;

/// <summary>
/// Per-document-type, per-year running counter behind human document numbers
/// (FR-X-03): <c>PR-2026-00001</c>, <c>PO-2026-00042</c>, … Numbers are issued
/// inside the document's transaction so they are unique and gap-controlled.
/// Model: docs/10 Part C.7.
/// </summary>
public class NumberSequence
{
    public int SequenceId { get; set; }
    public string DocType { get; set; } = string.Empty;
    public int Year { get; set; }
    public int LastNumber { get; set; }
}
