using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Domain.Entities.Members;

namespace Domain.Entities.Forum.Boards
{
    public class BoardManager
    {
        [ForeignKey(nameof(BoardID))]
        public virtual Board Board { get; set; } = null!;

        [ForeignKey(nameof(MemberID))]
        public virtual Member Member { get; set; } = null!;

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

        public int BoardID { get; set; }

        public int MemberID { get; set; }

        public bool CanEdit { get; set; } = false;

        public bool CanDelete { get; set; } = false;

        public DateTime? UpdatedAt { get; set; }

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