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_AccessRecords : 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 string interfacename { get; set; }

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

        /// <summary>
        ///是否成功访问
        /// </summary>
        public int  flag { get; set; }
    }
}
