//------------------------------------------------------------------------------
// <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 TblDebtorBanking
    {
        public TblDebtorBanking()
        {
            this.TblDebtorBankingAmendments = new HashSet<TblDebtorBankingAmendment>();
            this.TblPortfolioNotes = new HashSet<TblPortfolioNote>();
        }
    
        public int OID { get; set; }
        public Nullable<System.DateTime> DateCreated { get; set; }
        public string CreatedBy { get; set; }
        public Nullable<int> DebtorNo { get; set; }
        public Nullable<System.Guid> BankDetail { get; set; }
        public Nullable<System.DateTime> StartDate { get; set; }
        public Nullable<int> AcbType { get; set; }
        public Nullable<int> StrikeDay { get; set; }
        public Nullable<decimal> Amount { get; set; }
        public Nullable<decimal> Percentage { get; set; }
        public Nullable<System.DateTime> InvalidDate { get; set; }
        public Nullable<System.Guid> RejectionCode { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public Nullable<int> GCRecord { get; set; }
        public Nullable<System.DateTime> CancelledDate { get; set; }
        public Nullable<System.DateTime> LastGenerated { get; set; }
        public Nullable<System.DateTime> EndDate { get; set; }
        public Nullable<int> Status { get; set; }
        public Nullable<System.DateTime> LastUpdated { get; set; }
        public Nullable<bool> RunASAP { get; set; }
        public Nullable<bool> CreditCard { get; set; }
        public string CCToken { get; set; }
        public Nullable<bool> Amendment { get; set; }
        public Nullable<bool> SendToCollectionSystem { get; set; }
        public Nullable<System.DateTime> DateLastSentToCollectionSystem { get; set; }
        public Nullable<int> NumberOfMonths { get; set; }
        public Nullable<int> MonthsRemaining { get; set; }
        public Nullable<int> CreditCardDetails { get; set; }
        public Nullable<int> ClubBanking { get; set; }
        public Nullable<int> ACBDefaultBanking { get; set; }
        public Nullable<System.DateTime> OnHoldUpUntil { get; set; }
        public string ACBStatus { get; set; }
        public Nullable<int> OverrideDefaultBanking { get; set; }
    
        public virtual TblDebtor TblDebtor { get; set; }
        public virtual ICollection<TblDebtorBankingAmendment> TblDebtorBankingAmendments { get; set; }
        public virtual ICollection<TblPortfolioNote> TblPortfolioNotes { get; set; }
    }
}
