BillTimeOutRecord.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace WMS.BZModels.Models.SX
  8. {
  9. [Tenant("sx")]
  10. [SugarTable(nameof(BillTimeOutRecord) + "_{year}{month}{day}", "任务表")]
  11. [SplitTable(SplitType.Month)]//按年分表 (自带分表支持 年、季、月、周、日)
  12. public class BillTimeOutRecord : BaseEntityModel
  13. {
  14. [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
  15. public virtual long Id { get; set; } = IdFactory.NewId();
  16. /// <summary>
  17. /// ContGrpBarCode
  18. /// </summary>
  19. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  20. public string ContGrpBarCode { get; set; }
  21. /// <summary>
  22. /// Reason
  23. /// </summary>
  24. [SugarColumn(ColumnDataType = "nvarchar", Length = 500, IsNullable = true)]
  25. public string Reason { get; set; }
  26. [SugarColumn(ColumnName = "AddTime", DefaultValue = "1900-1-1", IsNullable = false)]
  27. public DateTime AddTime { get; set; } = DateTime.Now;
  28. [SugarColumn(ColumnName = "EditTime", DefaultValue = "1900-1-1", IsNullable = false)]
  29. public DateTime EditTime { get; set; } = DateTime.Now;
  30. }
  31. }