namespace Admin.NET.Plugin.AiDOP.Rule; /// /// 全模块规则配置方案。 /// [SugarTable("ado_rule_profile", "全模块规则配置方案")] public sealed class AdoRuleProfile { [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 = "profile_code", Length = 64)] public string ProfileCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "profile_name", Length = 128)] public string ProfileName { get; set; } = string.Empty; [SugarColumn(ColumnName = "tenant_id")] public long TenantId { get; set; } [SugarColumn(ColumnName = "factory_id")] public long FactoryId { get; set; } [SugarColumn(ColumnName = "version")] public int Version { get; set; } [SugarColumn(ColumnName = "is_enabled")] public int IsEnabled { get; set; } [SugarColumn(ColumnName = "effective_from", IsNullable = true)] public DateTime? EffectiveFrom { get; set; } [SugarColumn(ColumnName = "effective_to", IsNullable = true)] public DateTime? EffectiveTo { 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; } }