//------------------------------------------------------------------------------
// <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 TblPromotionCommissionStructure
    {
        public TblPromotionCommissionStructure()
        {
            this.TblPromotionCommissions = new HashSet<TblPromotionCommission>();
            this.TblPromotionCommissionStructurePromotionCommissionStructures_TblContractTypeContractTypes = new HashSet<TblPromotionCommissionStructurePromotionCommissionStructures_TblContractTypeContractTypes>();
            this.TblPromotionCommissionStructurePromotionCommissionStructures_TblPersonnelPersonnel = new HashSet<TblPromotionCommissionStructurePromotionCommissionStructures_TblPersonnelPersonnel>();
            this.TblPromotionTypePromotionTypes_TblPromotionCommissionStructurePromotionCommissionStructures = new HashSet<TblPromotionTypePromotionTypes_TblPromotionCommissionStructurePromotionCommissionStructures>();
            this.TblResortResorts_TblPromotionCommissionStructurePromotionCommissionStructures = new HashSet<TblResortResorts_TblPromotionCommissionStructurePromotionCommissionStructures>();
            this.TblSalesVenueSalesVenues_TblPromotionCommissionStructurePromotionCommissionStructures = new HashSet<TblSalesVenueSalesVenues_TblPromotionCommissionStructurePromotionCommissionStructures>();
            this.TblSeasonSeasons_TblPromotionCommissionStructurePromotionCommissionStructure = new HashSet<TblSeasonSeasons_TblPromotionCommissionStructurePromotionCommissionStructure>();
        }
    
        public System.Guid Oid { get; set; }
        public string Name { get; set; }
        public Nullable<System.DateTime> FromDate { get; set; }
        public Nullable<System.DateTime> ToDate { get; set; }
        public Nullable<bool> UsePercentage { get; set; }
        public Nullable<decimal> PromotionPercentage { get; set; }
        public Nullable<bool> UseAmount { get; set; }
        public Nullable<decimal> PromotionAmount { get; set; }
        public Nullable<decimal> UpfrontPercentage { get; set; }
        public Nullable<decimal> DripPercentage { get; set; }
        public Nullable<int> NumberOfDrips { get; set; }
        public Nullable<int> DripStartOnInstallment { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public Nullable<int> GCRecord { get; set; }
    
        public virtual ICollection<TblPromotionCommission> TblPromotionCommissions { get; set; }
        public virtual ICollection<TblPromotionCommissionStructurePromotionCommissionStructures_TblContractTypeContractTypes> TblPromotionCommissionStructurePromotionCommissionStructures_TblContractTypeContractTypes { get; set; }
        public virtual ICollection<TblPromotionCommissionStructurePromotionCommissionStructures_TblPersonnelPersonnel> TblPromotionCommissionStructurePromotionCommissionStructures_TblPersonnelPersonnel { get; set; }
        public virtual ICollection<TblPromotionTypePromotionTypes_TblPromotionCommissionStructurePromotionCommissionStructures> TblPromotionTypePromotionTypes_TblPromotionCommissionStructurePromotionCommissionStructures { get; set; }
        public virtual ICollection<TblResortResorts_TblPromotionCommissionStructurePromotionCommissionStructures> TblResortResorts_TblPromotionCommissionStructurePromotionCommissionStructures { get; set; }
        public virtual ICollection<TblSalesVenueSalesVenues_TblPromotionCommissionStructurePromotionCommissionStructures> TblSalesVenueSalesVenues_TblPromotionCommissionStructurePromotionCommissionStructures { get; set; }
        public virtual ICollection<TblSeasonSeasons_TblPromotionCommissionStructurePromotionCommissionStructure> TblSeasonSeasons_TblPromotionCommissionStructurePromotionCommissionStructure { get; set; }
    }
}
