BoardGroup.cs 596 B

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