//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated from a template.
//
//     Manual changes to this file may cause unexpected behavior in your application.
//     Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace TMapi.Models
{
    using System;
    using System.Collections.Generic;
    
    public partial class SPECTYPE
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public SPECTYPE()
        {
            this.SPECs = new HashSet<SPEC>();
            this.SPECTYPE1 = new HashSet<SPECTYPE>();
        }
    
        public int SPECTYPEID { get; set; }
        public string DESCRIPTION { get; set; }
        public string ACTIVE { get; set; }
        public Nullable<int> PARENTSPECTYPEID { get; set; }
        public Nullable<int> EQUIPMENTFIELDID { get; set; }
        public Nullable<int> DEFAULTSPECID { get; set; }
    
        public virtual EQUIPMENTFIELD EQUIPMENTFIELD { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<SPEC> SPECs { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<SPECTYPE> SPECTYPE1 { get; set; }
        public virtual SPECTYPE SPECTYPE2 { get; set; }
    }
}
