using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model.MessageApi
{
    /// <summary>
    /// 公告
    /// </summary>
    [BsonIgnoreExtraElements]
    public class Sys_Msg_NoticeInfo : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 公告标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 公告内容
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 权限用户code -------------------------------------------------------------
        /// </summary>
        public string usercode { get; set; }
        /// <summary>
        /// 权限角色code
        /// </summary>
        public string rolecode { get; set; }
        /// <summary>
        /// 提醒开始时间
        /// </summary>
        public DateTime startdate { get; set; }
        /// <summary>
        /// 提醒结束时间
        /// </summary>
        public DateTime enddate { get; set; }
        /// <summary>
        /// 添加时间 -------------------------------------------------------------
        /// </summary>
        public DateTime? createon { get; set; } = DateTime.Now;
        /// <summary>
        /// 添加人Id
        /// </summary>
        public string createby { get; set; }
        /// <summary>
        /// 修改人Id -------------------------------------------------------------
        /// </summary>
        public string modifyby { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? modifydate { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除 -------------------------------------------------------------
        /// </summary>
        public int isdelete { get; set; } = 0;
        /// <summary>
        /// 删除人
        /// </summary>
        public string deleteuser { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? deletetime { get; set; }

        /// <summary>
        /// 是否已读
        /// </summary>
        public int isread { get; set; } = 0;
    }
}
