using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Models.ModelItems { //微信小程序用户操作mac的日志表 //[Table("MACLogs")] public class MACLogs { [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] public int Id { get; set; } /// /// 操作ID 同一次操作可能多次结果 /// [SugarColumn(ColumnDataType = "int")] public int ActionId { get; set; } /// /// 新的MAC /// /// [SugarColumn(ColumnDataType = "varchar(50)",IsNullable =true)] public string MAC { get; set; } //操作者用户ID [SugarColumn(ColumnDataType = "int")] public int userid { get; set; } /// /// 操作日志 0 新增 1 解绑 /// [SugarColumn(ColumnDataType = "int")] public int type { get; set; } /// /// 地址 /// [SugarColumn(ColumnDataType = "varchar(150)", IsNullable = true)] public string location { get; set; } [SugarColumn(ColumnDataType = "varchar(100)", IsNullable = true)] public string Ip { get; set; } [SugarColumn(ColumnDataType = "datetime(3)")] public DateTime createtime { get; set; } = default; /// /// 酒店ID /// [SugarColumn(ColumnDataType = "int")] public int HotelID { get; set; } /// /// 房间ID /// /// [SugarColumn(ColumnDataType = "varchar(100)", IsNullable = true)] public string roomID { get; set; } /// /// 房间号 /// /// /// [SugarColumn(ColumnDataType = "varchar(100)")] public string roomNumber { get; set; } /// /// 状态 /// /// [SugarColumn(ColumnDataType = "int")] public int Status { get; set; } = 0; [SugarColumn(ColumnDataType = "int")] public int AppType { get; set; } = 0;// 0 表示 rcu主机 1表示人脸机 } }