using SqlSugar; using System; using System.ComponentModel.DataAnnotations.Schema; namespace WCS.Entity { /// /// 任务流转表 /// [SugarTable(nameof(WCS_TaskDtl) + "_{year}{month}{day}", "任务流转表")] [SplitTable(SplitType.Week)]//按年分表 (自带分表支持 年、季、月、周、日) public class WCS_TaskDtl : OBJ { /// /// ID /// [SugarColumn(IsPrimaryKey = true, ColumnDescription = "ID")] [Column(Order = 0)] public long ID { get; set; } /// /// 父级任务号 /// [SugarColumn(ColumnDescription = "父级任务号")] public int ParentTaskCode { get; set; } /// /// 当前位置 /// [SugarColumn(ColumnDescription = "当前位置")] public string CurPoint { get; set; } /// /// 下一个地址 /// [SugarColumn(ColumnDescription = "下一个地址")] public string NextPoint { get; set; } /// /// 描述 /// [SugarColumn(ColumnDescription = "描述")] public string Desc { get; set; } /// /// 是否可用 /// [SugarColumn(ColumnDescription = "是否可用")] public bool Enabled { get; set; } = true; /// /// 创建用户 /// 仅记录用户ID /// [SugarColumn(ColumnDescription = "创建用户", Length = 50)] public string AddWho { get; set; } /// /// 创建时间 /// 新增数据时自动获取服务器时间 /// [SugarColumn(ColumnDescription = "创建时间", InsertServerTime = true)] public DateTime AddTime { get; set; } } }