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 { /// /// id /// [Key] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string id { get; set; } /// ///ip地址 /// public string ipaddress { get; set; } /// ///mac地址 /// public string macaddress { get; set; } /// ///访问接口名 /// public string interfacename { get; set; } /// ///访问时间 /// public DateTime createtime { get; set; } = DateTime.Now.ToLocalTime(); /// ///是否成功访问 /// public int flag { get; set; } } }