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 CommentFileDownLog
    {
        [ForeignKey(nameof(CommentID))]
        public Comment Comment { get; set; } = null!;

        [ForeignKey(nameof(CommentFileID))]
        public CommentFile CommentFile { 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 CommentFileID { get; set; }

        public int? MemberID { get; set; }

        public string? IpAddress { get; set; }

        public string? UserAgent { get; set; }

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