using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WMS.BZModels.Models.SX { [Tenant("sx")] [SugarTable(nameof(BillTimeOutRecord) + "_{year}{month}{day}", "任务表")] [SplitTable(SplitType.Month)]//按年分表 (自带分表支持 年、季、月、周、日) public class BillTimeOutRecord : BaseEntityModel { [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)] public virtual long Id { get; set; } = IdFactory.NewId(); /// /// ContGrpBarCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ContGrpBarCode { get; set; } /// /// Reason /// [SugarColumn(ColumnDataType = "nvarchar", Length = 500, IsNullable = true)] public string Reason { get; set; } [SugarColumn(ColumnName = "AddTime", DefaultValue = "1900-1-1", IsNullable = false)] public DateTime AddTime { get; set; } = DateTime.Now; [SugarColumn(ColumnName = "EditTime", DefaultValue = "1900-1-1", IsNullable = false)] public DateTime EditTime { get; set; } = DateTime.Now; } }