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 PLCAddr : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 设备编号
        /// </summary>
        public string equipnum { get; set; }

        /// <summary>
        /// plc地址
        /// </summary>
        public string addr { get; set; }

        /// <summary>
        /// plc地址类型
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string note { get; set; }

        /// <summary>
        /// PLC值
        /// </summary>
        public string value { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime updatetime { get; set; }
    }
}
