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

namespace MadRunFabric.Model
{
    /// <summary>
    /// 外呼任务表
    /// </summary>
    public class Call_AutoCallNum : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 默认为0，有特殊需求可设置成响应的值，值的含义需提前预定
        /// </summary>
        //[BsonElement("flag")]
        public int flag { get; set; } = 0;

        /// <summary>
        /// 电话所在的任务组
        /// </summary>
        public string task_icon { get; set; }

        /// <summary>
        /// 纳秒
        /// </summary>
        //[BsonRepresentation(MongoDB.Bson.BsonType.Timestamp)]
        public Int64 timestamp { get; set; } = DateTime.Now.Ticks;

        /// <summary>
        /// 呼叫号码
        /// </summary>
        public string call_number { get; set; } = "";

        /// <summary>
        /// 互通后是否放音  呼通后是否放音，为空不放音，否则放音
        /// </summary>
        public string voice_file_name { get; set; } = "";

        /// <summary>
        /// 录音路径
        /// </summary>
        public string record_file_name { get; set; } = "";

        /// <summary>
        /// 是否有效  1 有效 0 无效
        /// </summary>
        public int invalid_flag { get; set; } = 1;
    }
}
