using System.ComponentModel.DataAnnotations;

namespace Domain.Entities.Forum.Boards
{
    public class BoardGroup
    {
        public virtual List<Board> Board { get; set; } = [];

        [Key]
        public int ID { get; set; }

        public string Code { get; set; } = default!;

        public string Name { get; set; } = default!;

        public short Order { get; set; } = 0;

        public short Boards { get; set; } = 0;

        public int Posts { get; set; } = 0;

        public int Comments { get; set; } = 0;

        public DateTime? UpdatedAt { get; set; }

        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    }
}