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
{
    /// <summary>
    /// 问卷题
    /// </summary>
    public class Ask_Question : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 问卷id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string pageid { get; set; }
        /// <summary>
        /// 单选选项前端guid
        /// </summary>
        public string queguid { get; set; }
        /// <summary>
        /// 题型（1问答题，2单选题，3多选题）
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 是否必答
        /// </summary>
        public bool isanswer { get; set; }
        /// <summary>
        /// 题目
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 问卷题选项 - 汇总
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int sort { get; set; } = 0;

        /// <summary>
        /// 创建人工号
        /// </summary>
        public string createuser { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string createusername { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; } = 0;
        /// <summary>
        /// 删除工号
        /// </summary>
        public string deleteuser { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? deletetime { get; set; }
    }
}
