AdoS0CategoryLeadTime.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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(TenantId), OrderByType.Asc,
  8. nameof(FactoryRefId), OrderByType.Asc,
  9. nameof(CategoryCode), OrderByType.Asc,
  10. nameof(OwnerApplication), OrderByType.Asc,
  11. IsUnique = true)]
  12. public class AdoS0CategoryLeadTime : ITenantIdFilter
  13. {
  14. [SugarColumn(ColumnName = "rec_id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  15. public long Id { get; set; }
  16. [SugarColumn(ColumnName = "company_ref_id", ColumnDataType = "bigint")]
  17. public long CompanyRefId { get; set; }
  18. [SugarColumn(ColumnName = "factory_ref_id", ColumnDataType = "bigint")]
  19. public long FactoryRefId { get; set; }
  20. [SugarColumn(ColumnName = "domain_code", Length = 50, IsNullable = true)]
  21. public string? DomainCode { get; set; }
  22. [SugarColumn(ColumnName = "category_code", Length = 100)]
  23. public string CategoryCode { get; set; } = string.Empty;
  24. [SugarColumn(ColumnName = "category_name", Length = 200, IsNullable = true)]
  25. public string? CategoryName { get; set; }
  26. [SugarColumn(ColumnName = "owner_application", Length = 100)]
  27. public string OwnerApplication { get; set; } = string.Empty;
  28. [SugarColumn(ColumnName = "lead_time_days")]
  29. public int LeadTimeDays { get; set; }
  30. [SugarColumn(ColumnName = "remarks", Length = 500, IsNullable = true)]
  31. public string? Remarks { get; set; }
  32. [SugarColumn(ColumnName = "is_active", ColumnDataType = "boolean")]
  33. public bool IsActive { get; set; } = true;
  34. [SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true)]
  35. public string? CreateUser { get; set; }
  36. [SugarColumn(ColumnName = "create_time")]
  37. public DateTime CreateTime { get; set; } = DateTime.Now;
  38. [SugarColumn(ColumnName = "update_user", Length = 100, IsNullable = true)]
  39. public string? UpdateUser { get; set; }
  40. [SugarColumn(ColumnName = "update_time", IsNullable = true)]
  41. public DateTime? UpdateTime { get; set; }
  42. [SugarColumn(ColumnName = "tenant_id", IsNullable = true)]
  43. public long? TenantId { get; set; }
  44. }