// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using PVDEMCS.Services.Repositories.Entities.BaseEntity;

namespace PVDEMCS.Services.Repositories.Entities;
/// <summary>
/// 设备信息
/// </summary>
[Table("equipment_info")]
public partial class EquipmentInfoEntity : CUDBaseEntity
{
    /// <summary>
    /// 设备编码
    /// </summary>
    [Required]
    [Column("equipment_code")]
    [StringLength(32)]
    public string EquipmentCode { get; set; }

    /// <summary>
    /// 设备名称
    /// </summary>
    [Required]
    [Column("equipment_name")]
    [StringLength(32)]
    public string EquipmentName { get; set; }

    /// <summary>
    /// 设备类型：Ionbond，Balzers，Cemecon
    /// </summary>
    [Required]
    [Column("equipment_type")]
    [StringLength(32)]
    public string EquipmentType { get; set; }

    /// <summary>
    /// 设备启停用,1：启用，0：停用
    /// </summary>
    [Column("activated", TypeName = "bit(1)")]
    public bool Activated { get; set; }

    /// <summary>
    /// 模式：Auto 自动；Manual手动
    /// </summary>
    [Column("model")]
    public String Model { get; set; }

    /// <summary>
    /// 是否报警：true 报警；false 不报警（model为Auto)
    /// </summary>
    [Column("isAlarm", TypeName = "bit(1)")]
    public bool IsAlarm { get; set;  }

    /// <summary>
    /// 排序号
    /// </summary>
    [Column("ordrNo")]
    public int OrdrNo { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [Column("remark")]
    [StringLength(255)]
    public string Remark { get; set; }

}