From 13ba351b1bcdcea3969518b5d228701536d2f1aa Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Thu, 4 Feb 2021 12:49:54 +0330 Subject: [PATCH] #65 adding GanjoorComment model --- RMuseum/Models/Ganjoor/GanjoorComment.cs | 82 ++++++++++++++++++++++++ RMuseum/RMuseum.xml | 75 ++++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 RMuseum/Models/Ganjoor/GanjoorComment.cs diff --git a/RMuseum/Models/Ganjoor/GanjoorComment.cs b/RMuseum/Models/Ganjoor/GanjoorComment.cs new file mode 100644 index 00000000..216ec0cc --- /dev/null +++ b/RMuseum/Models/Ganjoor/GanjoorComment.cs @@ -0,0 +1,82 @@ +using RMuseum.Models.Artifact; +using RSecurityBackend.Models.Auth.Db; +using System; + +namespace RMuseum.Models.Ganjoor +{ + /// + /// Ganjoor Comment + /// + public class GanjoorComment + { + /// + /// Id + /// + public int Id { get; set; } + + /// + /// Ganjoor Poem Id + /// + public int GanjoorPoemId { get; set; } + + /// + /// Ganjoor Poem Id + /// + public GanjoorPoem GanjoorPoem { get; set; } + + /// + /// user id + /// + public Guid? UserId { get; set; } + + /// + /// user + /// + public virtual RAppUser User { get; set; } + + /// + /// author name (MySql imported field) + /// + public string AuthorName { get; set; } + + /// + /// author email (MySql imported field) + /// + public string AuthorEmail { get; set; } + + /// + /// author url (MySql imported field) + /// + public string AuthorUrl { get; set; } + + /// + /// author IP address (MySql imported field) + /// + public string AutherIpAddress { get; set; } + + /// + /// comment date + /// + public DateTime CommentDate { get; set; } + + /// + /// comment + /// + public string HtmlComment { get; set; } + + /// + /// In Reply to Other Comment + /// + public virtual GanjoorComment ReferenceComment { get; set; } + + /// + /// Reference Comment Id + /// + public Guid? ReferenceCommentId { get; set; } + + /// + /// publish status + /// + public PublishStatus Status { get; set; } + } +} diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index 2f5fa190..82683f69 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -3529,6 +3529,81 @@ sample: /hafez/ghazal + + + Ganjoor Comment + + + + + Id + + + + + Ganjoor Poem Id + + + + + Ganjoor Poem Id + + + + + user id + + + + + user + + + + + author name (MySql imported field) + + + + + author email (MySql imported field) + + + + + author url (MySql imported field) + + + + + author IP address (MySql imported field) + + + + + comment date + + + + + comment + + + + + In Reply to Other Comment + + + + + Reference Comment Id + + + + + publish status + + Poem prosodic Metre