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

namespace MadRunFabric.Model.PLCAutomationApi
{
    public class PLC_MonthData : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public string dataname { get; set; }

        /// <summary>
        /// 起始数据值
        /// </summary>
        public string startvalue { get; set; }

        /// <summary>
        /// 结束数据值
        /// </summary>
        public string endvalue { get; set; }

        /// <summary>
        /// 年
        /// </summary>
        public string datayear { get; set; }

        /// <summary>
        /// 月
        /// </summary>
        public int? datamonth { get; set; }

        /// <summary>
        /// 起始日
        /// </summary>
        public int? startday { get; set; }

        /// <summary>
        /// 结束日
        /// </summary>
        public int? endday { get; set; }

        /// <summary>
        /// 起数时间
        /// </summary>
        public string starttime { get; set; }

        /// <summary>
        /// 止数时间
        /// </summary>
        public string endtime { get; set; }

        /// <summary>
        /// 数据类型：0水、1电、2气、3氧气
        /// </summary>
        public int datakind { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectname { get; set; }
    }
}
