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

namespace MadRunFabric.Model
{
    /// <summary>
    /// 项目日志表
    /// </summary>
    public class Pro_Project_Log : 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>
        /// 类型1基本信息；2楼层信息；3设备信息；4员工信息；5通讯录信息
        /// </summary>
        public int type { get; set; }

        /// <summary>
        /// 操作明细
        /// </summary>
        public string details { 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; }
    }
}
