using System.ComponentModel.DataAnnotations;

namespace ERPCore.Dtos.Uoms;

/// <summary>UOM resource (docs/11-BACKEND-PHASE1.md §2.2).</summary>
public sealed record UomDto(int UomId, string Name);

public sealed class CreateUomRequest
{
    [Required, StringLength(50)] public string Name { get; set; } = string.Empty;
}
