using SqlSugar;
using QYZH.InteractiveMagazine.Models.Enum;

namespace QYZH.InteractiveMagazine.Models.Entity
{
    ///<summary>
    ///社区预置消息表
    ///</summary>
    [SugarTable("CommunityMessage")]
    public partial class CommunityMessage : SqlSugarBaseEntity
    {
        public CommunityMessage()
        {


        }

        /// <summary>
        /// Desc:期刊Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public long JournalId { get; set; }
        /// <summary>
        /// Desc:用户Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public long UserId { get; set; }


        /// <summary>
        /// Desc:用户实例期刊Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public long UserJournalId { get; set; }
        /// <summary>
        /// Desc:期刊任务Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public long JournalTaskId { get; set; }
        /// <summary>
        /// Desc:用户期刊任务回答Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public long JournalTaskAnswerId { get; set; }
        /// <summary>
        /// Desc:消息内容
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Content { get; set; }

        /// <summary>
        /// Desc:配图
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string ImageUrl { get; set; }

        /// <summary>
        /// Desc:排序
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int SortOrder { get; set; }

        /// <summary>
        /// Desc:是否启用
        /// Default:b'1'
        /// Nullable:False
        /// </summary>           
        public bool IsActive { get; set; }

        /// <summary>
        /// Desc:消息类型: Article, Quote, Announcement
        /// Default:Article
        /// Nullable:False
        /// </summary>           
        public MessageTypeEnum Type { get; set; }

        /// <summary>
        /// Desc:点赞数
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int LikeCount { get; set; }
        /// <summary>
        /// Desc:是否是精选消息
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int IsFeatured { get; set; }
    }
}
