Skip to content

dbo.primeUsers ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1typenvarchar(20)noCategory/type classification of this record
2iduniqueidentifiernoPrimary key / unique identifier for this record
3firstNamenvarchar(100)noContact's first name
4lastNamenvarchar(100)noContact's last name
5fullNamenvarchar(200)noContact's full name
6statusnvarchar(50)noCurrent status of this record
7emailnvarchar(200)noContact email address
8timezonenvarchar(100)noTime zone associated with this record
9contactIduniqueidentifieryesForeign key to primeContacts
10levesysRefnvarchar(100)yesLevesys accounting system reference for this record
11rolesnvarchar(500)yesRoles assigned to the user
12versionbigintyesOptimistic-concurrency row version number

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
IX_primeusers_FullNameNONCLUSTEREDfullNameid, status
IX_primeUsers_ActiveOnlyNONCLUSTEREDidfullName([Status]='Active')

Relationships (inferred) ​

FromToConfidence
dbo.ethAppointmentDefinitionUser.PrimeUserIddbo.primeUsers.idlow
dbo.ethAppointmentInstance.PrimeUserIddbo.primeUsers.idlow
dbo.ethBookingEstimatorSkill.primeEstimatorIDdbo.primeUsers.idhigh
dbo.ethBooking.primeUserIDdbo.primeUsers.idhigh
dbo.ethKpiSupervisorType.supervisorIddbo.primeUsers.idmedium
dbo.ethPrimeInvoiceUser.primeUserIddbo.primeUsers.idlow
dbo.ethWIPJobHistory.SupervisorUserIddbo.primeUsers.idhigh
dbo.optimoRouteDriverDay.EstimatorIDdbo.primeUsers.idhigh
dbo.OptimoRouteLog.UserIDdbo.primeUsers.idhigh
dbo.optimoRouteOrder.ScheduledEstimatorIDdbo.primeUsers.idhigh
dbo.primeAllocations.AssignedIddbo.primeUsers.idhigh
dbo.primeAppointments.createdBydbo.primeUsers.fullNamehigh
dbo.primeAppointments.primaryUserIddbo.primeUsers.idhigh
dbo.primeContactLocation.primecontactIDdbo.primeUsers.contactIdmedium
dbo.primeJobs.AssignedIddbo.primeUsers.idhigh
dbo.primeJobs.CaseManagerIddbo.primeUsers.idhigh
dbo.primeJobs.EstimatorIddbo.primeUsers.idhigh
dbo.primeJobs.SupervisorIddbo.primeUsers.idhigh
dbo.primeUsers.contactIddbo.primeContacts.idhigh
dbo.primeWorkOrders.created_bydbo.primeUsers.fullNamehigh

Referenced by ​

Views: dbo.vEthKpiResults_Deprecated, dbo.vEthKpiResultsActive_Deprecated, dbo.vEthKpiResultsClosed_Deprecated, dbo.VPrimeEstimatorstagesEstimatorworkflowdb, dbo.vPrimeJobinvoicesObjectivedb, dbo.vPrimeSalesinvoicesObjectivedb, dbo.VPrimeSwmshrdatesconstructiondbHighriskjobs, dbo.vWIPSkippedJobReasons, dbo.vwWIPSkippedJobReasons

Procedures: dbo.primeGetUsers, dbo.primeSearchUsers, dbo.spEthBookingEstimatorJobDistanceQueue, dbo.spEthBookingGet, dbo.spEthBookingGetAvailabilityDetails, dbo.spEthBookingGetByCode, dbo.spEthBookingGetByID, dbo.spEthBookingGetByJobID, dbo.spEthBookingGetEstimators, dbo.spEthBookingGetEstimatorsSkills, dbo.spEthBookingGetMissingEstimatorLocations, dbo.spEthGetBookingEstimatorLocations, dbo.spEthKpiResultsActive, dbo.spEthKpiResultsActiveAll, dbo.spEthKpiResultsbyJobId, dbo.spEthPopulatePeerReviewStatus, dbo.spEthResolveAppointmentContext, dbo.spEthWIPCaptureJobWeeklySnapshot, dbo.spEthWIPJobClientNoteQueue, dbo.spEthWIPJobEmailGet, dbo.spEthWIPJobEmailQueue, dbo.spEthWIPJobEmailQueueAggregated, dbo.spMakesafeGetAllKpiSupervisorTypes, dbo.spOptimoRouteDriverDayUpsert, dbo.spOptimoRouteGetAppointmentQueue, dbo.spOptimoRouteGetLogs, dbo.spOptimoRouteGetLogsPaged, dbo.spOptimoRouteGetNearbyJobs, dbo.spOptimoRouteGetNotScheduledOrders, dbo.spOptimoRouteGetNotScheduledOrdersEmailQueue, dbo.spOptimoRouteGetScheduledOrders, dbo.spOptimoRouteGetWorkOrderQueue, dbo.spOptimoRouteUpsertStop, dbo.spPrimeBuildLockedEstimatesThisYear, dbo.spPrimeGetContactLocationQueue, dbo.spPrimeGetEstimatorIDFromName, dbo.spPrimeGetJobSummary, dbo.spPrimeGetSupervisors, dbo.spPrimeGetUserFullname, dbo.spPrimeGetUserIDByEmail, dbo.spPrimeGetUsers, dbo.spPrimeGetWIPUpdatesApproved, dbo.spPrimeGetWIPUpdatesClients, dbo.spPrimeGetWIPUpdatesQueue, dbo.spPrimeUpsertUser, dbo.spRefreshEstimatorStageSummary