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

namespace MadRunFabric.Model
{
    /// <summary>
    /// IVR语音文件表
    /// </summary>
    public class Sys_IVRWords : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; } = "";
        /// <summary>
        /// 坐席组编号
        /// </summary>
        public string groupcode { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string content { get; set; } = "";
        /// <summary>
        /// 类型：1文本，2语音文件
        /// </summary>
        public int type { get; set; } = 0;
        
        public List<FileBaseModel> wavfile { get; set; }

        ///// <summary>
        ///// 语音文件原名
        ///// </summary>
        //public string wavoldname { get; set; } = "";
        ///// <summary>
        ///// 语音文件新名
        ///// </summary>
        //public string wavnewname { get; set; } = "";
        ///// <summary>
        ///// 语音文件路径
        ///// </summary>
        //public string wavpath { get; set; } = "";
        /// <summary>
        /// 生效时间
        /// </summary>
        public DateTime startdate { get; set; } = DateTime.Now.ToLocalTime();
        /// <summary>
        /// 失效时间
        /// </summary>
        public DateTime enddate { get; set; } = DateTime.Now.ToLocalTime();
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; } = "";
        /// <summary>
        /// 状态：1启动，0不启动
        /// </summary>
        public int isstate { get; set; } = 0;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now.ToLocalTime();
        /// <summary>
        /// 添加人
        /// </summary>
        public string createby { get; set; } = "";
        /// <summary>
        /// 是否删除：0未删除，1已删除
        /// </summary>
        public bool isdelete { get; set; } = false;
    }
}
