BoardGroup.cs 654 B

12345678910111213141516171819202122232425262728
  1. using System.ComponentModel.DataAnnotations;
  2. namespace Domain.Entities.Forum.Boards
  3. {
  4. public class BoardGroup
  5. {
  6. public virtual List<Board> Board { get; set; } = [];
  7. [Key]
  8. public int ID { get; set; }
  9. public string Code { get; set; } = default!;
  10. public string Name { get; set; } = default!;
  11. public short Order { get; set; } = 0;
  12. public short Boards { get; set; } = 0;
  13. public int Posts { get; set; } = 0;
  14. public int Comments { get; set; } = 0;
  15. public DateTime? UpdatedAt { get; set; }
  16. public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
  17. }
  18. }