AdoS0CategoryLeadTime.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Supply;
  2. /// <summary>
  3. /// 品类采购前置期主数据(品类 + 物料属性维度)。
  4. /// </summary>
  5. [SugarTable("S0CategoryLeadTime", "品类采购前置期主数据")]
  6. [SugarIndex("uk_S0CategoryLeadTime_factory_category_owner",
  7. nameof(FactoryRefId), OrderByType.Asc,
  8. nameof(CategoryCode), OrderByType.Asc,
  9. nameof(OwnerApplication), OrderByType.Asc,
  10. IsUnique = true)]
  11. public class AdoS0CategoryLeadTime
  12. {
  13. [SugarColumn(ColumnName = "rec_id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  14. public long Id { get; set; }
  15. [SugarColumn(ColumnName = "company_ref_id", ColumnDataType = "bigint")]
  16. public long CompanyRefId { get; set; }
  17. [SugarColumn(ColumnName = "factory_ref_id", ColumnDataType = "bigint")]
  18. public long FactoryRefId { get; set; }
  19. [SugarColumn(ColumnName = "domain_code", Length = 50, IsNullable = true)]
  20. public string? DomainCode { get; set; }
  21. [SugarColumn(ColumnName = "category_code", Length = 100)]
  22. public string CategoryCode { get; set; } = string.Empty;
  23. [SugarColumn(ColumnName = "category_name", Length = 200, IsNullable = true)]
  24. public string? CategoryName { get; set; }
  25. [SugarColumn(ColumnName = "owner_application", Length = 100)]
  26. public string OwnerApplication { get; set; } = string.Empty;
  27. [SugarColumn(ColumnName = "lead_time_days")]
  28. public int LeadTimeDays { get; set; }
  29. [SugarColumn(ColumnName = "remarks", Length = 500, IsNullable = true)]
  30. public string? Remarks { get; set; }
  31. [SugarColumn(ColumnName = "is_active", ColumnDataType = "boolean")]
  32. public bool IsActive { get; set; } = true;
  33. [SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true)]
  34. public string? CreateUser { get; set; }
  35. [SugarColumn(ColumnName = "create_time")]
  36. public DateTime CreateTime { get; set; } = DateTime.Now;
  37. [SugarColumn(ColumnName = "update_user", Length = 100, IsNullable = true)]
  38. public string? UpdateUser { get; set; }
  39. [SugarColumn(ColumnName = "update_time", IsNullable = true)]
  40. public DateTime? UpdateTime { get; set; }
  41. }