116 lines
3.4 KiB
C#
Raw Permalink Normal View History

2025-06-06 16:00:39 +08:00
using Microsoft.EntityFrameworkCore;
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.Enum;
using VOL.Entity.SystemModels;
namespace VOL.Entity.DomainModels
{
[Table("Ai_Device")]
[Entity(TableCnName = "Ai设备表", TableName = "Ai_Device")]
public class Ai_Device : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Display(Description = "主键Id")]
[Comment("Id")]
public int Id { get; set; }
/// <summary>
/// AI设备的唯一编码
/// </summary>
[Display(Name = "AI设备的唯一编码")]
[Comment("AI设备的唯一编码")]
[Column(TypeName = "nvarchar(100)")]
public string Code { get; set; }
/// <summary>
/// AI设备名称
/// </summary>
[Display(Name = "AI设备名称")]
[Comment("AI设备名称")]
[Column(TypeName = "nvarchar(200)")]
public string Name { get; set; }
/// <summary>
///设备类型
/// </summary>
[Display(Name = "设备类型")]
[Comment("设备类型")]
[Column(TypeName = "int")]
public int DeviceType { get; set; }
/// <summary>
/// 设备状态 固定值1启用2禁用禁用的设备无法使用
/// </summary>
[Display(Name = "设备状态 固定值1启用2禁用禁用的设备无法使用")]
[Comment("设备状态 固定值1启用2禁用禁用的设备无法使用")]
[Column(TypeName = "int")]
public int Status { get; set; }
/// <summary>
///备注
/// </summary>
[Display(Name = "备注")]
[Comment("备注")]
[Column(TypeName = "text")]
public string Remarks { get; set; }
/// <summary>
///有效期开始时间
/// </summary>
[Display(Name = "有效期开始时间")]
[Comment("有效期开始时间")]
[Column(TypeName = "datetime")]
[Editable(true)]
public DateTime StartTime { get; set; }
/// <summary>
///有效期结束时间
/// </summary>
[Display(Name = "有效期结束时间")]
[Comment("有效期结束时间")]
[Column(TypeName = "datetime")]
[Editable(true)]
public DateTime EndTime { get; set; }
/// <summary>
///创建人
/// </summary>
[Display(Name = "创建人")]
[Comment("创建人")]
[Column(TypeName = "int)")]
public int Creator { get; set; }
/// <summary>
///创建时间
/// </summary>
[Display(Name = "创建时间")]
[Comment("创建时间")]
[Column(TypeName = "datetime")]
[Editable(true)]
public DateTime? CreateDate { get; set; }
/// <summary>
///修改人
/// </summary>
[Display(Name = "修改人")]
[Comment("修改人")]
[Column(TypeName = "int)")]
public int Modifier { get; set; }
/// <summary>
///修改时间
/// </summary>
[Display(Name = "修改时间")]
[Comment("修改时间")]
[Column(TypeName = "datetime")]
public DateTime? ModifyDate { get; set; }
}
}