using System.Collections.Generic; using SqlSugar; namespace WmsLite.Api.Models; [SugarTable("material")] public class Material : BaseEntity { [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 = "spec", Length = 512, IsNullable = true)] public string? Spec { 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; } }