2026-04-16 13:18:24 +08:00

114 lines
2.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;
namespace VOL.Entity.DomainModels.YiLu
{
/// <summary>
/// 运动小站设备表
/// </summary>
[Table("YL_Device")]
[Entity(TableCnName = "壹路设备表", TableName = "YL_Device")]
public class YL_Device : BaseEntity
{
/// <summary>
/// 主键ID
/// </summary>
[Key]
public long Id { get; set; }
/// <summary>
/// 运动小站ID
/// </summary>
public long SportStationId { get; set; }
/// <summary>
/// 学校/组织ID(设备绑定的学校)
/// </summary>
public int? OrgId { get; set; }
/// <summary>
/// 运动小站名称
/// </summary>
[MaxLength(100)]
public string Name { get; set; }
/// <summary>
/// 客户名称(租户名称)
/// </summary>
[MaxLength(100)]
public string TenantName { get; set; }
/// <summary>
/// 设备唯一序列号(唯一约束)
/// </summary>
[Required]
[MaxLength(64)]
public string SerialNumber { get; set; }
/// <summary>
/// Android Id(预留字段)
/// </summary>
[MaxLength(64)]
public string AndroidId { get; set; }
/// <summary>
/// IMEI(预留字段)
/// </summary>
[MaxLength(64)]
public string IMEI { get; set; }
/// <summary>
/// IMSI(预留字段)
/// </summary>
[MaxLength(64)]
public string IMSI { get; set; }
/// <summary>
/// 是否已标定 0=否 1=是
/// </summary>
public int IsCalibration { get; set; }
/// <summary>
/// 是否开启数据同步 0=否 1=是
/// </summary>
public int IsSynchronization { get; set; }
/// <summary>
/// 是否激活 0=未激活 1=已激活
/// </summary>
public int IsActive { get; set; }
/// <summary>
/// 是否在线 0=离线 1=在线
/// </summary>
public int IsOnline { get; set; }
/// <summary>
/// 最后一次在线时间
/// </summary>
public DateTime? LastOnlineTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdateTime { get; set; }
/// <summary>
/// 备注
/// </summary>
[MaxLength(500)]
public string Remark { get; set; }
}
}