//------------------------------------------------------------------------------
// <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 TblLead
    {
        public int LeadNum { get; set; }
        public string Title { get; set; }
        public string FirstName { get; set; }
        public string Initials { get; set; }
        public string Surname { get; set; }
        public string IDNumber { get; set; }
        public Nullable<System.DateTime> DateOfBirth { get; set; }
        public Nullable<int> MaritalStatus { get; set; }
        public string Cellphone { get; set; }
        public string WorkPhone { get; set; }
        public string HomePhone { get; set; }
        public string EmailAddress { get; set; }
        public string SpouseTitle { get; set; }
        public string SpouseFirstName { get; set; }
        public string SpouseInitials { get; set; }
        public string SpouseSurname { get; set; }
        public string SpouseIDNumber { get; set; }
        public Nullable<System.DateTime> SpouseDateOfBirth { get; set; }
        public string AddressLine1 { get; set; }
        public string AddressLine2 { get; set; }
        public string AddressLine3 { get; set; }
        public string AddressLine4 { get; set; }
        public string AddressLine5 { get; set; }
        public Nullable<System.DateTime> LastCalled { get; set; }
        public Nullable<System.DateTime> ConsentToCall { get; set; }
        public Nullable<bool> DoNotContact { get; set; }
        public Nullable<System.Guid> OwnedBy { get; set; }
        public Nullable<System.Guid> AllocatedTo { get; set; }
        public Nullable<System.DateTime> AllocatedDateTime { get; set; }
        public Nullable<System.DateTime> LeadDate { get; set; }
        public string OPCRef { get; set; }
        public Nullable<System.DateTime> OPCDate { get; set; }
        public string OPCCompany { get; set; }
        public Nullable<int> ImportSource { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public string FaxNumber { get; set; }
        public string Region { get; set; }
        public string LastNumberCalled { get; set; }
        public Nullable<int> Language { get; set; }
        public Nullable<short> Age { get; set; }
        public string Occupation { get; set; }
        public string SpouseOccupation { get; set; }
        public Nullable<bool> RegularHolidays { get; set; }
        public Nullable<int> TotalHolidayDuration { get; set; }
        public Nullable<int> LocalHolidayDuration { get; set; }
        public Nullable<int> IntHolidayDuration { get; set; }
        public string DreamDestination { get; set; }
        public string LastHolidayDestination { get; set; }
        public Nullable<int> LastHolidayYear { get; set; }
        public Nullable<int> AgeBand { get; set; }
        public string LeadID { get; set; }
        public Nullable<int> IncomeGroup { get; set; }
        public Nullable<int> Ethnicity { get; set; }
        public string BatchNumber { get; set; }
        public Nullable<bool> NotQualified { get; set; }
        public string VoucherNo { get; set; }
        public Nullable<int> ReferredBy { get; set; }
        public string Surveyor { get; set; }
        public string Comments { get; set; }
        public Nullable<bool> SurveyedBefore { get; set; }
        public string SurveyedByWhom { get; set; }
        public string PriorPresentedBy { get; set; }
        public Nullable<System.DateTime> DateCreated { get; set; }
        public Nullable<System.Guid> CreatedBy { get; set; }
        public Nullable<bool> DuplicateLead { get; set; }
        public Nullable<System.DateTime> LastShow { get; set; }
        public string CTBatchNumber { get; set; }
        public Nullable<System.Guid> SpecialTMAllocation { get; set; }
        public Nullable<System.DateTime> CallReschedule { get; set; }
        public Nullable<bool> CreditCard { get; set; }
        public string ImportSourceText { get; set; }
        public string RegionText { get; set; }
        public Nullable<bool> HardBlock { get; set; }
        public string SurveyorName { get; set; }
        public string CallStatus { get; set; }
        public Nullable<int> SalesRegion { get; set; }
        public Nullable<System.Guid> Countryname { get; set; }
        public Nullable<int> MostRecentRanking { get; set; }
        public Nullable<System.DateTime> SoftblockDateTime { get; set; }
        public Nullable<bool> SoftBlock { get; set; }
        public Nullable<bool> TimeOffLead { get; set; }
        public Nullable<int> TimeOffVoucherNumber { get; set; }
        public Nullable<int> TimeOffNonVoucherNumber { get; set; }
        public Nullable<System.Guid> OccupationNew { get; set; }
        public Nullable<System.Guid> SpouseOccupationNew { get; set; }
        public Nullable<int> HolidayInNigeria { get; set; }
        public Nullable<int> HolidayInternational { get; set; }
        public Nullable<bool> UseCreditCard { get; set; }
        public Nullable<bool> UseCheque { get; set; }
        public Nullable<bool> UseATM { get; set; }
        public Nullable<int> OPCLocation { get; set; }
        public string MarketingCampaign { get; set; }
        public Nullable<bool> CanMakeBooking { get; set; }
    
        public virtual TblEthnicity TblEthnicity { get; set; }
        public virtual TblImportSource TblImportSource { get; set; }
        public virtual TblIncomeBracket TblIncomeBracket { get; set; }
        public virtual Title Title1 { get; set; }
        public virtual TblTimeOffNoVoucher TblTimeOffNoVoucher { get; set; }
        public virtual TblTimeOffVoucher TblTimeOffVoucher { get; set; }
        public virtual Title Title2 { get; set; }
    }
}
