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
{
[Table("Hosts")]
//房间表 暂未使用
public class Hosts
{
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
public int Id { get; set; }
[SugarColumn(ColumnDataType ="int")]
public int HotelID { get; set; }
public string HotelName { get; set; }
public string RoomNumber { get; set; }
public int Status { get; set; } = 0; // 0 离线 1 在线
public int? RoomStatusID { get; set; }
public string MAC { get; set; }
public string Desc { get; set; }
///
/// 人脸机sn
///
public string FaceSN { get; set; } = string.Empty;
///
/// 人脸机在线
///
public bool FaceStatus { get; set; } = false;
///
/// 维修状态 0 正常 1 维修
///
public Nullable maintainStatus { get; set; } = 0;
public DateTime CreateTime { get; set; } = DateTime.Now;
}
public class HostsAdd : Hosts
{
public int RoomTypeID { get; set; }
}
//public class HostsAsync
//{
// //ID(主机 ID)
// // , HostNumber(主机编号)
// // , RoomNumber(房号)
// // , Status(状态:0 离线,1 在线)
// // , RegisterDate(注册日期,如:2021-01-01)
// // , RoomStatusID(房态 ID)
// // RoomStatusName(房态名称),
// // RoomTypeID(房型 ID)
// // , RoomTypeName(房型名称)
// // , MAC(主机 mac 地址,如:34-D0-B8-1F-02-15)
// // , IP(主机 IP 地址), Remark(备注
// ///
// ///
// ///
// ///
// ///
// ///
// public int ID { get; set; }
// ///
// ///
// ///
// public int HotelID { get; set; }
// ///
// /// 默认酒店
// ///
// public string HotelName { get; set; }
// ///
// ///
// ///
// public string HostNumber { get; set; }
// ///
// ///
// ///
// public string RoomNumber { get; set; }
// ///
// ///
// ///
// public bool Status { get; set; }
// ///
// ///
// ///
// public DateTime RegisterDate { get; set; }
// ///
// ///
// ///
// public int RoomStatusID { get; set; }
// ///
// /// 空房
// ///
// public string RoomStatusName { get; set; }
// ///
// ///
// ///
// public int RoomTypeID { get; set; }
// ///
// ///
// ///
// public string RoomTypeName { get; set; }
// ///
// ///
// ///
// public string MAC { get; set; }
// ///
// ///
// ///
// public string IP { get; set; }
// ///
// ///
// ///
// public string Remark { get; set; }
// }
}