AdoS0KittingExcludeRule.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
  2. /// <summary>
  3. /// 工单齐套检查排除规则(一个租户一条配置)
  4. /// </summary>
  5. [SugarTable("ado_kitting_exclude_rule", "工单齐套检查排除规则")]
  6. public class AdoS0KittingExcludeRule : ITenantIdFilter
  7. {
  8. [SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true, ColumnDataType = "bigint")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnName = "tenant_id", ColumnDescription = "租户ID", ColumnDataType = "bigint")]
  11. public long? TenantId { get; set; }
  12. [SugarColumn(ColumnName = "excluded_item_types", ColumnDescription = "排除的物料类型(JSON数组)", ColumnDataType = "text", IsNullable = true)]
  13. public string? ExcludedItemTypes { get; set; }
  14. [SugarColumn(ColumnName = "excluded_owner_apps", ColumnDescription = "排除的物料属性(JSON数组)", ColumnDataType = "text", IsNullable = true)]
  15. public string? ExcludedOwnerApps { get; set; }
  16. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  17. public bool IsActive { get; set; } = true;
  18. [SugarColumn(ColumnName = "remark", ColumnDescription = "备注", Length = 500, IsNullable = true)]
  19. public string? Remark { get; set; }
  20. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  21. public DateTime CreateTime { get; set; } = DateTime.Now;
  22. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  23. public DateTime? UpdateTime { get; set; }
  24. [SugarColumn(ColumnName = "CreateUser", ColumnDescription = "创建人", IsNullable = true, ColumnDataType = "bigint")]
  25. public long? CreateUser { get; set; }
  26. [SugarColumn(ColumnName = "UpdateUser", ColumnDescription = "更新人", IsNullable = true, ColumnDataType = "bigint")]
  27. public long? UpdateUser { get; set; }
  28. }