using GxPress.EnumConst;
using Datory.Annotations;

namespace GxPress.Entity
{
    /// <summary>
    /// 通知
    /// </summary>
    [DataTable("tede_notice")]
    public class Notice : Datory.Entity
    {
        /// <summary>
        /// 标题
        /// </summary>
        [DataColumn]
        public string Title { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [DataColumn]
        public int UserId { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [DataColumn]
        public string Content { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [DataColumn]
        public string HtmlContent { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [DataColumn]
        public string UserName { get; set; }

        /// <summary>
        /// 类型 (1 发送 2 草稿)
        /// </summary>
        [DataColumn]
        public NoticeTypeConst NoticeType { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [DataColumn]
        public bool IsDelete { get; set; }



        /// <summary>
        /// 是否置顶
        /// </summary>
        [DataColumn]
        public bool IsTop { get; set; }

        /// <summary>
        /// 来源Id
        /// </summary>
        [DataColumn]
        public int SourceId { get; set; }

    }
}
