AdoS0OrderScheduleCycle.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Manufacturing;
  2. /// <summary>
  3. /// 订单排程周期标准(建议工厂 + 订单类型维度)。
  4. /// </summary>
  5. [SugarTable("S0OrderScheduleCycle", "订单排程周期标准")]
  6. [SugarIndex("uk_S0OrderScheduleCycle_factory_ordertype",
  7. nameof(FactoryRefId), OrderByType.Asc,
  8. nameof(OrderType), OrderByType.Asc,
  9. IsUnique = true)]
  10. public class AdoS0OrderScheduleCycle
  11. {
  12. [SugarColumn(ColumnName = "rec_id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  13. public long Id { get; set; }
  14. [SugarColumn(ColumnName = "company_ref_id", ColumnDataType = "bigint")]
  15. public long CompanyRefId { get; set; }
  16. [SugarColumn(ColumnName = "factory_ref_id", ColumnDataType = "bigint")]
  17. public long FactoryRefId { get; set; }
  18. [SugarColumn(ColumnName = "domain_code", Length = 50, IsNullable = true)]
  19. public string? DomainCode { get; set; }
  20. /// <summary>订单类型;空字符串表示默认/不限。</summary>
  21. [SugarColumn(ColumnName = "order_type", Length = 100)]
  22. public string OrderType { get; set; } = string.Empty;
  23. [SugarColumn(ColumnName = "std_hours")]
  24. public int StdHours { get; set; }
  25. [SugarColumn(ColumnName = "remarks", Length = 500, IsNullable = true)]
  26. public string? Remarks { get; set; }
  27. [SugarColumn(ColumnName = "is_active", ColumnDataType = "boolean")]
  28. public bool IsActive { get; set; } = true;
  29. [SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true)]
  30. public string? CreateUser { get; set; }
  31. [SugarColumn(ColumnName = "create_time")]
  32. public DateTime CreateTime { get; set; } = DateTime.Now;
  33. [SugarColumn(ColumnName = "update_user", Length = 100, IsNullable = true)]
  34. public string? UpdateUser { get; set; }
  35. [SugarColumn(ColumnName = "update_time", IsNullable = true)]
  36. public DateTime? UpdateTime { get; set; }
  37. }