AdoS0OrderReviewCycle.cs 1.9 KB

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