EquipmentTypePropTemplate.cs 588 Bytes
using FreeSql.DataAnnotations;
using System.ComponentModel.DataAnnotations;

namespace HHECS.DAQShared.Models
{
    [Table(Name = "daq_equipment_type_prop_template")]
    [Index($"uk_{nameof(Code)}", $"{nameof(Code)}", false)]
    public class EquipmentTypePropTemplate : EquipmentPropBase
    {
        [Column(IsNullable = false, Position = 4)]
        public int EquipmentTypeId { get; set; }

        public EquipmentType EquipmentType { get; set; } = null!;

        [Column(Position = 5)]
        [MaxLength(200)]
        public string Description { get; set; } = null!;
    }
}