using System.Text.Json.Serialization;
using TakeoutSaaS.Shared.Abstractions.Serialization;
namespace TakeoutSaaS.Application.App.Inventory.Dto;
///
/// 库存批次 DTO。
///
public sealed record InventoryBatchDto
{
///
/// 批次 ID。
///
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
public long Id { get; init; }
///
/// 门店 ID。
///
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
public long StoreId { get; init; }
///
/// SKU ID。
///
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
public long ProductSkuId { get; init; }
///
/// 批次号。
///
public string BatchNumber { get; init; } = string.Empty;
///
/// 生产日期。
///
public DateTime? ProductionDate { get; init; }
///
/// 过期日期。
///
public DateTime? ExpireDate { get; init; }
///
/// 入库数量。
///
public int Quantity { get; init; }
///
/// 剩余数量。
///
public int RemainingQuantity { get; init; }
}