Implement API security baseline (sys_user, JWT, audit fields, transactions, unique constraints) and Web real login with 401 handling. Document setup and development workflows in root, WmsLite.Api, and WmsLite.Web README files. Co-authored-by: Cursor <cursoragent@cursor.com>
52 lines
2.0 KiB
C#
52 lines
2.0 KiB
C#
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<string, object>? Attrs { get; set; }
|
|
}
|