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

namespace Domain.Entities.Forum.Logs
{
    public class CommentLinkClickLog
    {
        [ForeignKey(nameof(CommentID))]
        public Comment Comment { get; set; } = null!;

        [ForeignKey(nameof(CommentLinkID))]
        public CommentLink CommentLink { get; set; } = null!;

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

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

        public int CommentID { get; set; }

        public int CommentLinkID { get; set; }

        public int? MemberID { get; set; }

        public string? IpAddress { get; set; }

        public string? UserAgent { get; set; }

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