Files
TakeoutSaaS.AdminApi/src/Domain/TakeoutSaaS.Domain/Inventory/Entities/InventoryBatch.cs
2026-02-04 10:46:32 +08:00

52 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.ComponentModel.DataAnnotations;
using TakeoutSaaS.Shared.Abstractions.Entities;
namespace TakeoutSaaS.Domain.Inventory.Entities;
/// <summary>
/// SKU 批次信息。
/// </summary>
public sealed class InventoryBatch : MultiTenantEntityBase
{
/// <summary>
/// 门店标识。
/// </summary>
public long StoreId { get; set; }
/// <summary>
/// SKU 标识。
/// </summary>
public long ProductSkuId { get; set; }
/// <summary>
/// 批次编号。
/// </summary>
public string BatchNumber { get; set; } = string.Empty;
/// <summary>
/// 生产日期。
/// </summary>
public DateTime? ProductionDate { get; set; }
/// <summary>
/// 过期日期。
/// </summary>
public DateTime? ExpireDate { get; set; }
/// <summary>
/// 入库数量。
/// </summary>
public int Quantity { get; set; }
/// <summary>
/// 剩余数量。
/// </summary>
public int RemainingQuantity { get; set; }
/// <summary>
/// 并发控制字段(映射到 PostgreSQL xmin
/// </summary>
public uint RowVersion { get; set; }
}