Skip to content

dbo.primeJobs ​

Info Generated by scripts/Generate-DataDictionary.ps1 - do not edit by hand. Edit descriptions in schemas/tables/dbo.primeJobs.json and regenerate.

Columns ​

#ColumnTypeNullableFlagsDescription
1IduniqueidentifiernoPrimary key / unique identifier for this record
2OngoingJobbitnoFlag indicating this is an ongoing (non-single-visit) job
3JobNumbervarchar(50)yesHuman-readable job number/reference used in Prime Ecosystem
4ClientReferencenvarchar(50)yesReference number/code supplied by the client (e.g. insurer claim number)
5AdditionalReferencenvarchar(50)yesSecondary/additional reference number supplied by the client
6Descriptionnvarchar(MAX)yesFree-text description
7DivisionIduniqueidentifieryesForeign key to the business division that owns this record
8PerilIduniqueidentifieryesForeign key to primePerils - the insurance peril (cause of loss) for this job
9CatastropheCodeIduniqueidentifieryesForeign key to primeCatastropheCodes - the catastrophe event this job is linked to, if any
10JobTypenvarchar(50)yesType/category of job (e.g. Insurance, Commercial, Make Safe)
11WorkflowIduniqueidentifieryesForeign key identifying the workflow this job/record follows
12StatusIduniqueidentifieryesForeign key to primeStatuses - current status of this record
13AddressLine1nvarchar(255)yesFirst line of the site/property street address
14Suburbnvarchar(100)yesSuburb of the site/property address
15Statenvarchar(10)yesState/territory of the site/property address
16Countrynvarchar(100)yesCountry of the address
17Postcodenvarchar(20)yesPostcode of the address
18CustomerIduniqueidentifieryesForeign key to primeContacts - the customer/policyholder for this job
19ClientIduniqueidentifieryesForeign key to primeContacts - the client (e.g. insurer) for this job
20AssignedIduniqueidentifieryesForeign key to primeUsers - the user this record is assigned to
21ExcessAmountdecimal(18,2)yesInsurance excess amount payable by the customer
22CaseManagerIduniqueidentifieryesForeign key to primeUsers - the case manager responsible for this job
23SupervisorIduniqueidentifieryesForeign key to primeUsers - the supervisor responsible for this job
24EstimatorIduniqueidentifieryesForeign key to primeUsers - the estimator responsible for this job
25PrimaryContactIduniqueidentifieryesForeign key to primeContacts - the primary contact for this job
26BusinessIduniqueidentifieryesForeign key to the business entity/branch this record belongs to
27ClientPortalIduniqueidentifieryesIdentifier used to expose this record in the client portal
28Notesnvarchar(MAX)yesFree-text internal notes
29AuthorisedTotalIncludingTaxmoneyyesTotal authorised (approved) job value including tax
30AuthorisedTotalExcludingTaxmoneyyesTotal authorised (approved) job value excluding tax
31AuthorisedTotalExcludingTaxExcludingMarginmoneyyesTotal authorised job value excluding tax and margin
32AuthorisedTotalExcludingTaxExcludingMarginExcludingMarkupmoneyyesTotal authorised job value excluding tax, margin and markup
33FilterTagsnvarchar(500)yesComma-separated display list of filter tags applied to this record
34FilterTagIdsnvarchar(500)yesComma-separated list of primeFilterTags identifiers applied to this record
35Regionnvarchar(100)yesGeographic region this record belongs to
36IncidentDatedatetimeyesDate the insured incident/loss occurred
37AllocatedDatedatetimeyesDate the job was allocated
38BrokerReferencenvarchar(100)yesReference number supplied by the insurance broker
39StrataReferencenvarchar(100)yesReference number for the strata/body corporate managing the property
40AdjusterReferencenvarchar(100)yesReference number supplied by the loss adjuster
41StartDatedatetimeyesStart date of this record/job
42EndDatedatetimeyesEnd date of this record/job
43PrimeUrlnvarchar(255)yesDeep link URL to this record in Prime Ecosystem
44CreatedAtdatetimeyesTimestamp the record was created
45CreatedBynvarchar(100)yesUser/system that created the record
46UpdatedAtdatetimeyesTimestamp the record was last updated
47UpdatedBynvarchar(100)yesUser/system that last updated the record
48VersionbigintyesOptimistic-concurrency row version number
49InitialStartDatedatetimeyesOriginally scheduled/planned start date, before any rescheduling
50InitialEndDatedatetimeyesOriginally scheduled/planned end date, before any rescheduling

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK__primeJob__056690C20762C2B9CLUSTEREDyesyesId
IX_primeJobs_JobNumber_StateNONCLUSTEREDJobNumberState
IX_primeJobs_jobNumberNONCLUSTEREDJobNumberAssignedId, AuthorisedTotalIncludingTax, EstimatorId, Id, PrimeUrl, State, SupervisorId
IX_primeJobs_supervisorNONCLUSTEREDSupervisorIdAssignedId, AuthorisedTotalIncludingTax, EstimatorId, Id, JobNumber, State
IX_primeJobs_StateNONCLUSTEREDStateId, JobNumber, SupervisorId
IX_primeJobs_EstimatorNONCLUSTEREDEstimatorIdId
IX_primeJobs_AssignedNONCLUSTEREDAssignedIdId
IX_primeJobs_AuthTotalNONCLUSTEREDAuthorisedTotalIncludingTaxId
IX_primeJobs_clientreferenceNONCLUSTEREDClientReference
nci_msft_1_primeJobs_C716A663EDA051FA3CF7219DB322CAE0NONCLUSTEREDState, JobNumberAuthorisedTotalExcludingTax, ClientId, EstimatorId, StatusId, SupervisorId

Relationships (inferred) ​

FromToConfidence
dbo.ethAIPrimeJobSummary.primeJobIDdbo.primeJobs.Idhigh
dbo.ethBookingEstimatorJobDistance.primeJobIDdbo.primeJobs.Idlow
dbo.ethBooking.primeJobIDdbo.primeJobs.Idhigh
dbo.ethECDHistory.JobIDdbo.primeJobs.Idmedium
dbo.ethFormSharingCode.PrimeJobIDdbo.primeJobs.Idlow
dbo.ethFormTriage.PrimeJobIDdbo.primeJobs.Idlow
dbo.ethKpiJobInstance.JobIDdbo.primeJobs.Idmedium
dbo.ethKpiJobSummary.JobIDdbo.primeJobs.Idhigh
dbo.ethKpiResultsActive.JobIddbo.primeJobs.Idmedium
dbo.EthPeerReviewStatus.JobNumberdbo.primeJobs.JobNumbermedium
dbo.ethTask.PrimeObjectIDdbo.primeJobs.Idhigh
dbo.ethWIPJobHidden.JobIddbo.primeJobs.Idhigh
dbo.ethWIPJobHistory.JobIddbo.primeJobs.Idhigh
dbo.ethWIPJobWeeklySnapshot.PrimeJobIddbo.primeJobs.Idhigh
dbo.makesafeMessage.ClaimNumberdbo.primeJobs.ClientReferencehigh
dbo.makesafeMessage.ClaimNumberdbo.primeJobs.JobNumberhigh
dbo.makesafePhoneCall.PrimeJobIDdbo.primeJobs.Idhigh
dbo.OptimoRouteLog.JobIDdbo.primeJobs.Idhigh
dbo.optimoRouteOrder.primeJobIDdbo.primeJobs.Idhigh
dbo.primeAccountsReceivableInvoices.JobIddbo.primeJobs.Idhigh
dbo.primeAllocations.JobIddbo.primeJobs.Idhigh
dbo.primeAppointments.jobIddbo.primeJobs.Idhigh
dbo.primeAttachment.objectIddbo.primeJobs.Idmedium
dbo.primeContactRelationships.jobIddbo.primeJobs.Idhigh
dbo.primeEstimates.jobIddbo.primeJobs.Idhigh
dbo.primeExportFeedbackRegister.JobNumberdbo.primeJobs.JobNumbermedium
dbo.primeExportJobsRegistered.JobNumberdbo.primeJobs.JobNumbermedium
dbo.primeExportJobTags.jobNumberdbo.primeJobs.JobNumbermedium
dbo.primeJobCustomField.jobIddbo.primeJobs.Idhigh
dbo.primeJobDateHistory.JobIddbo.primeJobs.Idhigh
dbo.primeJobFilterTags.JobIddbo.primeJobs.Idhigh
dbo.primeJobs.AssignedIddbo.primeUsers.idhigh
dbo.primeJobs.CaseManagerIddbo.primeUsers.idhigh
dbo.primeJobs.CatastropheCodeIddbo.primeCatastropheCodes.Idhigh
dbo.primeJobs.ClientIddbo.primeContacts.idhigh
dbo.primeJobs.CustomerIddbo.primeContacts.idhigh
dbo.primeJobs.EstimatorIddbo.primeUsers.idhigh
dbo.primeJobs.JobNumberdbo.primeExportWIPUpdates.JobNumbermedium
dbo.primeJobsLocation.jobIDdbo.primeJobs.Idhigh
dbo.primeJobsLocationTask.jobIDdbo.primeJobs.Idmedium
dbo.primeJobs.PerilIddbo.primePerils.idmedium
dbo.primeJobs.PrimaryContactIddbo.primeContacts.idhigh
dbo.primeJobs.Statedbo.ethBookingEstimatorSkill.Statemedium
dbo.primeJobs.Statedbo.ethBookingOffice.Statemedium
dbo.primeJobs.StatusIddbo.primeStatuses.idhigh
dbo.primeJobs.SupervisorIddbo.primeUsers.idhigh
dbo.primeJobs.SupervisorIddbo.ethKpiSupervisorType.supervisorIdhigh
dbo.primeLockedEstimates.jobIddbo.primeJobs.Idhigh
dbo.primeMilestoneItemFirstValue.jobIddbo.primeJobs.Idhigh
dbo.primeMilestoneItem.jobIddbo.primeJobs.Idhigh
dbo.primeSchedule.JobIddbo.primeJobs.Idhigh
dbo.primeSiteForms.jobIddbo.primeJobs.Idhigh
dbo.primeStatusHistories_Job.JobIddbo.primeJobs.Idhigh
dbo.primeWorkOrders.jobiddbo.primeJobs.Idhigh

Referenced by ​

Views: dbo.vEthKpiResults_Deprecated, dbo.vEthKpiResultsActive_Deprecated, dbo.vEthKpiResultsClosed_Deprecated, dbo.vMakeSafePhonecalls, dbo.vMakeSafePhonecallsNoAlerts, dbo.VPrimeAllestimatevalueObjectivedb, dbo.VPrimeCompletiontimesObjectivedb, dbo.vprimeEstimatorQuoteConversions, dbo.vprimeFinancialschedule_1_jobandinvoicedetails, dbo.vprimeFinancialschedule_1point2_jobdetails, dbo.vprimeFinancialschedule_2_estimates, dbo.vprimeFinancialschedule_3_work_orders, dbo.vprimefirstquote, dbo.VPrimeJobcategoriesObjectivedb, dbo.vPrimeJobinvoicesObjectivedb, dbo.vprimejobsthismonthObjectivedb, dbo.vPrimeRawEstimates, dbo.vPrimeSalesinvoicesObjectivedb, dbo.VPrimeSalesPipelineObjectivedb, dbo.VPrimeSwmshrdatesconstructiondbHighriskjobs, dbo.VPrimeTimetobuildObjectivedb, dbo.vWIPSkippedJobReasons, dbo.vWIPUpdateDrilldownByWeek, dbo.vwWIPSkippedJobReasons

Procedures: dbo.spAddMissingJobsToKpiQueue, dbo.spElevenLabsGetConversationInitialization, dbo.spEndataEstimateUploads, dbo.spEthAIGetAllPrimeJobSummaries, dbo.spEthAIGetPrimeJobSummariesPaged, dbo.spEthAIPrimeGetJobHash, dbo.spEthAIPrimeGetJobSummaryQueue_Depcrecated, dbo.spEthAIPrimeJobSummaryQueueUpdateApptTask, dbo.spEthAIPrimeUpsertJobSummaryQueue, dbo.spEthBookingClear, dbo.spEthBookingClear_Deprecated, dbo.spEthBookingCreate, dbo.spEthBookingEstimatorJobDistanceQueue, dbo.spEthBookingGet, dbo.spEthBookingGetAvailability, dbo.spEthBookingGetAvailabilityByEstimator, dbo.spEthBookingGetAvailabilityDetails, dbo.spEthBookingGetAvailabilityGeo, dbo.spEthBookingGetByCode, dbo.spEthBookingGetByID, dbo.spEthBookingGetByJobID, dbo.spEthBookingGetOnBook, dbo.spEthBookingGetOnCancel, dbo.spEthBookingGetOnCreate, dbo.spEthBookingGetSMSContactDetails, dbo.spEthBookingJobJobDistanceQueue, dbo.spEthBookingParseandCreate, dbo.spEthBookingSetDate, dbo.spEthBookingSetDate_Depcrecated, dbo.spEthBookingSMSOnBook, dbo.spEthBookingSMSOnCancel, dbo.spEthBookingSMSOnCreate, dbo.spEthBookingUpsert, dbo.spEthGetAllianzOrChuJobs, dbo.spEthGetEstimateReview, dbo.spEthGetQueuedIDs, dbo.spEthKpiResultsActive, dbo.spEthKpiResultsActiveAll, dbo.spEthKpiResultsbyJobId, dbo.spEthKpiTagJobs, dbo.spEthNexusECDQueueTasks, dbo.spEthPopulatePeerReviewStatus, dbo.spEthQueueAccountsPayableInvoices, dbo.spEthQueueMissingJobs, dbo.spEthQueueMissingKpis, dbo.spEthQueueMissingStatusHistoriesJob, dbo.spEthRepairlineJobDatesQueueTasks, dbo.spEthResolveAppointmentContext, dbo.spEthSedgwickJobDatesqueueTasks, dbo.spEthSyncQueueMissingObjects, dbo.spEthSyncQueueMissingObjectsByJobID, dbo.spEthTaskInsertbyJobNumber, dbo.spEthWIPCaptureJobWeeklySnapshot, dbo.spEthWIPJobClientNoteQueue, dbo.spMakesafeGetAllMessages, dbo.spMakesafeGetGeoLocationPhoneCalls, dbo.spMakesafeGetMessagesPaged, dbo.spMakesafeGetPhoneCallbyID, dbo.spMakesafeGetPhoneCallStatusbyID, dbo.spMakeSafePhoneCallRelatedPrimeJobs, dbo.spMakesafeUpsertPhoneCallFromPrimeJob, dbo.spMCPGetPrimeJob, dbo.spMCPSearchTrades, dbo.spOptimoRouteGetAllowAdvancedBookings, dbo.spOptimoRouteGetAllowSpecificTimeBookings, dbo.spOptimoRouteGetAppointmentCompletionQueue, dbo.spOptimoRouteGetAppointmentQueue, dbo.spOptimoRouteGetAppointmentScheduledEstimatorQueue, dbo.spOptimoRouteGetCountOrderFixedTime_Deprecated, dbo.spOptimoRouteGetLogs, dbo.spOptimoRouteGetLogsPaged, dbo.spOptimoRouteGetNearbyJobs, dbo.spOptimoRouteGetNotScheduledOrders, dbo.spOptimoRouteGetNotScheduledOrdersEmailQueue, dbo.spOptimoRouteGetScheduledOrders, dbo.spOptimoRouteGetWorkOrderQueue, dbo.spOptimoRouteOrderGetActiveByJob, dbo.spOptimoRouteOrderGetRefreshQueue, dbo.spOptimoRouteUpdateOrderTravelMins, dbo.spOptimoRouteUpsertStop, dbo.spPopulateInvoiceCheck, dbo.spPrimeBuildLockedEstimatesThisYear, dbo.spPrimeGetAllocationTypesByPhoneCallID, dbo.spPrimeGetECDUpdate, dbo.spPrimeGetJobContactRelationships, dbo.spPrimeGetJobDates, dbo.spPrimeGetJobIDbyJobNumber, dbo.spPrimeGetJobInformation, dbo.spPrimeGetJobLocation, dbo.spPrimeGetJobsLocationQueue, dbo.spPrimeGetJobsLocationTaskQueue, dbo.spPrimeGetJobSummary, dbo.spPrimeGetJobswithoutHistory, dbo.spPrimeGetJobVersion, dbo.spPrimeGetSupervisors, dbo.spPrimeGetWIPUpdatesApproved, dbo.spPrimeGetWIPUpdatesClients, dbo.spPrimeGetWIPUpdatesDateBoundaries, dbo.spPrimeGetWIPUpdatesQueue, dbo.spPrimeGetWIPUpdatesWorksCompleted, dbo.spPrimeGetWIPUpdatesWorksInProgress, dbo.spPrimeGetWIPUpdatesWorksUpcoming, dbo.spPrimeJobSearch, dbo.spPrimePeerReviewEstimatedetails, dbo.spPrimePeerReviewformdetails, dbo.spPrimeReprocessJobsLocation, dbo.spPrimeUpsertJob, dbo.spPrimeUpsertJobsLocation, dbo.spPrimeUpsertStatusHistory_Job, dbo.spRefreshEstimatorStageSummary