using System.Collections.Generic; using SqlSugar; using WmsLite.Api.Enums; namespace WmsLite.Api.Models; [SugarTable("transfer_order_line")] public class TransferOrderLine : BaseEntity { [SugarColumn(ColumnName = "order_id", IsNullable = false)] public long OrderId { get; set; } [SugarColumn(ColumnName = "line_no", IsNullable = false)] public int LineNo { get; set; } [SugarColumn(ColumnName = "inventory_kind", IsNullable = false)] public InventoryKind InventoryKind { get; set; } = InventoryKind.Material; [SugarColumn(ColumnName = "material_code", Length = 64, IsNullable = true)] public string? MaterialCode { get; set; } [SugarColumn(ColumnName = "container_code", Length = 64, IsNullable = true)] public string? ContainerCode { get; set; } [SugarColumn(ColumnName = "from_warehouse_code", Length = 64, IsNullable = false)] public string FromWarehouseCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "from_area_code", Length = 64, IsNullable = false)] public string FromAreaCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "from_location_code", Length = 64, IsNullable = false)] public string FromLocationCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "to_warehouse_code", Length = 64, IsNullable = false)] public string ToWarehouseCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "to_area_code", Length = 64, IsNullable = false)] public string ToAreaCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "to_location_code", Length = 64, IsNullable = false)] public string ToLocationCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "qty", IsNullable = false)] public decimal Qty { get; set; } [SugarColumn(ColumnName = "unit", Length = 32, IsNullable = false)] public string Unit { get; set; } = string.Empty; [SugarColumn(ColumnName = "attrs", IsJson = true, ColumnDataType = "jsonb", IsNullable = true)] public Dictionary? Attrs { get; set; } }