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_InputData : 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 inputtime { get; set; }

        /// <summary>
        /// 删除标志：0正常，1删除
        /// </summary>
        public int? deleteflag { get; set; }

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

        /// <summary>
        /// 创建人工号
        /// </summary>
        public string createusercode { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime  createtime { get; set; }= DateTime.Now.ToLocalTime();

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