diff --git a/RMuseum/Models/Ganjoor/GanjoorCommentReaction.cs b/RMuseum/Models/Ganjoor/GanjoorCommentReaction.cs new file mode 100644 index 00000000..af7df590 --- /dev/null +++ b/RMuseum/Models/Ganjoor/GanjoorCommentReaction.cs @@ -0,0 +1,24 @@ +using RSecurityBackend.Models.Auth.Db; +using System; + +namespace RMuseum.Models.Ganjoor +{ + public class GanjoorCommentReaction + { + public int Id { get; set; } + + public int GanjoorCommentId { get; set; } + public virtual GanjoorComment GanjoorComment { get; set; } + + public Guid UserId { get; set; } + public virtual RAppUser User { get; set; } + + /// + /// +1 = Like + /// -1 = Dislike + /// + public short Value { get; set; } + + public DateTime ReactionDate { get; set; } + } +} diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index 1b8e2625..c8d2901b 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -8427,6 +8427,12 @@ reported by user + + + +1 = Like + -1 = Dislike + + Temporary Model contianing duplicated poems information