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>
21 lines
673 B
C#
21 lines
673 B
C#
using System.Collections.Generic;
|
|
using SqlSugar;
|
|
|
|
namespace WmsLite.Api.Models;
|
|
|
|
[SugarTable("container")]
|
|
public class Container : BaseEntity
|
|
{
|
|
[SugarColumn(ColumnName = "code", Length = 64, IsNullable = false)]
|
|
public string Code { get; set; } = string.Empty;
|
|
|
|
[SugarColumn(ColumnName = "name", Length = 256, IsNullable = true)]
|
|
public string? Name { get; set; }
|
|
|
|
[SugarColumn(ColumnName = "container_type", Length = 64, IsNullable = true)]
|
|
public string? ContainerType { get; set; }
|
|
|
|
[SugarColumn(ColumnName = "attrs", IsJson = true, ColumnDataType = "jsonb", IsNullable = true)]
|
|
public Dictionary<string, object>? Attrs { get; set; }
|
|
}
|