using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models.Outbound
{
///
/// 出库批次表
///
[SugarTable("Dt_OutboundBatch")]
public class Dt_OutboundBatch : BaseEntity
{
///
/// 主键ID(自增)
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)] //
public int Id { get; set; }
///
/// 批次号
///
[SugarColumn(ColumnName = "BatchNo", Length = 50, IsNullable = false)]
public string BatchNo { get; set; }
///
/// 订单号
///
[SugarColumn(ColumnName = "OrderNo", Length = 50, IsNullable = false)]
public string OrderNo { get; set; }
///
/// 订单明细ID
///
[SugarColumn(ColumnName = "OrderDetailId", IsNullable = false)]
public int OrderDetailId { get; set; }
///
/// 批次分配数量
///
[SugarColumn(ColumnName = "BatchQuantity", IsNullable = false)] // 精度18,小数位2
public decimal BatchQuantity { get; set; }
///
/// 已完成数量(默认0)
///
[SugarColumn(ColumnName = "CompletedQuantity", DefaultValue = "0")] // 默认值0
public decimal CompletedQuantity { get; set; } = 0; // 代码层默认值,与数据库默认值一致
///
/// 批次状态(默认0)
///
[SugarColumn(ColumnName = "BatchStatus", DefaultValue = "0")]
public int BatchStatus { get; set; } = 0;
///
/// 操作人
///
[SugarColumn(ColumnName = "Operator", Length = 50, IsNullable = true)] // 可空
public string Operator { get; set; }
}
}