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

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

        /// <summary>
        /// 省code
        /// </summary>
        public string province { get; set; } = "";

        /// <summary>
        /// 市code
        /// </summary>
        public string city { get; set; } = "";

        /// <summary>
        /// 项目id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string projectid { get; set; }

        /// <summary>
        /// 项目类型id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string protypeid { get; set; }

        /// <summary>
        /// 楼id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string buildid { get; set; }

        /// <summary>
        /// 文件名字
        /// </summary>
        public string filename { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long filesize { get; set; }

        /// <summary>
        /// 文件地址
        /// </summary>
        public string fileurl { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public string fileext { get; set; }

        /// <summary>
        /// 文件md5
        /// </summary>
        public string filemd5 { 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; }
    }
}
