AdoRuleProfile.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. namespace Admin.NET.Plugin.AiDOP.Rule;
  2. /// <summary>
  3. /// 全模块规则配置方案。
  4. /// </summary>
  5. [SugarTable("ado_rule_profile", "全模块规则配置方案")]
  6. public sealed class AdoRuleProfile
  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 = "profile_code", Length = 64)]
  15. public string ProfileCode { get; set; } = string.Empty;
  16. [SugarColumn(ColumnName = "profile_name", Length = 128)]
  17. public string ProfileName { get; set; } = string.Empty;
  18. [SugarColumn(ColumnName = "tenant_id")]
  19. public long TenantId { get; set; }
  20. [SugarColumn(ColumnName = "factory_id")]
  21. public long FactoryId { get; set; }
  22. [SugarColumn(ColumnName = "version")]
  23. public int Version { get; set; }
  24. [SugarColumn(ColumnName = "is_enabled")]
  25. public int IsEnabled { get; set; }
  26. [SugarColumn(ColumnName = "effective_from", IsNullable = true)]
  27. public DateTime? EffectiveFrom { get; set; }
  28. [SugarColumn(ColumnName = "effective_to", IsNullable = true)]
  29. public DateTime? EffectiveTo { get; set; }
  30. [SugarColumn(ColumnName = "remark", Length = 500, IsNullable = true)]
  31. public string? Remark { get; set; }
  32. [SugarColumn(ColumnName = "created_at")]
  33. public DateTime CreatedAt { get; set; }
  34. [SugarColumn(ColumnName = "created_by", Length = 64, IsNullable = true)]
  35. public string? CreatedBy { get; set; }
  36. [SugarColumn(ColumnName = "updated_at", IsNullable = true)]
  37. public DateTime? UpdatedAt { get; set; }
  38. [SugarColumn(ColumnName = "updated_by", Length = 64, IsNullable = true)]
  39. public string? UpdatedBy { get; set; }
  40. }