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

namespace MadRunFabric.Model
{
    /// <summary>
    /// 报修工单评价表
    /// </summary>
    public class Wo_Repair_Evaluate : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";

        /// <summary>
        /// 渠道
        /// </summary>
        public int channel { get; set; } = 0;

        /// <summary>
        /// 分数
        /// </summary>
        public int score { get; set; } = 0;
        /// <summary>
        /// 评价
        /// </summary>
        public string evaluate { get; set; } = "";

        /// <summary>
        /// 评价标签
        /// </summary>
        public List<string> label { get; set; }

        /// <summary>
        /// 到场时间
        /// </summary>
        public DateTime? arrivetime { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public List<FileBaseModel> files { get; set; }

        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;

        /// <summary>
        /// 提交人
        /// </summary>
        public string createuser { get; set; } = "";
        /// <summary>
        /// 提交人姓名
        /// </summary>
        public string createusername { get; set; } = "";
        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; } = 0;

        /// <summary>
        /// 删除用户
        /// </summary>
        public string deleteuser { get; set; } = "";
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? deletetime { get; set; }
    }
}
