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

namespace MadRunFabric.Model
{
    /// <summary>
    /// 值班电话表
    /// </summary>
    public class Call_DutyPhone : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 值班电话
        /// </summary>
        public string zbdh { get; set; } = "";
        /// <summary>
        /// 组别
        /// </summary>
        public string groupname { get; set; } = "";
        /// <summary>
        /// 组别
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string groupid { get; set; } = "";
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; } = "";
        /// <summary>
        /// 最后呼入时间
        /// </summary>
        public DateTime callintime { get; set; } = DateTime.Now.ToLocalTime();
        /// <summary>
        /// 
        /// </summary>
        public string createby { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now.ToLocalTime();
        /// <summary>
        /// 是否删除：0未删除，1已删除
        /// </summary>
        public bool isdelete { get; set; } = false;
    }
}
