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
{
    public class Schedule_Reminder : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 提醒开始时间
        /// </summary>
        public DateTime srdate { get; set; }
        /// <summary>
        /// 提醒结束时间
        /// </summary>
        public DateTime enddate { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string createuser { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createtime { get; set; }

        /// <summary>
        /// 是否已读(0未读，1已读)
        /// </summary>
        public int isread { get; set; }

        /// <summary>
        /// 提醒内容
        /// </summary>
        public string  content { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        public int isdelete { get; set; } = 0;

        /// <summary>
        /// 删除人
        /// </summary>
        public string deleteuser { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? deletetime { get; set; }
    }
}
