using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SqlSugar; using WIDESEAWCS_Core.DB.Models; namespace WIDESEAWCS_Model.Models { [SugarTable] public class Dt_Container : BaseEntity { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int Id { get; set; } /// /// 编号 /// [SugarColumn(IsNullable = false, Length = 100, ColumnDescription = "编码")] public string ContainerCode { get; set; } /// /// 编号 /// [SugarColumn(IsNullable = false, ColumnDescription = "编号")] public int ContainerNo { get; set; } /// /// 类型 /// [SugarColumn(IsNullable = false, ColumnDescription = "类型")] public int ContainerType { get; set; } /// /// 状态 /// [SugarColumn(IsNullable = false, ColumnDescription = "状态")] public int ContainerStatus { get; set; } /// /// 长 /// [SugarColumn(IsNullable = false, ColumnDescription = "长")] public int ContainerLength { get; set; } /// /// 宽 /// [SugarColumn(IsNullable = false, ColumnDescription = "宽")] public int ContainerWidth { get; set; } /// /// 高 /// [SugarColumn(IsNullable = false, ColumnDescription = "高")] public int ContainerHeight { get; set; } /// /// 设备编号 /// [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "设备编号")] public string DeviceCode { get; set; } /// /// 是否启用 /// [SugarColumn(IsNullable = false, ColumnDescription = "是否启用")] public bool ContainerEnable { get; set; } /// /// 排序 /// [SugarColumn(IsNullable = false, ColumnDescription = "排序")] public int ContainerSort { get; set; } /// /// 备注 /// [SugarColumn(IsNullable = true, ColumnDescription = "备注")] public string ContainerRemark { get; set; } [Navigate(NavigateType.OneToMany, nameof(Dt_ContainerItem.ContainerId), nameof(Id))] public List Items { get; set; } } }