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

namespace MadRunFabric.Model.EquipmentApi.Model
{
    /// <summary>
    /// 检查事项及内容
    /// </summary>
    [BsonIgnoreExtraElements]
    public class Wo_Matters : 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 projectid { get; set; }

        /// <summary>
        /// 检查类型 2保养，3巡检
        /// EnumWoType
        /// </summary>
        public int checktype { get; set; } = 0;

        /// <summary>
        /// 巡检/保养 事项
        /// </summary>
        public string matter { get; set; }

        /// <summary>
        /// 事项内容
        /// </summary>
        public List<string> contents { get; set; }

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

        /// <summary>
        /// 提交人
        /// </summary>
        public string createuser { get; set; } = "";
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool isdelete { get; set; } = false;

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