AdoS0OrderPriorityRule.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
  2. /// <summary>
  3. /// 订单优先规则(S0 Sales / sales_order_priority_rule)
  4. /// </summary>
  5. [SugarTable("ado_s0_sales_order_priority_rule", "S0 订单优先规则")]
  6. public class AdoS0OrderPriorityRule
  7. {
  8. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")]
  11. public long CompanyRefId { get; set; }
  12. [SugarColumn(ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")]
  13. public long FactoryRefId { get; set; }
  14. [SugarColumn(ColumnDescription = "规则编码", Length = 100)]
  15. public string Code { get; set; } = string.Empty;
  16. [SugarColumn(ColumnDescription = "规则名称", Length = 200)]
  17. public string Name { get; set; } = string.Empty;
  18. [SugarColumn(ColumnDescription = "优先级别")]
  19. public int PriorityLevel { get; set; }
  20. [SugarColumn(ColumnDescription = "排序方向", Length = 10)]
  21. public string SortDirection { get; set; } = "ASC";
  22. [SugarColumn(ColumnDescription = "来源实体", Length = 200, IsNullable = true)]
  23. public string? SourceEntity { get; set; }
  24. [SugarColumn(ColumnDescription = "来源字段", Length = 200, IsNullable = true)]
  25. public string? SourceField { get; set; }
  26. [SugarColumn(ColumnDescription = "来源字段类型", Length = 100, IsNullable = true)]
  27. public string? SourceFieldType { get; set; }
  28. [SugarColumn(ColumnDescription = "来源关联字段", Length = 200, IsNullable = true)]
  29. public string? SourceLinkField { get; set; }
  30. [SugarColumn(ColumnDescription = "工单字段", Length = 200, IsNullable = true)]
  31. public string? WorkOrderField { get; set; }
  32. [SugarColumn(ColumnDescription = "工单字段类型", Length = 100, IsNullable = true)]
  33. public string? WorkOrderFieldType { get; set; }
  34. [SugarColumn(ColumnDescription = "工单关联字段", Length = 200, IsNullable = true)]
  35. public string? WorkOrderLinkField { get; set; }
  36. [SugarColumn(ColumnDescription = "规则表达式", Length = 1000, IsNullable = true)]
  37. public string? RuleExpr { get; set; }
  38. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  39. public string? Remark { get; set; }
  40. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  41. public bool IsEnabled { get; set; } = true;
  42. [SugarColumn(ColumnDescription = "创建时间")]
  43. public DateTime CreatedAt { get; set; } = DateTime.Now;
  44. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  45. public DateTime? UpdatedAt { get; set; }
  46. }