初始化项目
This commit is contained in:
96
Models/ModelItems/MACLogs.cs
Normal file
96
Models/ModelItems/MACLogs.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
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; }
|
||||
/// <summary>
|
||||
/// 操作ID 同一次操作可能多次结果
|
||||
/// </summary>
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int ActionId { get; set; }
|
||||
/// <summary>
|
||||
/// 新的MAC
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(50)",IsNullable =true)]
|
||||
public string MAC { get; set; }
|
||||
//操作者用户ID
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int userid { get; set; }
|
||||
/// <summary>
|
||||
/// 操作日志 0 新增 1 解绑
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int type { get; set; }
|
||||
/// <summary>
|
||||
/// 地址
|
||||
/// </summary>
|
||||
[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;
|
||||
/// <summary>
|
||||
/// 酒店ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int HotelID { get; set; }
|
||||
/// <summary>
|
||||
/// 房间ID
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(100)", IsNullable = true)]
|
||||
public string roomID { get; set; }
|
||||
/// <summary>
|
||||
/// 房间号
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(100)")]
|
||||
|
||||
public string roomNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public int Status { get; set; } = 0;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public int AppType { get; set; } = 0;// 0 表示 rcu主机 1表示人脸机
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user