Appearance
dbo.primeUsers
Info Generated by
scripts/Generate-DataDictionary.ps1- do not edit by hand. Edit descriptions inschemas/tables/dbo.primeUsers.jsonand regenerate.
Columns
| # | Column | Type | Nullable | Flags | Description |
|---|---|---|---|---|---|
| 1 | type | nvarchar(20) | no | Category/type classification of this record | |
| 2 | id | uniqueidentifier | no | Primary key / unique identifier for this record | |
| 3 | firstName | nvarchar(100) | no | Contact's first name | |
| 4 | lastName | nvarchar(100) | no | Contact's last name | |
| 5 | fullName | nvarchar(200) | no | Contact's full name | |
| 6 | status | nvarchar(50) | no | Current status of this record | |
| 7 | nvarchar(200) | no | Contact email address | ||
| 8 | timezone | nvarchar(100) | no | Time zone associated with this record | |
| 9 | contactId | uniqueidentifier | yes | Foreign key to primeContacts | |
| 10 | levesysRef | nvarchar(100) | yes | Levesys accounting system reference for this record | |
| 11 | roles | nvarchar(500) | yes | Roles assigned to the user | |
| 12 | version | bigint | yes | Optimistic-concurrency row version number |
Indexes
| Name | Type | Unique | PK | Key columns | Included | Filter |
|---|---|---|---|---|---|---|
| IX_primeusers_FullName | NONCLUSTERED | fullName | id, status | |||
| IX_primeUsers_ActiveOnly | NONCLUSTERED | id | fullName | ([Status]='Active') |
Relationships (inferred)
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

