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>
    [BsonIgnoreExtraElements]
    public class Distri_Workorder_OffenceRecord : 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 woid { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";
        /// <summary>
        /// 工单类型（0随机工单,1计划工单）
        /// </summary>
        public int wotype { get; set; } = 0;
        /// <summary>
        /// 渠道来源 1表示PC 2表示安卓 3表示IOS 4表示微信
        /// </summary>
        public int channel { get; set; } = 1;

        /// <summary>
        /// 是否审核通过 0无操作 1不通过 2通过
        /// </summary>
        public int isaudit { get; set; } = 0;
        /// <summary>
        /// 违规原因
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 驳回原因
        /// </summary>
        public string content_rejectreason { get; set; }

        /// <summary>
        /// 处理人 主管-------------------------------------------
        /// </summary>
        public string dealby { get; set; }
        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime dealtime { get; set; }

        /// <summary>
        /// 添加人工号 -------------------------------------------
        /// </summary>
        public string createby { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除(0正常 1删除)
        /// </summary>
        public int isdelete { get; set; } = 0;
        /// <summary>
        /// 删除人
        /// </summary>
        public string deleteby { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime deletetime { get; set; }
    }
}
