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

namespace MadRunFabric.Model.CallCenterApi
{
    /// <summary>
    /// 外呼号码记录
    /// </summary>
    public class Call_OutTaskTelNumRecord : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }


        public string taskid { get; set; }
        public int? cusid { get; set; }
        public string cusname { get; set; }
        public string cusaddr { get; set; }
        public string phone { get; set; }
        public string phoneby { get; set; }
        public int? fpstate { get; set; }
        public int? yjstate { get; set; }
        public int? hcstate { get; set; }
        /// <summary>
        /// 分配坐席id
        /// </summary>
        public string  userid { get; set; }
        /// <summary>
        /// 分配坐席名字
        /// </summary>
        public string username { get; set; }
        public DateTime? createtime { get; set; } = DateTime.Now;
        public string askinfo { get; set; }
        public string askres { get; set; }
        public int? hjjgid { get; set; }
        public string hjjgname { get; set; }
        public DateTime? hjjgtime { get; set; }
        public int? yhfkid { get; set; }
        public string yhfkname { get; set; }
        public int? deleteflag { get; set; } = 0;

        /// <summary>
        /// 是否外呼
        /// </summary>
        public int? iscallout { get; set; } = 0;

        /// <summary>
        /// 外呼是否成功
        /// </summary>
        public int? iscalloutsuccess { get; set; } = 0;
    }
}
