| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using Domain.Entities.Forum.Boards;
- using Domain.Entities.Forum.Posts;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace Domain.Entities.Forum.Comments
- {
- public class CommentLink
- {
- [ForeignKey(nameof(BoardID))]
- public virtual Board Board { get; set; } = null!;
- [ForeignKey(nameof(PostID))]
- public virtual Post Post { get; set; } = null!;
- [ForeignKey(nameof(CommentID))]
- public virtual Comment Comment { get; set; } = null!;
- [Key]
- public int ID { get; set; }
- public int BoardID { get; set; }
- public int PostID { get; set; }
- public int CommentID { get; set; }
- public Guid UUID { get; set; }
- public string Url { get; set; } = default!;
- public int Clicks { get; set; } = 0;
- public bool IsDisabled { get; set; } = false;
- public DateTime? DisabledAt { get; set; }
- public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
- }
- }
|