Skip to content

Relationships ​

Inferred foreign-key relationships for the Ethos Building Services database. The live database exports no foreign keys, so these were derived by parsing the SQL definition text of all 102 views and 516 stored procedures (JOIN/WHERE equijoins) plus column-naming conventions, and validated against the table schemas in schemas/tables/ — both endpoints of every relationship exist as real table columns.

Confidence levels:

  • high — the join appears in two or more SQL objects, or in SQL plus a naming-convention match.
  • medium — the join appears in exactly one SQL object.
  • low — inferred from column naming only (e.g. primeJobID → dbo.primeJobs.Id), never observed in a join.

Machine-readable source: relationships.json. Totals: 177 relationships (109 high, 56 medium, 12 low).

Note: the 14 column-level matches between primeExportsEndataScopeImport and its _stage twin are upsert matching keys from the staging ETL, not foreign keys.

prime* — Prime Ecosystem job management ​

FromToConfidenceEvidence
dbo.PrimeAccountsPayableInvoices.WorkOrderIddbo.primeWorkOrders.idhighdbo.vprimeFinancialschedule_3_work_orders, dbo.vPrimeHomeOwnerWarrantyCheck
dbo.primeAccountsReceivableInvoices.InvoicedTodbo.primeContacts.idmediumdbo.vPrimeJobinvoicesObjectivedb
dbo.primeAccountsReceivableInvoicesItemAllocation.AllocationIddbo.primeAllocations.Idhighdbo.vPrimeSalesinvoicesObjectivedb, dbo.vprimeSOMreport
dbo.primeAccountsReceivableInvoicesItemAllocation.InvoiceItemIddbo.primeAccountsReceivableInvoicesItem.Idhighdbo.vPrimeSalesinvoicesObjectivedb, dbo.vprimeSOMreport, dbo.spEthSyncQueueMissingObjects
dbo.primeAccountsReceivableInvoicesItem.InvoiceIddbo.primeAccountsReceivableInvoices.Idhighdbo.vPrimeSalesinvoicesObjectivedb, dbo.vprimeSOMreport, dbo.spEthSyncQueueMissingObjects
dbo.primeAccountsReceivableInvoices.JobIddbo.primeJobs.Idhighdbo.vprimeFinancialschedule_1_jobandinvoicedetails, dbo.vprimeSOMreport, dbo.vPrimeSOM_Report_1 (+6 more)
dbo.primeAllocations.AllocationStatusIddbo.primeAllocatonStatuses.idhighdbo.vPrimeSalesinvoicesObjectivedb, dbo.vprimeSOMreport, dbo.vPrimeSOM_Report_5
dbo.primeAllocations.AssignedContactIddbo.primeContacts.idmediumdbo.spPrimeGetJobAllocations
dbo.primeAllocations.AssignedIddbo.primeUsers.idhighdbo.vprimeSOMreport, dbo.vPrimeSOM_Report_1, dbo.vPrimeSOM_Report_5
dbo.primeAllocations.JobIddbo.primeJobs.Idhighdbo.vPrimeSOM_Report_1, dbo.vPrimeSOM_Report_5, dbo.spPrimeGetAllocationTypesByPhoneCallID
dbo.primeAllocations.JobIddbo.makesafePhoneCall.PrimeJobIDmediumdbo.spPrimeGetAllocationTypesByPhoneCallID
dbo.primeAppointments.appointmentTypeIddbo.primeAppointmentType.idhighdbo.vOptimoRouteOrders, dbo.VPrimeEstimatorstagesEstimatorworkflowdb, dbo.vwPrimeAppointmentReport (+6 more)
dbo.primeAppointments.appointmentTypeIddbo.ethBookingService.primeAppointmentTypeIDmediumdbo.spOptimoRouteGetAppointmentQueue
dbo.primeAppointments.createdBydbo.primeUsers.fullNamehighdbo.spOptimoRouteGetNotScheduledOrders, dbo.spOptimoRouteGetNotScheduledOrdersEmailQueue, dbo.spOptimoRouteGetScheduledOrders
dbo.primeAppointments.jobIddbo.primeJobs.Idhighdbo.vOptimoRouteOrders, dbo.VPrimeEstimatorstagesEstimatorworkflowdb, dbo.vwPrimeAppointmentReport (+4 more)
dbo.primeAppointments.primaryUserIddbo.primeUsers.idhighdbo.vOptimoRouteOrders, dbo.vwPrimeAppointmentReport, dbo.spOptimoRouteGetAppointmentQueue (+3 more)
dbo.primeAppointments.primaryUserIddbo.primeContacts.idmediumdbo.VPrimeEstimatorstagesEstimatorworkflowdb
dbo.primeAttachment.attachmentTypeIddbo.primeAttachmentType.idhighdbo.vPrimeHomeOwnerWarrantyCheck, dbo.spPrimeGetAttachmentInformation, dbo.spPrimeGetJobAttachments
dbo.primeAttachment.objectIddbo.primeJobs.Idmediumdbo.vprimeSWMSreport
dbo.primeContactLocation.primecontactIDdbo.primeUsers.contactIdmediumdbo.spEthBookingEstimatorJobDistanceQueue
dbo.primeContactLocation.primecontactIDdbo.primeContacts.idhighdbo.spEthBookingGetMissingEstimatorLocations, dbo.spEthGetBookingEstimatorLocations, dbo.spMakesafeSearchPhoneCallTrades (+2 more)
dbo.primeContactRelationships.contactIddbo.primeContacts.idhighdbo.spMakeSafePhoneCallRelatedPrimeJobs, dbo.spPrimeGetJobContactRelationships, dbo.spPrimeJobSearch
dbo.primeContactRelationships.jobIddbo.primeJobs.Idhighdbo.spElevenLabsGetConversationInitialization, dbo.spMakeSafePhoneCallRelatedPrimeJobs, dbo.spPrimeGetJobContactRelationships (+1 more)
dbo.primeContactTrades.ContactIDdbo.primeContacts.idhighdbo.spMakesafeSearchPhoneCallTrades, dbo.spMCPSearchTrades
dbo.primeContactTrades.TradeIDdbo.primeTrades.idhighdbo.spMakesafeSearchPhoneCallTrades, dbo.spMCPSearchTrades
dbo.primeEstimateCategories.categoryIddbo.primeEstimateCategoryItems.categoryIdhighdbo.spPrimeDeleteEstimatesForJob, dbo.spPrimePeerReviewEstimatedetails
dbo.primeEstimates.estimateIddbo.primeEstimateCategories.estimateIdhighdbo.spPrimeDeleteEstimatesForJob, dbo.spPrimePeerReviewEstimatedetails
dbo.primeEstimates.jobIddbo.primeJobs.Idhighdbo.spEthGetEstimateReview, dbo.spPrimePeerReviewEstimatedetails
dbo.primeExportFeedbackRegister.JobNumberdbo.primeJobs.JobNumbermediumdbo.vPrimeExportFeedbackRegister
dbo.primeExportJobsRegistered.CurrentStatusdbo.ethFactStatus.StatusNamemediumdbo.vPrimeExportJobsRegistered
dbo.primeExportJobsRegistered.CurrentStatusdbo.primeStatuses.namemediumdbo.vPrimeExportJobsRegistered
dbo.primeExportJobsRegistered.JobNumberdbo.primeJobs.JobNumbermediumdbo.vPrimeExportJobsRegistered
dbo.primeExportJobTags.jobNumberdbo.primeJobs.JobNumbermediumdbo.spEthKpiTagJobs
dbo.primeExportsEndataScopeImport.Categorydbo.primeExportsEndataScopeImport_stage.Categoryhighdbo.spPrimeScope_UpsertStageRowToOrigin, dbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.ClientReferencedbo.primeExportsEndataScopeImport_stage.ClientReferencehighdbo.spPrimeScope_UpsertStageRowToOrigin, dbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.Descriptiondbo.primeExportsEndataScopeImport_stage.Descriptionmediumdbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.EstimateLabeldbo.primeExportsEndataScopeImport_stage.EstimateLabelhighdbo.spPrimeScope_UpsertStageRowToOrigin, dbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.GSTdbo.primeExportsEndataScopeImport_stage.GSTmediumdbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.Hdbo.primeExportsEndataScopeImport_stage.Hmediumdbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.JobNumberdbo.primeExportsEndataScopeImport_stage.JobNumberhighdbo.spPrimeScope_UpsertStageRowToOrigin, dbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.Ldbo.primeExportsEndataScopeImport_stage.Lmediumdbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.LabourQtydbo.primeExportsEndataScopeImport_stage.LabourQtymediumdbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.MaterialQtydbo.primeExportsEndataScopeImport_stage.MaterialQtymediumdbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.MaterialRatedbo.primeExportsEndataScopeImport_stage.MaterialRatemediumdbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.TotalSelldbo.primeExportsEndataScopeImport_stage.TotalSellmediumdbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.Tradedbo.primeExportsEndataScopeImport_stage.Tradehighdbo.spPrimeScope_UpsertStageRowToOrigin, dbo.spUpsertPrimeScopeImportV2
dbo.primeExportsEndataScopeImport.Wdbo.primeExportsEndataScopeImport_stage.Wmediumdbo.spUpsertPrimeScopeImportV2
dbo.primeJobCustomField.jobIddbo.primeJobs.Idhighdbo.vPrimeSOM_Report_1, dbo.vPrimeSOM_Report_2
dbo.primeJobDateHistory.JobIddbo.primeJobs.Idhighdbo.spEthRepairlineJobDatesQueueTasks, dbo.spEthSedgwickJobDatesqueueTasks, dbo.spPrimeGetJobDates
dbo.primeJobFilterTags.FilterTagIddbo.ethKpiMeasures.JobFilterTagIDhighdbo.spEthKpiResultsActive, dbo.spEthKpiResultsActiveAll, dbo.spEthKpiResultsbyJobId
dbo.primeJobFilterTags.JobIddbo.primeJobs.Idhighdbo.spEthKpiResultsActive, dbo.spEthKpiResultsActiveAll, dbo.spEthKpiResultsbyJobId
dbo.primeJobs.AssignedIddbo.primeUsers.idhighdbo.vEthKpiResultsActive_Deprecated, dbo.vEthKpiResultsClosed_Deprecated, dbo.vEthKpiResults_Deprecated (+4 more)
dbo.primeJobs.CaseManagerIddbo.primeUsers.idhighdbo.vPB_JobDim, dbo.VPrimeCompletiontimesObjectivedb, dbo.VPrimeEstimatorstagesEstimatorworkflowdb (+2 more)
dbo.primeJobs.CatastropheCodeIddbo.primeCatastropheCodes.Idhighdbo.spEthKpiResultsActive, dbo.spEthKpiResultsActiveAll
dbo.primeJobs.ClientIddbo.primeContacts.idhighdbo.VPrimeCompletiontimesObjectivedb, dbo.vprimeEstimatorQuoteConversions, dbo.vPrimeSalesinvoicesObjectivedb (+6 more)
dbo.primeJobs.CustomerIddbo.primeContacts.idhighdbo.spMakeSafePhoneCallRelatedPrimeJobs, dbo.spPrimeGetJobContactRelationships
dbo.primeJobs.EstimatorIddbo.primeUsers.idhighdbo.PrimeValidations, dbo.vEthKpiResultsActive_Deprecated, dbo.vEthKpiResultsClosed_Deprecated (+6 more)
dbo.primeJobs.JobNumberdbo.primeExportWIPUpdates.JobNumbermediumdbo.vPrimeExportLatestWIPUpdate
dbo.primeJobsLocation.jobIDdbo.ethKpiResultsActive.JobIdhighdbo.vEthActiveJobsLocation, dbo.vEthActiveJobsLocationVIC
dbo.primeJobsLocation.jobIDdbo.ethBooking.primeJobIDhighdbo.vEthBookingLocations, dbo.vEthBookingLocationsQLD, dbo.vEthBookingLocationsVIC (+1 more)
dbo.primeJobsLocation.jobIDdbo.primeJobs.Idhighdbo.vEthBookingLocationsQLD, dbo.vEthBookingLocationsVIC, dbo.vOptimoRouteOrderLocationsQLD (+5 more)
dbo.primeJobsLocation.jobIDdbo.optimoRouteOrder.primeJobIDhighdbo.vOptimoRouteOrderLocationsQLD, dbo.vOptimoRouteOrderLocationsVIC
dbo.primeJobsLocationTask.jobIDdbo.primeJobs.Idmediumdbo.spPrimeGetJobsLocationTaskQueue
dbo.primeJobs.PerilIddbo.primePerils.idmediumdbo.spPrimeGetJobInformation
dbo.primeJobs.PrimaryContactIddbo.primeContacts.idhighdbo.vOptimoRouteOrders, dbo.spMakesafeUpsertPhoneCallFromPrimeJob, dbo.spMCPGetPrimeJob (+5 more)
dbo.primeJobs.Statedbo.ethBookingEstimatorSkill.Statemediumdbo.spEthBookingEstimatorJobDistanceQueue
dbo.primeJobs.Statedbo.ethBookingOffice.Statemediumdbo.spOptimoRouteGetAppointmentQueue
dbo.primeJobs.StatusIddbo.primeStatuses.idhighdbo.VPrimeCompletiontimesObjectivedb, dbo.VPrimeEstimatorstagesEstimatorworkflowdb, dbo.vprimeFinancialschedule_1_jobandinvoicedetails (+6 more)
dbo.primeJobs.SupervisorIddbo.primeUsers.idhighdbo.vEthKpiResultsActive_Deprecated, dbo.vEthKpiResultsClosed_Deprecated, dbo.vEthKpiResults_Deprecated (+6 more)
dbo.primeJobs.SupervisorIddbo.ethKpiSupervisorType.supervisorIdhighdbo.vEthKpiResultsActive_Deprecated, dbo.vEthKpiResultsClosed_Deprecated, dbo.vEthKpiResults_Deprecated
dbo.primeLockedEstimateCategories.CategoryIDdbo.primeLockedEstimateCategoryItems.CategoryIDhighdbo.vprimeFinancialschedule_2_estimates, dbo.spEndataEstimateUploads, dbo.spPrimeBuildLockedEstimatesThisYear (+1 more)
dbo.primeLockedEstimates.EstimateIDdbo.primeLockedEstimateCategories.EstimateIDhighdbo.vprimeFinancialschedule_2_estimates, dbo.spEndataEstimateUploads, dbo.spPrimeBuildLockedEstimatesThisYear
dbo.primeLockedEstimates.jobIddbo.primeJobs.Idhighdbo.VPrimeAllestimatevalueObjectivedb, dbo.vprimeFinancialschedule_2_estimates, dbo.vprimejobsthismonthObjectivedb (+4 more)
dbo.primeMilestoneItemFirstValue.jobIddbo.primeJobs.Idhighdbo.spEthRepairlineJobDatesQueueTasks, dbo.spEthSedgwickJobDatesqueueTasks, dbo.spPrimeGetJobDates
dbo.primeMilestoneItem.jobIddbo.primeJobs.Idhighdbo.spEthRepairlineJobDatesQueueTasks, dbo.spEthSedgwickJobDatesqueueTasks, dbo.spPrimeGetJobDates
dbo.primeScheduleItem.ObjectIddbo.primeWorkOrders.idhighdbo.spPrimeGetWIPUpdatesWorksCompleted, dbo.spPrimeGetWIPUpdatesWorksInProgress, dbo.spPrimeGetWIPUpdatesWorksUpcoming
dbo.primeSchedule.JobIddbo.primeJobs.Idhighdbo.spPrimeGetWIPUpdatesWorksCompleted, dbo.spPrimeGetWIPUpdatesWorksInProgress, dbo.spPrimeGetWIPUpdatesWorksUpcoming
dbo.primeSchedule.ScheduleIddbo.primeScheduleItem.ScheduleIdhighdbo.spPrimeGetWIPUpdatesWorksCompleted, dbo.spPrimeGetWIPUpdatesWorksInProgress, dbo.spPrimeGetWIPUpdatesWorksUpcoming
dbo.primeSiteForms.jobIddbo.primeJobs.Idhighdbo.PrimeValidations, dbo.VPrimeValidations, dbo.spPrimePeerReviewformdetails
dbo.primeSiteForms.siteFormIddbo.primeSiteFormItems.siteFormIdhighdbo.PrimeValidations, dbo.VPrimeValidations, dbo.spPrimePeerReviewformdetails
dbo.primeStatusHistories_Job.JobIddbo.primeJobs.Idhighdbo.vPB_JobDim, dbo.VPrimeCompletiontimesObjectivedb, dbo.VPrimeEstimatorstagesEstimatorworkflowdb (+4 more)
dbo.primeStatusHistories_Job.JobIddbo.primeEstimates.jobIdmediumdbo.vprimefirstquote
dbo.primeStatusHistories_Job.NewStatusIddbo.primeStatuses.idmediumdbo.vPB_JobDim
dbo.primeUsers.contactIddbo.primeContacts.idhighdbo.vOptimoRouteOrders, dbo.spEthBookingGetMissingEstimatorLocations, dbo.spEthGetBookingEstimatorLocations (+6 more)
dbo.primeWorkOrderItems.workorderiddbo.primeWorkOrders.idmediumdbo.vprimeFinancialschedule_3_work_orders
dbo.primeWorkOrderItems.workorderiddbo.primeScheduleItem.ObjectIdhighdbo.spPrimeGetWIPUpdatesWorksCompleted, dbo.spPrimeGetWIPUpdatesWorksInProgress, dbo.spPrimeGetWIPUpdatesWorksUpcoming
dbo.primeWorkOrders.assignediddbo.primeContacts.idhighdbo.vprimeFinancialschedule_3_work_orders, dbo.vPrimeHomeOwnerWarrantyCheck, dbo.spOptimoRouteGetNotScheduledOrders (+2 more)
dbo.primeWorkOrders.created_bydbo.primeUsers.fullNamehighdbo.spOptimoRouteGetNotScheduledOrders, dbo.spOptimoRouteGetNotScheduledOrdersEmailQueue
dbo.primeWorkOrders.jobiddbo.primeJobs.Idhighdbo.vprimeFinancialschedule_3_work_orders, dbo.vprimeSOMreport, dbo.vPrimeSOM_Report_6 (+1 more)

eth* — Ethos extensions (booking, WIP, KPI, AI, tasks) ​

FromToConfidenceEvidence
dbo.ethAIPrimeJobSummary.primeJobIDdbo.primeJobs.Idhighdbo.spEthAIGetAllPrimeJobSummaries, dbo.spEthAIGetPrimeJobSummariesPaged, naming-convention
dbo.ethAIPrimeJobSummary.primeJobIDdbo.ethBooking.primeJobIDmediumdbo.spEthBookingGet
dbo.ethAppointmentDefinitionUser.AppointmentDefinitionIddbo.ethAppointmentDefinition.AppointmentDefinitionIdmediumdbo.spEthAppointmentDefinitionsGet
dbo.ethAppointmentDefinitionUser.PrimeUserIddbo.primeUsers.idlownaming-convention
dbo.ethAppointmentInstance.PrimeAppointmentIddbo.primeAppointments.idlownaming-convention
dbo.ethAppointmentInstance.PrimeUserIddbo.primeUsers.idlownaming-convention
dbo.ethBookingAppointmentSkill.primeAppointmentTypeIDdbo.primeAppointmentType.idlownaming-convention
dbo.ethBookingEstimatorJobDistance.primeEstimatorUserIDdbo.ethBookingEstimatorSkill.primeEstimatorIDhighdbo.spEthBookingEstimatorJobDistanceQueue, dbo.spEthBookingGetAvailabilityDetails
dbo.ethBookingEstimatorJobDistance.primeJobIDdbo.primeJobsLocation.jobIDmediumdbo.spEthBookingEstimatorJobDistanceQueue
dbo.ethBookingEstimatorJobDistance.primeJobIDdbo.primeJobs.Idlownaming-convention
dbo.ethBookingEstimatorSkill.primeEstimatorIDdbo.primeUsers.idhighdbo.vEthBookingAvailabilityDetails, dbo.spEthBookingEstimatorJobDistanceQueue, dbo.spEthBookingGetAvailabilityDetails (+6 more)
dbo.ethBookingEstimatorSkill.Statedbo.ethBookingDaySlot.Statehighdbo.vEthBookingAvailabilityDetails, dbo.spEthBookingGetAvailabilityDetails
dbo.ethBooking.primeAppointmentIDdbo.primeAppointments.idhighdbo.spEthBookingGetChangedAppointments, dbo.spEthBookingGetOnBook, dbo.spEthBookingGetOnCancel (+2 more)
dbo.ethBooking.primeAppointmentTypeIDdbo.primeAppointmentType.idhighdbo.spEthBookingGetByCode, dbo.spEthBookingGetByID, dbo.spEthBookingGetByJobID (+1 more)
dbo.ethBooking.primeAppointmentTypeIDdbo.ethBookingService.primeAppointmentTypeIDhighdbo.spEthBookingGetByCode, dbo.spEthBookingGetByID, dbo.spEthBookingGetByJobID
dbo.ethBooking.primeContactIDdbo.primeContacts.idhighdbo.spEthBookingGet, dbo.spEthBookingGetByCode, dbo.spEthBookingGetByID (+6 more)
dbo.ethBooking.primeJobIDdbo.primeJobs.Idhighdbo.vEthBookingCancelledByDays, dbo.vEthBookingPendingByDays, dbo.spEthBookingClear (+6 more)
dbo.ethBooking.primeUserIDdbo.primeUsers.idhighdbo.spEthBookingGet, dbo.spEthBookingGetByCode, dbo.spEthBookingGetByID (+2 more)
dbo.ethBookingService.primeAppointmentTypeIDdbo.primeAppointmentType.idhighdbo.spEthBookingGetAppointmentTypesByEstimator, naming-convention
dbo.ethBookingService.SkillCodedbo.ethBookingEstimatorSkill.SkillCodemediumdbo.spEthBookingGetAppointmentTypesByEstimator
dbo.ethECDHistory.JobIDdbo.primeJobs.Idmediumdbo.spEthNexusECDQueueTasks
dbo.ethFormSharingCode.PrimeContactIDdbo.primeContacts.idlownaming-convention
dbo.ethFormSharingCode.PrimeJobIDdbo.primeJobs.Idlownaming-convention
dbo.ethFormTriage.PrimeContactIDdbo.primeContacts.idlownaming-convention
dbo.ethFormTriage.PrimeJobIDdbo.primeJobs.Idlownaming-convention
dbo.ethGeoLocationStatus.primeContactIDdbo.primeContacts.idlownaming-convention
dbo.ethKpiJobInstance.JobIDdbo.primeJobs.Idmediumdbo.vEthKpiResultsActive_Deprecated
dbo.ethKpiJobInstance.JobIDdbo.ethKpiJobSummary.JobIDmediumdbo.vEthKpiResults_Deprecated
dbo.ethKpiJobInstance.StatusNamedbo.primeStatuses.namehighdbo.vEthKpiActiveJobs, dbo.vEthKpiClosedJobs
dbo.ethKpiJobInstance.StatusNamedbo.ethKpiJobSummary.StatusNamemediumdbo.vEthKpiResults_Deprecated
dbo.ethKpiJobSummary.JobIDdbo.primeJobs.Idhighdbo.spEthKpiResultsActive, dbo.spEthKpiResultsActiveAll, dbo.spEthKpiResultsbyJobId
dbo.ethKpiMeasures.StatusNamedbo.ethKpiJobInstance.StatusNamemediumdbo.vEthKpiResultsActive_Deprecated
dbo.ethKpiMeasures.StatusNamedbo.ethKpiJobSummary.StatusNamehighdbo.vEthKpiResultsClosed_Deprecated, dbo.vEthKpiResults_Deprecated, dbo.spEthKpiResultsActive (+2 more)
dbo.ethKpiResultsActive.JobIddbo.primeJobs.Idmediumdbo.vEthActiveJobsPostcodes
dbo.ethKpiRole.StatusNamedbo.ethKpiJobSummary.StatusNamehighdbo.spEthKpiResultsActive, dbo.spEthKpiResultsActiveAll, dbo.spEthKpiResultsbyJobId
dbo.ethKpiSupervisorType.supervisorIddbo.primeUsers.idmediumdbo.spMakesafeGetAllKpiSupervisorTypes
dbo.ethListsFact.EndataTradesdbo.ethTradeMatchupFact.ProposedTrademediumdbo.spGetEndataTradesMatchup
dbo.EthPeerReviewStatus.JobNumberdbo.primeJobs.JobNumbermediumdbo.spEthPopulatePeerReviewStatus
dbo.ethPrimeInvoiceUser.primeAccountsReceivableInvoicesIddbo.primeAccountsReceivableInvoices.Idlownaming-convention
dbo.ethPrimeInvoiceUser.primeUserIddbo.primeUsers.idlownaming-convention
dbo.ethTask.PrimeObjectIDdbo.primeJobs.Idhighdbo.spEthAIPrimeUpsertJobSummaryQueue, dbo.spEthNexusECDQueueTasks, dbo.spEthRepairlineJobDatesQueueTasks (+1 more)
dbo.ethTask.PrimeObjectIDdbo.ethBooking.primeJobIDhighdbo.spEthBookingGet, dbo.spEthTaskGetNextX
dbo.ethWIPJobHidden.JobIddbo.primeJobs.Idhighdbo.vWIPApprovedCurrentWeekBySupervisor, dbo.vWIPUpdateBySupervisorandWeek, dbo.spEthWIPCaptureJobWeeklySnapshot
dbo.ethWIPJobHidden.JobIddbo.ethWIPJobWeeklySnapshot.PrimeJobIdhighdbo.vWIPUpdateCurrentWeekSummary, dbo.vWIPUpdateDrilldownByWeek
dbo.ethWIPJobHistoryContacts.contactIddbo.primeContacts.idhighdbo.spEthWIPJobEmailGet, dbo.spEthWIPJobEmailQueue, dbo.spEthWIPJobEmailQueueAggregated
dbo.ethWIPJobHistoryContacts.WIPJobHistoryIDdbo.ethWIPJobHistory.IDhighdbo.spEthWIPJobClientNoteQueue, dbo.spEthWIPJobEmailGet, dbo.spEthWIPJobEmailQueue (+1 more)
dbo.ethWIPJobHistory.JobIddbo.primeJobs.Idhighdbo.vWIPSkippedJobReasons, dbo.vwWIPSkippedJobReasons, dbo.spEthWIPJobClientNoteQueue (+3 more)
dbo.ethWIPJobHistory.JobIddbo.ethWIPJobWeeklySnapshot.PrimeJobIdmediumdbo.vwWIPSkippedJobReasons
dbo.ethWIPJobHistory.SupervisorUserIddbo.primeUsers.idhighdbo.vWIPSkippedJobReasons, dbo.vwWIPSkippedJobReasons, dbo.spEthWIPJobClientNoteQueue (+5 more)
dbo.ethWIPJobWeeklySnapshot.PrimeJobIddbo.primeJobs.Idhighdbo.vWIPUpdateDrilldownByWeek, dbo.spEthWIPCaptureJobWeeklySnapshot, naming-convention
dbo.ethWIPJobWeeklySnapshot.StatusIddbo.primeStatuses.idhighdbo.vWIPUpdateDrilldownByWeek, dbo.vwWIPSkippedJobReasons

endata* — Endata cost centres and locations ​

FromToConfidenceEvidence
dbo.endataCostCentreDescriptions.CostCentreIddbo.endataCostCentres.IDmediumdbo.spSyncCostCentreDescriptions

Other — makesafe, OptimoRoute, ElevenLabs, n8n, WIP export ​

FromToConfidenceEvidence
dbo.elevenLabsConversations.MessageIDdbo.makesafeMessage.IDhighdbo.spMakesafeGetAllMessages, dbo.spMakesafeGetMessagesPaged
dbo.elevenLabsConversations.PhoneCallIDdbo.makesafePhoneCall.IDhighdbo.vMakeSafePhonecalls, dbo.vMakeSafePhonecallsNoAlerts, dbo.spMakesafeGetAllPhoneCalls (+5 more)
dbo.makesafeEventLog.ActionIDdbo.makesafeEventLogAction.IDmediumdbo.spMakesafeGetAllEventLogs
dbo.makesafeEventLog.UserIDdbo.makesafeUser.IDmediumdbo.spMakesafeGetAllEventLogs
dbo.makesafeMessage.ClaimNumberdbo.primeJobs.ClientReferencehighdbo.spMakesafeGetAllMessages, dbo.spMakesafeGetMessagesPaged
dbo.makesafeMessage.ClaimNumberdbo.primeJobs.JobNumberhighdbo.spMakesafeGetAllMessages, dbo.spMakesafeGetMessagesPaged
dbo.makesafePhoneCall.AssignedUserIDdbo.makesafeUser.IDhighdbo.vMakeSafePhonecalls, dbo.vMakeSafePhonecallsNoAlerts, dbo.spMakesafeGetActivePhoneCalls (+6 more)
dbo.makesafePhoneCallLocation.PhoneCallIDdbo.makesafePhoneCall.IDmediumdbo.spMakesafeGetPhoneCallbyID
dbo.makesafePhoneCall.PrimeJobIDdbo.primeJobs.Idhighdbo.vMakeSafePhonecalls, dbo.vMakeSafePhonecallsNoAlerts, dbo.spMakesafeGetGeoLocationPhoneCalls (+2 more)
dbo.makesafePhoneCallTrade.PrimeContactIDdbo.primeContacts.idhighdbo.spMakesafeGetPhoneCallTrades, dbo.spMakesafeSearchPhoneCallTrades, naming-convention
dbo.makesafeSharingCode.PhoneCallIDdbo.makesafePhoneCall.IDhighdbo.spMakesafeGetAllSharingCodes, dbo.spMakesafeGetPhoneCallbyCode
dbo.makesafeSharingCode.PhoneCallIDdbo.makesafePhoneCallTrade.PhoneCallIDmediumdbo.spMakesafeGetPhoneCallTradeByCode
dbo.makesafeSharingCode.PrimeContactIDdbo.primeContacts.idhighdbo.spMakesafeGetAllSharingCodes, dbo.spMakesafeGetPhoneCallTradeByCode, naming-convention
dbo.makesafeSharingCode.PrimeContactIDdbo.makesafePhoneCallTrade.PrimeContactIDmediumdbo.spMakesafeGetPhoneCallTradeByCode
dbo.makesafeSMSMessage.FromUserIDdbo.makesafeUser.IDhighdbo.spMakesafeGetAllSMSMessages, dbo.spMakesafeGetQueuedSMSMessages, dbo.spMakesafeGetQueuedSMSMessagesCount (+2 more)
dbo.makesafeSMSMessage.ToUserIDdbo.makesafeUser.IDhighdbo.spMakesafeGetAllSMSMessages, dbo.spMakesafeGetQueuedSMSMessages, dbo.spMakesafeGetQueuedSMSMessagesCount (+2 more)
dbo.makesafeUserSchedule.UserIDdbo.makesafeUser.IDhighdbo.spMakesafeGetActiveUserScheduleMobiles, dbo.spMakesafeGetAllUserSchedules, dbo.spMakesafeGetUserSchedule (+3 more)
dbo.n8nExecutions.workflowIddbo.n8nFlows.idhighdbo.vN8nFlowExecutionRecent, dbo.vN8nFlowExecutionSummary, dbo.spN8nQueueEscalationFailedExecutions
dbo.optimoRouteDriverDay.EstimatorIDdbo.primeUsers.idhighdbo.vEthBookingAvailabilityDetails, dbo.vOptimoRouteDriverDay, dbo.spEthBookingGetAvailabilityDetails
dbo.optimoRouteDriverDay.EstimatorIDdbo.ethBookingEstimatorSkill.primeEstimatorIDhighdbo.vOptimoRouteDriverDay, dbo.spEthBookingGetAvailability, dbo.spEthBookingGetAvailabilityByEstimator (+2 more)
dbo.optimoRouteDriverDay.PlanDatedbo.ethBookingDaySlot.Datehighdbo.vEthBookingAvailabilityDetails, dbo.spEthBookingGetAvailability, dbo.spEthBookingGetAvailabilityByEstimator (+2 more)
dbo.OptimoRouteLog.AppointmentIDdbo.primeAppointments.idhighdbo.spOptimoRouteGetLogs, dbo.spOptimoRouteGetLogsPaged
dbo.OptimoRouteLog.JobIDdbo.primeJobs.Idhighdbo.spOptimoRouteGetLogs, dbo.spOptimoRouteGetLogsPaged
dbo.OptimoRouteLog.UserIDdbo.primeUsers.idhighdbo.spOptimoRouteGetLogs, dbo.spOptimoRouteGetLogsPaged
dbo.optimoRouteOrder.bookingIDdbo.ethBooking.IDhighdbo.spEthBookingGet, dbo.spOptimoRouteGetAllowAdvancedBookings
dbo.optimoRouteOrder.NotScheduledVersiondbo.optimoRouteOrder.Versionmediumdbo.spOptimoRouteSetNotScheduledOrdersEmailSent
dbo.optimoRouteOrder.primeAppointmentIDdbo.primeAppointments.idhighdbo.vOptimoRouteOrders, dbo.spOptimoRouteGetAllowAdvancedBookings, dbo.spOptimoRouteGetAppointmentCompletionQueue (+6 more)
dbo.optimoRouteOrder.primeJobIDdbo.primeJobs.Idhighdbo.spEthAIPrimeJobSummaryQueueUpdateApptTask, dbo.spOptimoRouteGetAppointmentCompletionQueue, dbo.spOptimoRouteGetAppointmentScheduledEstimatorQueue (+6 more)
dbo.optimoRouteOrder.primeJobIDdbo.primeAppointments.jobIdmediumdbo.spOptimoRouteGetAppointmentQueue
dbo.optimoRouteOrder.primeJobIDdbo.primeWorkOrders.jobidmediumdbo.spOptimoRouteGetWorkOrderQueue
dbo.optimoRouteOrder.primeWorkOrderIDdbo.primeWorkOrders.idhighdbo.spOptimoRouteGetNotScheduledOrders, dbo.spOptimoRouteGetNotScheduledOrdersEmailQueue, dbo.spOptimoRouteGetWorkOrderQueue (+1 more)
dbo.optimoRouteOrder.ScheduledEstimatorIDdbo.primeUsers.idhighdbo.vOptimoRouteOrders, dbo.spEthBookingGet, dbo.spOptimoRouteGetNearbyJobs
dbo.optimoRouteOrder.ScheduledEstimatorIDdbo.ethBookingEstimatorSkill.primeEstimatorIDmediumdbo.spEthBookingGetAvailabilityGeo
dbo.optimoRouteOrder.Versiondbo.primeAppointments.versionmediumdbo.spOptimoRouteGetAppointmentQueue
dbo.optimoRouteOrder.Versiondbo.primeWorkOrders.versionmediumdbo.spOptimoRouteGetWorkOrderQueue
dbo.wipTextInstructions.jobStatusdbo.primeStatusHistories_Job.NewStatusmediumdbo.vPrimeExportLatestWIPUpdate

Hub tables ​

Most-referenced targets (in-degree):

  • dbo.primeJobs — 40 inbound relationships
  • dbo.primeUsers — 19 inbound relationships
  • dbo.primeContacts — 18 inbound relationships
  • dbo.primeExportsEndataScopeImport_stage — 14 inbound relationships
  • dbo.primeAppointments — 6 inbound relationships
  • dbo.primeWorkOrders — 6 inbound relationships
  • dbo.ethBookingEstimatorSkill — 5 inbound relationships
  • dbo.primeStatuses — 5 inbound relationships
  • dbo.makesafeUser — 5 inbound relationships
  • dbo.makesafePhoneCall — 4 inbound relationships