AdoS8RolePermissionConfig.cs 1.1 KB

1234567891011121314151617181920212223242526272829
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S8;
  2. /// <summary>
  3. /// S8 角色权限配置(与系统角色表解耦的配置行;持久化对象)。
  4. /// </summary>
  5. [SugarTable("ado_s8_role_permission_config", "S8 角色权限配置")]
  6. public class AdoS8RolePermissionConfig
  7. {
  8. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnName = "tenant_id", ColumnDataType = "bigint")]
  11. public long TenantId { get; set; }
  12. [SugarColumn(ColumnName = "factory_id", ColumnDataType = "bigint")]
  13. public long FactoryId { get; set; }
  14. [SugarColumn(ColumnName = "role_code", Length = 64)]
  15. public string RoleCode { get; set; } = string.Empty;
  16. [SugarColumn(ColumnName = "permission_codes", Length = 4000, IsNullable = true)]
  17. public string? PermissionCodes { get; set; }
  18. [SugarColumn(ColumnName = "created_at")]
  19. public DateTime CreatedAt { get; set; } = DateTime.Now;
  20. [SugarColumn(ColumnName = "updated_at", IsNullable = true)]
  21. public DateTime? UpdatedAt { get; set; }
  22. }