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_Items : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

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

        /// <summary>
        /// 工单状态:0创建工单，1已转派（转派或者抢单），2已处理，3已评价，7挂起，8已取消，9已完成
        /// </summary>
        public int wostate { get; set; } = 0;

        /// <summary>
        /// 渠道来源 1表示PC 2表示安卓 3表示IOS 4表示微信
        /// </summary>
        public int channel { get; set; } = 1;

        /// <summary>
        /// 通话标识ID
        /// </summary>
        public string callid { get; set; } = "";

        /// <summary>
        /// 处理内容
        /// </summary>
        public string detail { 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; }
    }
}
