AdoS0OrderReviewCycle.cs 1.8 KB

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