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

        /// <summary>
        ///ip地址
        /// </summary>
        public string ipaddress { get; set; }

        /// <summary>
        ///mac地址
        /// </summary>
        public string macaddress { get; set; }

        /// <summary>
        ///禁止读
        /// </summary>
        public int forbidread { get; set; }

        /// <summary>
        ///禁止写
        /// </summary>
        public int forbidwrite { get; set; }

        /// <summary>
        ///添加时间
        /// </summary>
        public DateTime  createtime { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        public int deleteflag { get; set; } = 0;
    }
}
