AdoRuleSchema.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. namespace Admin.NET.Plugin.AiDOP.Rule;
  2. /// <summary>
  3. /// 全模块规则定义。
  4. /// </summary>
  5. [SugarTable("ado_rule_schema", "全模块规则定义")]
  6. public sealed class AdoRuleSchema
  7. {
  8. [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnName = "module_code", Length = 32)]
  11. public string ModuleCode { get; set; } = string.Empty;
  12. [SugarColumn(ColumnName = "scenario_code", Length = 64)]
  13. public string ScenarioCode { get; set; } = string.Empty;
  14. [SugarColumn(ColumnName = "rule_code", Length = 64)]
  15. public string RuleCode { get; set; } = string.Empty;
  16. [SugarColumn(ColumnName = "rule_name", Length = 128)]
  17. public string RuleName { get; set; } = string.Empty;
  18. [SugarColumn(ColumnName = "value_type", Length = 32)]
  19. public string ValueType { get; set; } = string.Empty;
  20. [SugarColumn(ColumnName = "default_value", IsNullable = true)]
  21. public string? DefaultValue { get; set; }
  22. [SugarColumn(ColumnName = "required")]
  23. public int Required { get; set; }
  24. [SugarColumn(ColumnName = "validation_rule", IsNullable = true)]
  25. public string? ValidationRule { get; set; }
  26. [SugarColumn(ColumnName = "ui_control", Length = 32, IsNullable = true)]
  27. public string? UiControl { get; set; }
  28. [SugarColumn(ColumnName = "option_source", IsNullable = true)]
  29. public string? OptionSource { get; set; }
  30. [SugarColumn(ColumnName = "is_enabled")]
  31. public int IsEnabled { get; set; }
  32. [SugarColumn(ColumnName = "sort_no")]
  33. public int SortNo { get; set; }
  34. [SugarColumn(ColumnName = "remark", Length = 500, IsNullable = true)]
  35. public string? Remark { get; set; }
  36. [SugarColumn(ColumnName = "created_at")]
  37. public DateTime CreatedAt { get; set; }
  38. [SugarColumn(ColumnName = "created_by", Length = 64, IsNullable = true)]
  39. public string? CreatedBy { get; set; }
  40. [SugarColumn(ColumnName = "updated_at", IsNullable = true)]
  41. public DateTime? UpdatedAt { get; set; }
  42. [SugarColumn(ColumnName = "updated_by", Length = 64, IsNullable = true)]
  43. public string? UpdatedBy { get; set; }
  44. }