using MadRunFabric.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using MongoDB.Bson.Serialization.Attributes;

namespace PLCAutomationApi.Model
{
    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; }
    }
}
