Files
WMSlite/WmsLite.Api/Models/Zone.cs
T
zhougfandCursor fa1b286463 Add WmsLite monorepo with JWT auth, tenant context, and project READMEs.
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>
2026-05-24 14:17:47 +08:00

26 lines
952 B
C#

using System.Collections.Generic;
using SqlSugar;
namespace WmsLite.Api.Models;
[SugarTable("zone")]
public class Zone : BaseEntity
{
/// <summary>关联仓库编码。</summary>
[SugarColumn(ColumnName = "warehouse_code", Length = 64, IsNullable = false)]
public string WarehouseCode { get; set; } = string.Empty;
/// <summary>隶属库区。<c>Code</c> 为分区编码。</summary>
[SugarColumn(ColumnName = "area_code", Length = 64, IsNullable = false)]
public string AreaCode { get; set; } = string.Empty;
[SugarColumn(ColumnName = "code", Length = 64, IsNullable = false)]
public string Code { get; set; } = string.Empty;
[SugarColumn(ColumnName = "name", Length = 256, IsNullable = false)]
public string Name { get; set; } = string.Empty;
[SugarColumn(ColumnName = "attrs", IsJson = true, ColumnDataType = "jsonb", IsNullable = true)]
public Dictionary<string, object>? Attrs { get; set; }
}