//------------------------------------------------------------------------------
// <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 ERD
{
    using System;
    using System.Collections.Generic;
    
    public partial class TblTMCommStructure
    {
        public TblTMCommStructure()
        {
            this.TblTMCommDealTargets = new HashSet<TblTMCommDealTarget>();
            this.TblTMCommGroups = new HashSet<TblTMCommGroup>();
            this.TblTMCommStructureTMCommStructures_TblPersonnelPersonnelList = new HashSet<TblTMCommStructureTMCommStructures_TblPersonnelPersonnelList>();
            this.TblTMCommTables = new HashSet<TblTMCommTable>();
            this.TblPersonnels = new HashSet<TblPersonnel>();
        }
    
        public int OID { get; set; }
        public Nullable<System.DateTime> DateCreated { get; set; }
        public string CreatedBy { get; set; }
        public string StructureName { get; set; }
        public Nullable<int> BonusTarget { get; set; }
        public Nullable<int> BonusPercentage { get; set; }
        public Nullable<int> SalesVenue { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public Nullable<int> GCRecord { get; set; }
        public Nullable<int> DealTargetOne { get; set; }
        public Nullable<int> DealTargetTwo { get; set; }
        public Nullable<int> DealTargetThree { get; set; }
        public Nullable<decimal> AddSomeAmount { get; set; }
        public Nullable<decimal> PublicHolidayAmount { get; set; }
        public Nullable<int> DealTargetFour { get; set; }
        public Nullable<int> AddsomeDaysMissedForLevel2 { get; set; }
        public Nullable<decimal> AddsomeLevel2Amount { get; set; }
        public Nullable<bool> DoNotPayOnThisStructure { get; set; }
    
        public virtual TblSalesVenue TblSalesVenue { get; set; }
        public virtual ICollection<TblTMCommDealTarget> TblTMCommDealTargets { get; set; }
        public virtual ICollection<TblTMCommGroup> TblTMCommGroups { get; set; }
        public virtual ICollection<TblTMCommStructureTMCommStructures_TblPersonnelPersonnelList> TblTMCommStructureTMCommStructures_TblPersonnelPersonnelList { get; set; }
        public virtual ICollection<TblTMCommTable> TblTMCommTables { get; set; }
        public virtual ICollection<TblPersonnel> TblPersonnels { get; set; }
    }
}
