namespace Admin.NET.Plugin.AiDOP.Rule; /// /// 全模块规则定义。 /// [SugarTable("ado_rule_schema", "全模块规则定义")] public sealed class AdoRuleSchema { [SugarColumn(ColumnName = "id", IsPrimaryKey = true)] public long Id { get; set; } [SugarColumn(ColumnName = "module_code", Length = 32)] public string ModuleCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "scenario_code", Length = 64)] public string ScenarioCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "rule_code", Length = 64)] public string RuleCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "rule_name", Length = 128)] public string RuleName { get; set; } = string.Empty; [SugarColumn(ColumnName = "value_type", Length = 32)] public string ValueType { get; set; } = string.Empty; [SugarColumn(ColumnName = "default_value", IsNullable = true)] public string? DefaultValue { get; set; } [SugarColumn(ColumnName = "required")] public int Required { get; set; } [SugarColumn(ColumnName = "validation_rule", IsNullable = true)] public string? ValidationRule { get; set; } [SugarColumn(ColumnName = "ui_control", Length = 32, IsNullable = true)] public string? UiControl { get; set; } [SugarColumn(ColumnName = "option_source", IsNullable = true)] public string? OptionSource { get; set; } [SugarColumn(ColumnName = "is_enabled")] public int IsEnabled { get; set; } [SugarColumn(ColumnName = "sort_no")] public int SortNo { get; set; } [SugarColumn(ColumnName = "remark", Length = 500, IsNullable = true)] public string? Remark { get; set; } [SugarColumn(ColumnName = "created_at")] public DateTime CreatedAt { get; set; } [SugarColumn(ColumnName = "created_by", Length = 64, IsNullable = true)] public string? CreatedBy { get; set; } [SugarColumn(ColumnName = "updated_at", IsNullable = true)] public DateTime? UpdatedAt { get; set; } [SugarColumn(ColumnName = "updated_by", Length = 64, IsNullable = true)] public string? UpdatedBy { get; set; } }