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

namespace MadRunFabric.Model.WorkOrderApi
{
   
    public class Cus_AuthOrder : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 项目id
        /// </summary>
        public string pro_id { get; set; }

        /// <summary>
        /// 项目name
        /// </summary>
        public string pro_name { get; set; }

        // <summary>
        /// 授权类型
        /// </summary>
        public string auth_type { get; set; }

       
        /// <summary>
        /// 授权到期时间
        /// </summary>
        public DateTime? authendtime { get; set; }

       
        /// <summary>
        /// 申请说明
        /// </summary>
        public string content { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; } = 0;

        /// <summary>
        /// 删除用户
        /// </summary>
        public string deleteuser { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? deletetime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;
        /// <summary>
        /// 创建人工号
        /// </summary>
        public string createuser { get; set; }

        /// <summary>
        /// 状态：1为申请授权续期，2为续期,3为开启，4为暂停
        /// </summary>
        public int infotype { get; set; }

        /// <summary>
        /// 状态：1为申请授权续期，2为续期，3为开启，4为暂停，5为撤回，6为通过，7为确认已续期，8为已暂停，9为已开启
        /// </summary>
        public int state { get; set; }

    }
}