//------------------------------------------------------------------------------
// <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 TblDebtor
    {
        public TblDebtor()
        {
            this.TblDebtorBankings = new HashSet<TblDebtorBanking>();
            this.TblDebtorCategoryBreakdowns = new HashSet<TblDebtorCategoryBreakdown>();
            this.TblDebtorDocuments = new HashSet<TblDebtorDocument>();
            this.TblDebtorFeedbacks = new HashSet<TblDebtorFeedback>();
            this.TblDebtorInterestRates = new HashSet<TblDebtorInterestRate>();
            this.TblDebtorManagementFeeValues = new HashSet<TblDebtorManagementFeeValue>();
            this.TblDebtorNotes = new HashSet<TblDebtorNote>();
            this.TblDebtorResaleTransfers = new HashSet<TblDebtorResaleTransfer>();
            this.TblDebtorTransactions = new HashSet<TblDebtorTransaction>();
            this.TblDebtorWeekModuleExceptions = new HashSet<TblDebtorWeekModuleException>();
            this.TblExternalResortCommissions = new HashSet<TblExternalResortCommission>();
            this.TblGalvanizedDeals = new HashSet<TblGalvanizedDeal>();
            this.TblHideDebtorTransactions = new HashSet<TblHideDebtorTransaction>();
            this.TblJournalLines = new HashSet<TblJournalLine>();
            this.TblManagementFeeInstalments = new HashSet<TblManagementFeeInstalment>();
            this.TblManagementFeeOverrides = new HashSet<TblManagementFeeOverride>();
            this.TblManagementFeesDocuments = new HashSet<TblManagementFeesDocument>();
            this.TblManagementFeesDocuments1 = new HashSet<TblManagementFeesDocument>();
            this.TblPaymentPlans = new HashSet<TblPaymentPlan>();
            this.TblPortfolioNotes = new HashSet<TblPortfolioNote>();
            this.TblPortfolioNotes1 = new HashSet<TblPortfolioNote>();
            this.TblPreviousAgeings = new HashSet<TblPreviousAgeing>();
            this.TblPreviousAgings = new HashSet<TblPreviousAging>();
            this.TblSACRRADatas = new HashSet<TblSACRRAData>();
            this.TblSACRRADebtorGAPGALs = new HashSet<TblSACRRADebtorGAPGAL>();
            this.TblSACRRADebtorStatus = new HashSet<TblSACRRADebtorStatu>();
            this.TblSuspenseTransactions = new HashSet<TblSuspenseTransaction>();
            this.TblSuspenseTransactionSplits = new HashSet<TblSuspenseTransactionSplit>();
        }
    
        public int OID { get; set; }
        public Nullable<int> DebtorNo { get; set; }
        public Nullable<decimal> Balance { get; set; }
        public Nullable<decimal> Sundries { get; set; }
        public Nullable<decimal> Days30 { get; set; }
        public Nullable<decimal> Days60 { get; set; }
        public Nullable<decimal> Days90 { get; set; }
        public Nullable<decimal> Days120 { get; set; }
        public Nullable<decimal> Days150 { get; set; }
        public Nullable<decimal> Days180 { get; set; }
        public Nullable<decimal> AmountDue { get; set; }
        public Nullable<decimal> Installment { get; set; }
        public Nullable<byte> CurrentAge { get; set; }
        public Nullable<int> AccountType { get; set; }
        public Nullable<System.DateTime> DateCreated { get; set; }
        public Nullable<int> Contract { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public Nullable<int> GCRecord { get; set; }
        public Nullable<decimal> InvoiceAmount { get; set; }
        public Nullable<decimal> DepositAmount { get; set; }
        public Nullable<decimal> DepositOutstanding { get; set; }
        public Nullable<decimal> Current { get; set; }
        public string Club { get; set; }
        public Nullable<decimal> FixedInterestRate { get; set; }
        public Nullable<decimal> PrimeAdjustment { get; set; }
        public Nullable<bool> LinkedToPrime { get; set; }
        public Nullable<System.DateTime> InstalmentStartDate { get; set; }
        public Nullable<decimal> Instalment { get; set; }
        public string LookupDisplaytext { get; set; }
        public Nullable<int> Currency { get; set; }
        public Nullable<bool> ZeroInterestDeal { get; set; }
        public Nullable<System.DateTime> DateDepositPaid { get; set; }
        public string ConsoftReference { get; set; }
        public Nullable<decimal> Capital { get; set; }
        public Nullable<decimal> Fees { get; set; }
        public Nullable<decimal> Interest { get; set; }
        public Nullable<decimal> LastPaidAmount { get; set; }
        public Nullable<System.DateTime> LastPaidDate { get; set; }
        public Nullable<System.DateTime> LastUpdated { get; set; }
        public string DebtorString { get; set; }
        public Nullable<int> Status { get; set; }
        public Nullable<System.DateTime> MembershipExpiryDate { get; set; }
        public Nullable<decimal> TotalArrears { get; set; }
        public string MembershipNumber { get; set; }
        public Nullable<decimal> CurrentMonthlyInstalment { get; set; }
        public Nullable<int> Resort { get; set; }
        public string WeekModule { get; set; }
        public Nullable<int> AssetType { get; set; }
        public Nullable<int> ContractType { get; set; }
        public Nullable<int> PointsPurchased { get; set; }
        public Nullable<int> LastYearManagementFeeRaised { get; set; }
        public string TempConsoftTakeOnStatus { get; set; }
        public Nullable<int> ConsoftNo { get; set; }
        public Nullable<bool> SendToCollectionSystem { get; set; }
        public Nullable<System.DateTime> DateLastSentToCollectionSystem { get; set; }
        public Nullable<decimal> PendingCredit { get; set; }
        public Nullable<int> RemainingTerm { get; set; }
        public Nullable<decimal> InsurancePremium { get; set; }
        public Nullable<bool> Override { get; set; }
        public Nullable<bool> IsCancelledLease { get; set; }
        public Nullable<int> CollectionStatus { get; set; }
        public Nullable<System.DateTime> DateAllocated { get; set; }
        public Nullable<int> ReportsTo { get; set; }
        public Nullable<int> AllocatedTo { get; set; }
        public Nullable<bool> IsAllocated { get; set; }
        public Nullable<bool> IsSent { get; set; }
        public Nullable<int> OccupationYear { get; set; }
        public Nullable<System.DateTime> DormantEffectiveTo { get; set; }
        public Nullable<System.DateTime> LevyNextArrivalDate { get; set; }
        public Nullable<int> PaymentMethod { get; set; }
        public Nullable<System.DateTime> LastStatusUpdate { get; set; }
        public Nullable<decimal> MatrixDepositAmount { get; set; }
        public Nullable<decimal> MatrixDepositOutstanding { get; set; }
        public Nullable<decimal> ConversionRate { get; set; }
        public Nullable<int> AssetNumber { get; set; }
        public Nullable<int> NumberOfMonthsRemaining { get; set; }
        public Nullable<int> Developer { get; set; }
        public Nullable<bool> CancelInsurance { get; set; }
        public Nullable<System.DateTime> DateCancelled { get; set; }
        public Nullable<int> PeriodInMonths { get; set; }
        public Nullable<System.DateTime> DateFirstPortfolioFeeRaised { get; set; }
        public Nullable<int> PaymentDay { get; set; }
        public Nullable<System.DateTime> NextOccupationDate { get; set; }
        public Nullable<System.DateTime> LevyInstalmentDue { get; set; }
        public Nullable<System.DateTime> NextLevyInstalmentDue { get; set; }
        public Nullable<decimal> SettlementAmount { get; set; }
        public Nullable<decimal> LeaseBalance { get; set; }
        public Nullable<decimal> ServiceFee { get; set; }
        public Nullable<bool> ExitUndertaking { get; set; }
        public Nullable<System.DateTime> NewExpiryDate { get; set; }
        public Nullable<int> AgeStatus { get; set; }
        public Nullable<decimal> CapitalOutstanding { get; set; }
        public Nullable<decimal> PrescribedAmount { get; set; }
        public Nullable<System.DateTime> RestructuredDate { get; set; }
        public Nullable<int> UndertakingConsultant { get; set; }
        public Nullable<decimal> FinancedAmount { get; set; }
        public Nullable<decimal> AmountPaid { get; set; }
        public Nullable<System.DateTime> LastUnpaidTransactionDate { get; set; }
        public Nullable<decimal> LastUnpaidAmount { get; set; }
    
        public virtual TblPersonnel TblPersonnel { get; set; }
        public virtual TblDeveloper TblDeveloper { get; set; }
        public virtual TblPersonnel TblPersonnel1 { get; set; }
        public virtual TblResort TblResort { get; set; }
        public virtual TblPersonnel TblPersonnel2 { get; set; }
        public virtual ICollection<TblDebtorBanking> TblDebtorBankings { get; set; }
        public virtual ICollection<TblDebtorCategoryBreakdown> TblDebtorCategoryBreakdowns { get; set; }
        public virtual ICollection<TblDebtorDocument> TblDebtorDocuments { get; set; }
        public virtual ICollection<TblDebtorFeedback> TblDebtorFeedbacks { get; set; }
        public virtual ICollection<TblDebtorInterestRate> TblDebtorInterestRates { get; set; }
        public virtual ICollection<TblDebtorManagementFeeValue> TblDebtorManagementFeeValues { get; set; }
        public virtual ICollection<TblDebtorNote> TblDebtorNotes { get; set; }
        public virtual ICollection<TblDebtorResaleTransfer> TblDebtorResaleTransfers { get; set; }
        public virtual ICollection<TblDebtorTransaction> TblDebtorTransactions { get; set; }
        public virtual ICollection<TblDebtorWeekModuleException> TblDebtorWeekModuleExceptions { get; set; }
        public virtual ICollection<TblExternalResortCommission> TblExternalResortCommissions { get; set; }
        public virtual ICollection<TblGalvanizedDeal> TblGalvanizedDeals { get; set; }
        public virtual ICollection<TblHideDebtorTransaction> TblHideDebtorTransactions { get; set; }
        public virtual ICollection<TblJournalLine> TblJournalLines { get; set; }
        public virtual ICollection<TblManagementFeeInstalment> TblManagementFeeInstalments { get; set; }
        public virtual ICollection<TblManagementFeeOverride> TblManagementFeeOverrides { get; set; }
        public virtual ICollection<TblManagementFeesDocument> TblManagementFeesDocuments { get; set; }
        public virtual ICollection<TblManagementFeesDocument> TblManagementFeesDocuments1 { get; set; }
        public virtual ICollection<TblPaymentPlan> TblPaymentPlans { get; set; }
        public virtual ICollection<TblPortfolioNote> TblPortfolioNotes { get; set; }
        public virtual ICollection<TblPortfolioNote> TblPortfolioNotes1 { get; set; }
        public virtual ICollection<TblPreviousAgeing> TblPreviousAgeings { get; set; }
        public virtual ICollection<TblPreviousAging> TblPreviousAgings { get; set; }
        public virtual ICollection<TblSACRRAData> TblSACRRADatas { get; set; }
        public virtual ICollection<TblSACRRADebtorGAPGAL> TblSACRRADebtorGAPGALs { get; set; }
        public virtual ICollection<TblSACRRADebtorStatu> TblSACRRADebtorStatus { get; set; }
        public virtual ICollection<TblSuspenseTransaction> TblSuspenseTransactions { get; set; }
        public virtual ICollection<TblSuspenseTransactionSplit> TblSuspenseTransactionSplits { get; set; }
    }
}
