using FreeSql.DataAnnotations; using System.ComponentModel.DataAnnotations; namespace HHECS.DAQShared.Models { [Table(Name = "daq_equipment_type")] [Index($"uk_{nameof(Code)}", $"{nameof(Code)}", true)] public class EquipmentType : BaseEntityCU<int> { [Column(IsNullable = false, Position = 2)] [MaxLength(50)] public string Code { get; set; } = null!; [Column(IsNullable = false, Position = 3)] [MaxLength(50)] public string Name { get; set; } = null!; [Column(Position = 4)] [MaxLength(200)] public string Description { get; set; } = null!; public List<Equipment> Equipments { get; set; } = new List<Equipment>(); public List<EquipmentTypePropTemplate> EquipmentTypePropTemplates { get; set; } = new List<EquipmentTypePropTemplate>(); } }