//------------------------------------------------------------------------------
// <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 TblPersonnel
    {
        public TblPersonnel()
        {
            this.TblDebtors = new HashSet<TblDebtor>();
            this.TblDebtors1 = new HashSet<TblDebtor>();
            this.TblDebtors2 = new HashSet<TblDebtor>();
            this.TblDebtorFeedbacks = new HashSet<TblDebtorFeedback>();
            this.TblEquityCommissionTargets = new HashSet<TblEquityCommissionTarget>();
            this.TblHideDebtorTransactions = new HashSet<TblHideDebtorTransaction>();
            this.TblLeadFeedbacks = new HashSet<TblLeadFeedback>();
            this.TblLeadsCallHistories = new HashSet<TblLeadsCallHistory>();
            this.TblLeadsCallHistories1 = new HashSet<TblLeadsCallHistory>();
            this.TblOverrideAudits = new HashSet<TblOverrideAudit>();
            this.TblSalesVenuePersonnels = new HashSet<TblSalesVenuePersonnel>();
            this.TblSalesVenuePersonnels1 = new HashSet<TblSalesVenuePersonnel>();
            this.TblPersonnel1 = new HashSet<TblPersonnel>();
            this.TblPersonnel11 = new HashSet<TblPersonnel>();
            this.TblPersonnel12 = new HashSet<TblPersonnel>();
            this.TblPersonnel13 = new HashSet<TblPersonnel>();
            this.TblPersonnel14 = new HashSet<TblPersonnel>();
            this.TblPersonnel15 = new HashSet<TblPersonnel>();
            this.TblPersonnel16 = new HashSet<TblPersonnel>();
            this.TblPersonnelBCCRecipiants_DynamicMailingBCCRecipiantOf = new HashSet<TblPersonnelBCCRecipiants_DynamicMailingBCCRecipiantOf>();
            this.TblPersonnelCCRecipiants_DynamicMailingCCRecipiantOf = new HashSet<TblPersonnelCCRecipiants_DynamicMailingCCRecipiantOf>();
            this.TblPersonnelCheckingPersonnel_CheckingTypesCheckingType = new HashSet<TblPersonnelCheckingPersonnel_CheckingTypesCheckingType>();
            this.TblPersonnelDocuments = new HashSet<TblPersonnelDocument>();
            this.TblPersonnelExpertEmailRecipiants_TblContractExpirySettingsExpertEmails = new HashSet<TblPersonnelExpertEmailRecipiants_TblContractExpirySettingsExpertEmails>();
            this.TblPersonnelImportSources = new HashSet<TblPersonnelImportSource>();
            this.TblPersonnelLeaves = new HashSet<TblPersonnelLeave>();
            this.TblPersonnelPersonnel_TblImportSourceImportSource = new HashSet<TblPersonnelPersonnel_TblImportSourceImportSource>();
            this.TblPersonnelPersonnelAllowed_FlowCheckStageFlowCheckStage = new HashSet<TblPersonnelPersonnelAllowed_FlowCheckStageFlowCheckStage>();
            this.TblPersonnelPersonnelToNotify_TblEmailNotifyEmails = new HashSet<TblPersonnelPersonnelToNotify_TblEmailNotifyEmails>();
            this.TblPersonnelRecipiants_TblEmailRecipiantsEmailRecipiantOf = new HashSet<TblPersonnelRecipiants_TblEmailRecipiantsEmailRecipiantOf>();
            this.TblPersonnelTelephones = new HashSet<TblPersonnelTelephone>();
            this.TblPersonnelUnivateTargets = new HashSet<TblPersonnelUnivateTarget>();
            this.TblPersonnelWeeklyTargetSplits = new HashSet<TblPersonnelWeeklyTargetSplit>();
            this.TblPersonnelWeeklyTargetSplitPerSalesVenues = new HashSet<TblPersonnelWeeklyTargetSplitPerSalesVenue>();
            this.TblPersTransfigs = new HashSet<TblPersTransfig>();
            this.TblPodManagers = new HashSet<TblPodManager>();
            this.TblPromotionCommissionStructurePromotionCommissionStructures_TblPersonnelPersonnel = new HashSet<TblPromotionCommissionStructurePromotionCommissionStructures_TblPersonnelPersonnel>();
            this.TblQueryRecipients = new HashSet<TblQueryRecipient>();
            this.TblQueryRecipients1 = new HashSet<TblQueryRecipient>();
            this.TblQueryRecipients2 = new HashSet<TblQueryRecipient>();
            this.TblRawSalesCommDatas = new HashSet<TblRawSalesCommData>();
            this.TblRawSalesCommDatas1 = new HashSet<TblRawSalesCommData>();
            this.TblRescheduleCalls = new HashSet<TblRescheduleCall>();
            this.TblResorts = new HashSet<TblResort>();
            this.TblResorts1 = new HashSet<TblResort>();
            this.TblSalesCommEarnerTypes = new HashSet<TblSalesCommEarnerType>();
            this.TblSalesCommissionInfoes = new HashSet<TblSalesCommissionInfo>();
            this.TblSalesCommissionTransactions = new HashSet<TblSalesCommissionTransaction>();
            this.TblSalesCommissionTransactions1 = new HashSet<TblSalesCommissionTransaction>();
            this.TblSalesCommSkippedCommissions = new HashSet<TblSalesCommSkippedCommission>();
            this.TblSalesCommStatements = new HashSet<TblSalesCommStatement>();
            this.TblSalesVenues = new HashSet<TblSalesVenue>();
            this.TblSalesVenues1 = new HashSet<TblSalesVenue>();
            this.TblSalesVenues2 = new HashSet<TblSalesVenue>();
            this.TblSalesVenues3 = new HashSet<TblSalesVenue>();
            this.TblSalesVenueCAOverrideUsers_TblPersonnelCAOverride = new HashSet<TblSalesVenueCAOverrideUsers_TblPersonnelCAOverride>();
            this.TblSalesVenuePitchedLeadsReportVenue_TblPersonnelPitchedLeadsReportRecipients = new HashSet<TblSalesVenuePitchedLeadsReportVenue_TblPersonnelPitchedLeadsReportRecipients>();
            this.TblSCV2CommissionContract = new HashSet<TblSCV2CommissionContract>();
            this.TblSCV2SpecialStructure = new HashSet<TblSCV2SpecialStructure>();
            this.TblSCV2Transaction = new HashSet<TblSCV2Transaction>();
            this.TblSMICommissionInfoes = new HashSet<TblSMICommissionInfo>();
            this.TblSMITransactions = new HashSet<TblSMITransaction>();
            this.TblStreamlines = new HashSet<TblStreamline>();
            this.TblTelemarketerRegisters = new HashSet<TblTelemarketerRegister>();
            this.TblTFGLeads = new HashSet<TblTFGLead>();
            this.TblTMCommBasicTransactions = new HashSet<TblTMCommBasicTransaction>();
            this.TblTMCommDeals = new HashSet<TblTMCommDeal>();
            this.TblTMCommGroupsTMCommGroups_TblPersonnelPersonnelList = new HashSet<TblTMCommGroupsTMCommGroups_TblPersonnelPersonnelList>();
            this.TblTMCommStructureTMCommStructures_TblPersonnelPersonnelList = new HashSet<TblTMCommStructureTMCommStructures_TblPersonnelPersonnelList>();
            this.TblTMCommTransactions = new HashSet<TblTMCommTransaction>();
            this.TblTransferFunds = new HashSet<TblTransferFund>();
            this.TblUpdateBankingDetails = new HashSet<TblUpdateBankingDetail>();
            this.Transfigurations = new HashSet<Transfiguration>();
            this.Transfigurations1 = new HashSet<Transfiguration>();
        }
    
        public int PersonnelCode { get; set; }
        public Nullable<short> Company { get; set; }
        public string Title { get; set; }
        public string FirstName { get; set; }
        public string Surname { get; set; }
        public string Initials { get; set; }
        public string Department { get; set; }
        public string EmailAddress { get; set; }
        public Nullable<System.Guid> UserCode { get; set; }
        public Nullable<System.DateTime> DateCreated { get; set; }
        public string CreatedBy { get; set; }
        public Nullable<System.DateTime> SuspendedDate { get; set; }
        public Nullable<System.DateTime> DateJoined { get; set; }
        public Nullable<int> TelemarketerOffice { get; set; }
        public Nullable<System.DateTime> DateResigned { get; set; }
        public string IDNumber { get; set; }
        public Nullable<int> BankName { get; set; }
        public string BankAccountNumber { get; set; }
        public string BankAccountHolder { get; set; }
        public Nullable<int> BankBranch { get; set; }
        public Nullable<int> BankAccountType { get; set; }
        public string BranchName { get; set; }
        public string SpouseFirstName { get; set; }
        public string SpouseSurname { get; set; }
        public string SpouseIdNumber { get; set; }
        public string NextOfKinFirstName { get; set; }
        public string NextOfKinSurname { get; set; }
        public Nullable<int> NextofKinRelationship { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public string AsteriskIP { get; set; }
        public string AsteriskUserCode { get; set; }
        public string AsteriskPassword { get; set; }
        public string AsteriskCallerID { get; set; }
        public Nullable<double> BasicSalary { get; set; }
        public Nullable<int> SalesManager { get; set; }
        public Nullable<int> CommStructure { get; set; }
        public Nullable<int> ReportsTo { get; set; }
        public Nullable<int> BookingSessionCounter { get; set; }
        public string PayrollNumber { get; set; }
        public Nullable<bool> Franchisee { get; set; }
        public Nullable<int> CommissionLinkedTo { get; set; }
        public Nullable<int> PitchedLeadsReportVenue { get; set; }
        public Nullable<int> EmailNotificationRecipient { get; set; }
        public Nullable<int> Workdays { get; set; }
        public Nullable<int> employeeLevel { get; set; }
        public Nullable<int> aProTask { get; set; }
        public Nullable<int> UnivateTarget { get; set; }
        public Nullable<bool> CanAssignTasksToAnybody { get; set; }
        public Nullable<int> ConsoftAgentCode { get; set; }
        public Nullable<int> aNotifyTask { get; set; }
        public string EmployeeNumber { get; set; }
        public Nullable<bool> IsHRUser { get; set; }
        public string UserName { get; set; }
        public Nullable<bool> IsPodManager { get; set; }
        public Nullable<bool> IsSalesDirector { get; set; }
        public Nullable<bool> IsConfirmationManager { get; set; }
        public Nullable<bool> IsSalesManager { get; set; }
        public Nullable<bool> IsSalesConsultant { get; set; }
        public Nullable<bool> IsTelemarketer { get; set; }
        public Nullable<bool> IsSurveyor { get; set; }
        public Nullable<bool> ISnowahala { get; set; }
        public Nullable<bool> IsRegionalSalesManager { get; set; }
        public Nullable<int> RegionalSalesManager { get; set; }
        public Nullable<int> ContractFlowRole { get; set; }
        public Nullable<System.DateTime> ContractLastAllocated { get; set; }
        public Nullable<System.Guid> PAUserCode { get; set; }
        public Nullable<int> PAAss { get; set; }
        public Nullable<int> GCRecord { get; set; }
        public string PayPoint { get; set; }
        public Nullable<bool> InvoiceForAccess { get; set; }
        public Nullable<bool> IsTester { get; set; }
        public Nullable<decimal> Addsome { get; set; }
        public Nullable<decimal> Transport { get; set; }
        public string NameAndSurname { get; set; }
        public Nullable<bool> IsNotHuman { get; set; }
        public Nullable<bool> IsTelemarketingDirector { get; set; }
        public Nullable<bool> IsDeveloper { get; set; }
        public Nullable<bool> IsTestAdmin { get; set; }
        public Nullable<System.Guid> SalesCommissionStructure { get; set; }
        public Nullable<System.Guid> SalesCommissionEquityCategory { get; set; }
        public Nullable<int> SalesCommissionRotation { get; set; }
        public string PayrollCompany { get; set; }
        public Nullable<decimal> EquityCommissionPercentage { get; set; }
        public Nullable<int> SalesCommQueryCategory { get; set; }
        public Nullable<bool> AllowAllContractFlow { get; set; }
        public Nullable<int> Supervisor { get; set; }
        public Nullable<bool> IsTrainee { get; set; }
        public Nullable<System.Guid> SMI { get; set; }
        public Nullable<bool> IsSupervisor { get; set; }
        public Nullable<bool> IsTMManager { get; set; }
        public Nullable<bool> IsJuniorManager { get; set; }
        public Nullable<bool> IsManager { get; set; }
        public Nullable<bool> IsPresenter { get; set; }
        public Nullable<bool> HRWarningRecipiant { get; set; }
        public Nullable<bool> HRWarningRecipient { get; set; }
        public Nullable<bool> IsTrainingManager { get; set; }
        public Nullable<int> TrainingManager { get; set; }
        public Nullable<System.Guid> SCVStructure { get; set; }
        public Nullable<int> NewCommStructure { get; set; }
        public Nullable<System.DateTime> BasicEndDate { get; set; }
        public Nullable<int> PrimarySalesDeck { get; set; }
        public Nullable<bool> IsConfirmationClerk { get; set; }
    
        public virtual ICollection<TblDebtor> TblDebtors { get; set; }
        public virtual ICollection<TblDebtor> TblDebtors1 { get; set; }
        public virtual ICollection<TblDebtor> TblDebtors2 { get; set; }
        public virtual ICollection<TblDebtorFeedback> TblDebtorFeedbacks { get; set; }
        public virtual TblDepartment TblDepartment { get; set; }
        public virtual ICollection<TblEquityCommissionTarget> TblEquityCommissionTargets { get; set; }
        public virtual ICollection<TblHideDebtorTransaction> TblHideDebtorTransactions { get; set; }
        public virtual ICollection<TblLeadFeedback> TblLeadFeedbacks { get; set; }
        public virtual ICollection<TblLeadsCallHistory> TblLeadsCallHistories { get; set; }
        public virtual ICollection<TblLeadsCallHistory> TblLeadsCallHistories1 { get; set; }
        public virtual ICollection<TblOverrideAudit> TblOverrideAudits { get; set; }
        public virtual ICollection<TblSalesVenuePersonnel> TblSalesVenuePersonnels { get; set; }
        public virtual ICollection<TblSalesVenuePersonnel> TblSalesVenuePersonnels1 { get; set; }
        public virtual ICollection<TblPersonnel> TblPersonnel1 { get; set; }
        public virtual TblPersonnel TblPersonnel2 { get; set; }
        public virtual ICollection<TblPersonnel> TblPersonnel11 { get; set; }
        public virtual TblPersonnel TblPersonnel3 { get; set; }
        public virtual TblTMCommStructure TblTMCommStructure { get; set; }
        public virtual ICollection<TblPersonnel> TblPersonnel12 { get; set; }
        public virtual TblPersonnel TblPersonnel4 { get; set; }
        public virtual TblSalesVenue TblSalesVenue { get; set; }
        public virtual TblSalesVenue TblSalesVenue1 { get; set; }
        public virtual ICollection<TblPersonnel> TblPersonnel13 { get; set; }
        public virtual TblPersonnel TblPersonnel5 { get; set; }
        public virtual TblSalesCommissionEquity TblSalesCommissionEquity { get; set; }
        public virtual TblSalesCommissionPercentage TblSalesCommissionPercentage { get; set; }
        public virtual ICollection<TblPersonnel> TblPersonnel14 { get; set; }
        public virtual TblPersonnel TblPersonnel6 { get; set; }
        public virtual TblSCV2CommissionStructure TblSCV2CommissionStructure { get; set; }
        public virtual TblSMIIncentive TblSMIIncentive { get; set; }
        public virtual ICollection<TblPersonnel> TblPersonnel15 { get; set; }
        public virtual TblPersonnel TblPersonnel7 { get; set; }
        public virtual TblTelemarketerOffice TblTelemarketerOffice { get; set; }
        public virtual Title Title1 { get; set; }
        public virtual ICollection<TblPersonnel> TblPersonnel16 { get; set; }
        public virtual TblPersonnel TblPersonnel8 { get; set; }
        public virtual ICollection<TblPersonnelBCCRecipiants_DynamicMailingBCCRecipiantOf> TblPersonnelBCCRecipiants_DynamicMailingBCCRecipiantOf { get; set; }
        public virtual ICollection<TblPersonnelCCRecipiants_DynamicMailingCCRecipiantOf> TblPersonnelCCRecipiants_DynamicMailingCCRecipiantOf { get; set; }
        public virtual ICollection<TblPersonnelCheckingPersonnel_CheckingTypesCheckingType> TblPersonnelCheckingPersonnel_CheckingTypesCheckingType { get; set; }
        public virtual ICollection<TblPersonnelDocument> TblPersonnelDocuments { get; set; }
        public virtual ICollection<TblPersonnelExpertEmailRecipiants_TblContractExpirySettingsExpertEmails> TblPersonnelExpertEmailRecipiants_TblContractExpirySettingsExpertEmails { get; set; }
        public virtual ICollection<TblPersonnelImportSource> TblPersonnelImportSources { get; set; }
        public virtual ICollection<TblPersonnelLeave> TblPersonnelLeaves { get; set; }
        public virtual ICollection<TblPersonnelPersonnel_TblImportSourceImportSource> TblPersonnelPersonnel_TblImportSourceImportSource { get; set; }
        public virtual ICollection<TblPersonnelPersonnelAllowed_FlowCheckStageFlowCheckStage> TblPersonnelPersonnelAllowed_FlowCheckStageFlowCheckStage { get; set; }
        public virtual ICollection<TblPersonnelPersonnelToNotify_TblEmailNotifyEmails> TblPersonnelPersonnelToNotify_TblEmailNotifyEmails { get; set; }
        public virtual ICollection<TblPersonnelRecipiants_TblEmailRecipiantsEmailRecipiantOf> TblPersonnelRecipiants_TblEmailRecipiantsEmailRecipiantOf { get; set; }
        public virtual ICollection<TblPersonnelTelephone> TblPersonnelTelephones { get; set; }
        public virtual ICollection<TblPersonnelUnivateTarget> TblPersonnelUnivateTargets { get; set; }
        public virtual ICollection<TblPersonnelWeeklyTargetSplit> TblPersonnelWeeklyTargetSplits { get; set; }
        public virtual ICollection<TblPersonnelWeeklyTargetSplitPerSalesVenue> TblPersonnelWeeklyTargetSplitPerSalesVenues { get; set; }
        public virtual ICollection<TblPersTransfig> TblPersTransfigs { get; set; }
        public virtual ICollection<TblPodManager> TblPodManagers { get; set; }
        public virtual ICollection<TblPromotionCommissionStructurePromotionCommissionStructures_TblPersonnelPersonnel> TblPromotionCommissionStructurePromotionCommissionStructures_TblPersonnelPersonnel { get; set; }
        public virtual ICollection<TblQueryRecipient> TblQueryRecipients { get; set; }
        public virtual ICollection<TblQueryRecipient> TblQueryRecipients1 { get; set; }
        public virtual ICollection<TblQueryRecipient> TblQueryRecipients2 { get; set; }
        public virtual ICollection<TblRawSalesCommData> TblRawSalesCommDatas { get; set; }
        public virtual ICollection<TblRawSalesCommData> TblRawSalesCommDatas1 { get; set; }
        public virtual ICollection<TblRescheduleCall> TblRescheduleCalls { get; set; }
        public virtual ICollection<TblResort> TblResorts { get; set; }
        public virtual ICollection<TblResort> TblResorts1 { get; set; }
        public virtual ICollection<TblSalesCommEarnerType> TblSalesCommEarnerTypes { get; set; }
        public virtual ICollection<TblSalesCommissionInfo> TblSalesCommissionInfoes { get; set; }
        public virtual ICollection<TblSalesCommissionTransaction> TblSalesCommissionTransactions { get; set; }
        public virtual ICollection<TblSalesCommissionTransaction> TblSalesCommissionTransactions1 { get; set; }
        public virtual ICollection<TblSalesCommSkippedCommission> TblSalesCommSkippedCommissions { get; set; }
        public virtual ICollection<TblSalesCommStatement> TblSalesCommStatements { get; set; }
        public virtual ICollection<TblSalesVenue> TblSalesVenues { get; set; }
        public virtual ICollection<TblSalesVenue> TblSalesVenues1 { get; set; }
        public virtual ICollection<TblSalesVenue> TblSalesVenues2 { get; set; }
        public virtual ICollection<TblSalesVenue> TblSalesVenues3 { get; set; }
        public virtual ICollection<TblSalesVenueCAOverrideUsers_TblPersonnelCAOverride> TblSalesVenueCAOverrideUsers_TblPersonnelCAOverride { get; set; }
        public virtual ICollection<TblSalesVenuePitchedLeadsReportVenue_TblPersonnelPitchedLeadsReportRecipients> TblSalesVenuePitchedLeadsReportVenue_TblPersonnelPitchedLeadsReportRecipients { get; set; }
        public virtual ICollection<TblSCV2CommissionContract> TblSCV2CommissionContract { get; set; }
        public virtual ICollection<TblSCV2SpecialStructure> TblSCV2SpecialStructure { get; set; }
        public virtual ICollection<TblSCV2Transaction> TblSCV2Transaction { get; set; }
        public virtual ICollection<TblSMICommissionInfo> TblSMICommissionInfoes { get; set; }
        public virtual ICollection<TblSMITransaction> TblSMITransactions { get; set; }
        public virtual ICollection<TblStreamline> TblStreamlines { get; set; }
        public virtual ICollection<TblTelemarketerRegister> TblTelemarketerRegisters { get; set; }
        public virtual ICollection<TblTFGLead> TblTFGLeads { get; set; }
        public virtual ICollection<TblTMCommBasicTransaction> TblTMCommBasicTransactions { get; set; }
        public virtual ICollection<TblTMCommDeal> TblTMCommDeals { get; set; }
        public virtual ICollection<TblTMCommGroupsTMCommGroups_TblPersonnelPersonnelList> TblTMCommGroupsTMCommGroups_TblPersonnelPersonnelList { get; set; }
        public virtual ICollection<TblTMCommStructureTMCommStructures_TblPersonnelPersonnelList> TblTMCommStructureTMCommStructures_TblPersonnelPersonnelList { get; set; }
        public virtual ICollection<TblTMCommTransaction> TblTMCommTransactions { get; set; }
        public virtual ICollection<TblTransferFund> TblTransferFunds { get; set; }
        public virtual ICollection<TblUpdateBankingDetail> TblUpdateBankingDetails { get; set; }
        public virtual ICollection<Transfiguration> Transfigurations { get; set; }
        public virtual ICollection<Transfiguration> Transfigurations1 { get; set; }
    }
}
