//------------------------------------------------------------------------------
// <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 TblResort
    {
        public TblResort()
        {
            this.TblResortExternalSalesPeriods = new HashSet<TblResortExternalSalesPeriod>();
            this.TblResortNotes = new HashSet<TblResortNote>();
            this.TblResortRebateBlocks = new HashSet<TblResortRebateBlock>();
            this.TblResortResorts_TblPromotionCommissionStructurePromotionCommissionStructures = new HashSet<TblResortResorts_TblPromotionCommissionStructurePromotionCommissionStructures>();
            this.TblResortSalesPeriods = new HashSet<TblResortSalesPeriod>();
            this.TblSalesVenues = new HashSet<TblSalesVenue>();
            this.TblTimeOffVouchers = new HashSet<TblTimeOffVoucher>();
            this.TblVouchers = new HashSet<TblVoucher>();
            this.TblWeekBankings = new HashSet<TblWeekBanking>();
            this.TblWeekModules = new HashSet<TblWeekModule>();
            this.TblDebtors = new HashSet<TblDebtor>();
            this.TblExternalResortCommissions = new HashSet<TblExternalResortCommission>();
            this.TblExternalResortCommissionWeeks = new HashSet<TblExternalResortCommissionWeek>();
            this.TblInvoices = new HashSet<TblInvoice>();
            this.TblManagementFeesToAdjusts = new HashSet<TblManagementFeesToAdjust>();
            this.TblMarketingCampaignResorts = new HashSet<TblMarketingCampaignResort>();
            this.TblPromoConfigs = new HashSet<TblPromoConfig>();
            this.TblPromoConfigs1 = new HashSet<TblPromoConfig>();
            this.TblPromotions = new HashSet<TblPromotion>();
            this.TblRCIDates = new HashSet<TblRCIDate>();
        }
    
        public int OID { get; set; }
        public string ResortName { get; set; }
        public Nullable<System.DateTime> DateCreated { get; set; }
        public string CreatedBy { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public Nullable<int> GCRecord { get; set; }
        public Nullable<System.Guid> DeliveryAddress { get; set; }
        public Nullable<int> StockLocation { get; set; }
        public string ResortCode { get; set; }
        public string Area { get; set; }
        public string OldResortCode { get; set; }
        public Nullable<int> C_ResortManager { get; set; }
        public Nullable<int> Region { get; set; }
        public Nullable<double> CheckInTime { get; set; }
        public Nullable<double> CheckOutTime { get; set; }
        public Nullable<int> CheckInDay { get; set; }
        public Nullable<int> ManagingAgent { get; set; }
        public Nullable<int> ResortManager { get; set; }
        public Nullable<bool> RCIAffiliated { get; set; }
        public Nullable<double> PurchaseFactor { get; set; }
        public Nullable<int> DefaultDeveloper { get; set; }
        public Nullable<int> ResortRanking { get; set; }
        public Nullable<bool> MayNotView { get; set; }
        public Nullable<bool> NoRebate { get; set; }
        public Nullable<int> ConsoftWeeksStock { get; set; }
        public Nullable<int> TimeOffMaxPercentageOfStock { get; set; }
        public Nullable<bool> ExternalResortCommission { get; set; }
        public Nullable<decimal> CommissionPercentage { get; set; }
        public Nullable<int> DripPeriod { get; set; }
        public Nullable<decimal> PayableToResort { get; set; }
        public Nullable<bool> ExcludeForPromotions { get; set; }
        public Nullable<int> ExternalResortCommYear { get; set; }
        public Nullable<bool> TimeshareResort { get; set; }
        public Nullable<bool> TimeoffResort { get; set; }
        public Nullable<int> Available { get; set; }
        public string InnKeeperMap { get; set; }
        public Nullable<bool> TradeInFullWeek { get; set; }
        public Nullable<bool> TradeInMidWeek { get; set; }
        public Nullable<bool> TradeInWeekend { get; set; }
        public string Website { get; set; }
    
        public virtual TblResortManagingAgent TblResortManagingAgent { get; set; }
        public virtual ICollection<TblResortExternalSalesPeriod> TblResortExternalSalesPeriods { get; set; }
        public virtual ICollection<TblResortNote> TblResortNotes { get; set; }
        public virtual ICollection<TblResortRebateBlock> TblResortRebateBlocks { get; set; }
        public virtual ICollection<TblResortResorts_TblPromotionCommissionStructurePromotionCommissionStructures> TblResortResorts_TblPromotionCommissionStructurePromotionCommissionStructures { get; set; }
        public virtual ICollection<TblResortSalesPeriod> TblResortSalesPeriods { get; set; }
        public virtual ICollection<TblSalesVenue> TblSalesVenues { get; set; }
        public virtual ICollection<TblTimeOffVoucher> TblTimeOffVouchers { get; set; }
        public virtual ICollection<TblVoucher> TblVouchers { get; set; }
        public virtual ICollection<TblWeekBanking> TblWeekBankings { get; set; }
        public virtual ICollection<TblWeekModule> TblWeekModules { get; set; }
        public virtual ICollection<TblDebtor> TblDebtors { get; set; }
        public virtual TblDeveloper TblDeveloper { get; set; }
        public virtual ICollection<TblExternalResortCommission> TblExternalResortCommissions { get; set; }
        public virtual ICollection<TblExternalResortCommissionWeek> TblExternalResortCommissionWeeks { get; set; }
        public virtual ICollection<TblInvoice> TblInvoices { get; set; }
        public virtual ICollection<TblManagementFeesToAdjust> TblManagementFeesToAdjusts { get; set; }
        public virtual ICollection<TblMarketingCampaignResort> TblMarketingCampaignResorts { get; set; }
        public virtual TblPersonnel TblPersonnel { get; set; }
        public virtual TblPersonnel TblPersonnel1 { get; set; }
        public virtual ICollection<TblPromoConfig> TblPromoConfigs { get; set; }
        public virtual ICollection<TblPromoConfig> TblPromoConfigs1 { get; set; }
        public virtual ICollection<TblPromotion> TblPromotions { get; set; }
        public virtual ICollection<TblRCIDate> TblRCIDates { get; set; }
    }
}
