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

        /// <summary>
        /// 通话标志ID
        /// </summary>
        public string callid { get; set; } = "";

        /// <summary>
        /// 电话号码
        /// </summary>
        public string telphone { get; set; } = "";

        /// <summary>
        /// 黑名单类型(0：暂时，1：永久，2：已取消)
        /// </summary>
        public int blacktype { get; set; } = 0;

        /// <summary>
        /// 设置时间
        /// </summary>
        public DateTime settime { get; set; } = DateTime.Now.ToLocalTime();

        /// <summary>
        /// 解除时间
        /// </summary>
        public DateTime removetime { get; set; } = DateTime.Now.ToLocalTime();

        /// <summary>
        /// 说明
        /// </summary>
        public string describe { get; set; } = "";
        
        /// <summary>
        /// 拦截次数
        /// </summary>
        public int interceptnum { get; set; } = 0;

        /// <summary>
        /// 添加工号
        /// </summary>
        public string createby { get; set; } = "";

        /// <summary>
        /// 纳秒
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now.ToLocalTime();

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool isdelete { get; set; } = false;

    }
}
