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

namespace MadRunFabric.Model.CallCenterApi
{
    public class MW_IVR_Callout_Record : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 通话唯一ID
        /// </summary>
        public string unique_id { get; set; }

        /// <summary>
        /// 被呼叫的号码
        /// </summary>
        public string callee { get; set; }

        /// <summary>
        /// 呼叫号码
        /// </summary>
        public string caller { get; set; }


        /// <summary>
        /// 转移开始时间 时间戳
        /// </summary>
        public long time_call_begin { get; set; }

        /// <summary>
        /// 呼出是否成功
        /// </summary>
        public int is_call_ok { get; set; } = 0;

        /// <summary>
        /// 通话建立时间 时间戳
        /// </summary>
        public long time_connected { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public long time_call_end { get; set; }
    }
}
