using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MoviconHub.App.Models
{
///
/// 设备状态改变
///
[Table(Name = "DeviceStatusChange")]
public class DeviceStatusChange
{
///
/// 主键ID
///
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
///
/// 设备码
///
[Column(Name = "DeviceCode", StringLength = 100, IsNullable = true)]
public string DeviceCode { get; set; }
///
/// 设备名称
///
[Column(Name = "DeviceName", StringLength = 100, IsNullable = true)]
public string DeviceName { get; set; }
///
/// 开始时间
///
[Column(Name = "StartTime", IsNullable = true)]
public DateTime StartTime { get; set; }
///
/// 结束时间
///
[Column(Name = "EndTime", IsNullable = true)]
public DateTime EndTime { get; set; }
///
/// 设备状态
///
[Column(Name = "DeviceState", IsNullable = true)]
public int? DeviceState { get; set; }
///
/// 创建时间
///
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
}
}