Skip to content

dbo.primeContacts ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1iduniqueidentifiernoPrimary key / unique identifier for this record
2typenvarchar(50)yesCategory/type classification of this record
3statusnvarchar(50)yesCurrent status of this record
4positionnvarchar(255)yesSort order/position of this item
5isIndividualbityesFlag indicating the contact is an individual (as opposed to a company)
6namenvarchar(255)yesDisplay name
7firstNamenvarchar(255)yesContact's first name
8lastNamenvarchar(255)yesContact's last name
9salutationnvarchar(100)yesPreferred title/salutation for the contact
10contactTypenvarchar(100)yesType/category of contact (e.g. Customer, Insurer, Broker)
11primaryContactnvarchar(255)yesDisplay name of the primary contact
12homeNumbernvarchar(50)yesContact's home phone number
13mobileNumbernvarchar(50)yesContact's mobile phone number
14workNumbernvarchar(50)yesContact's work phone number
15preferredContactNumbernvarchar(50)yesContact's preferred phone number
16preferredContactNumberValuenvarchar(255)yesValue of the contact's preferred phone number
17contactEmailnvarchar(255)yesContact email address
18abnnvarchar(50)yesAustralian Business Number of the contact/company
19acnnvarchar(50)yesAustralian Company Number of the contact/company
20financeRefnvarchar(100)yesFinance system reference for this record
21levesysRefnvarchar(100)yesLevesys accounting system reference for this record
22notesnvarchar(MAX)yesFree-text internal notes
23salesAccountNumbernvarchar(100)yesAccounts-receivable account number used for sales to this contact
24purchasesAccountNumbernvarchar(100)yesAccounts-payable account number used for purchases from this contact
25salesPaymentTermTypenvarchar(100)yesPayment term type applied to sales
26salesPaymentTermValuenvarchar(100)yesPayment term value applied to sales
27purchasesPaymentTermTypenvarchar(100)yesPayment term type applied to purchases (e.g. Days after invoice)
28purchasesPaymentTermValuenvarchar(100)yesPayment term value (e.g. number of days) applied to purchases
29linkedToContactIduniqueidentifieryesForeign key to the related primeContacts record this relationship links to
30addressLine1nvarchar(255)yesFirst line of the site/property street address
31addressLine2nvarchar(255)yesSecond line of the site/property street address
32addressSuburbnvarchar(100)yesSuburb of the contact address
33addressStatenvarchar(100)yesState/territory of the contact address
34addressCountrynvarchar(100)yesCountry of the contact address
35addressPostcodenvarchar(20)yesPostcode of the contact address
36postalAddressLine1nvarchar(255)yesFirst line of the postal address
37postalAddressLine2nvarchar(255)yesSecond line of the postal address
38postalAddressSuburbnvarchar(100)yesSuburb of the postal address
39postalAddressStatenvarchar(100)yesState/territory of the postal address
40postalAddressCountrynvarchar(100)yesCountry of the postal address
41postalAddressPostcodenvarchar(20)yesPostcode of the postal address
42subcontractornvarchar(MAX)yesName of the subcontractor
43createdAtdatetimeyesTimestamp the record was created
44createdBynvarchar(100)yesUser/system that created the record
45updatedAtdatetimeyesTimestamp the record was last updated
46updatedBynvarchar(100)yesUser/system that last updated the record
47versionbigintyesOptimistic-concurrency row version number
48mobileNumber_Normalizednvarchar(50)yescomputedContact's mobile phone number in normalized/standard format
49homeNumber_Normalizednvarchar(50)yescomputedContact's home phone number in normalized/standard format
50workNumber_Normalizednvarchar(50)yescomputedContact's work phone number in normalized/standard format
51FilterTagsnvarchar(MAX)yesComma-separated display list of filter tags applied to this record
52FilterTagIdsnvarchar(MAX)yesComma-separated list of primeFilterTags identifiers applied to this record
53RegionIdsnvarchar(MAX)yesComma-separated list of region identifiers

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK__ethPrime__3213E83FF76D95DECLUSTEREDyesyesid
IX_primeContacts_mobile_workNONCLUSTEREDmobileNumber, workNumber
IX_primeContacts_mobileNumber_NormNONCLUSTEREDmobileNumber_NormalizedfirstName, id, lastName, name
IX_primeContacts_homeNumber_NormNONCLUSTEREDhomeNumber_NormalizedfirstName, id, lastName, name
IX_primeContacts_workNumber_NormNONCLUSTEREDworkNumber_NormalizedfirstName, id, lastName, name
nci_msft_1_primeContacts_CECAEE79413C1BEC19F0D271FE96F2DFNONCLUSTEREDaddressSuburbaddressLine1, addressLine2, addressPostcode, addressState, contactType, updatedAt

Relationships (inferred) ​

FromToConfidence
dbo.ethBooking.primeContactIDdbo.primeContacts.idhigh
dbo.ethFormSharingCode.PrimeContactIDdbo.primeContacts.idlow
dbo.ethFormTriage.PrimeContactIDdbo.primeContacts.idlow
dbo.ethGeoLocationStatus.primeContactIDdbo.primeContacts.idlow
dbo.ethWIPJobHistoryContacts.contactIddbo.primeContacts.idhigh
dbo.makesafePhoneCallTrade.PrimeContactIDdbo.primeContacts.idhigh
dbo.makesafeSharingCode.PrimeContactIDdbo.primeContacts.idhigh
dbo.primeAccountsReceivableInvoices.InvoicedTodbo.primeContacts.idmedium
dbo.primeAllocations.AssignedContactIddbo.primeContacts.idmedium
dbo.primeAppointments.primaryUserIddbo.primeContacts.idmedium
dbo.primeContactLocation.primecontactIDdbo.primeContacts.idhigh
dbo.primeContactRelationships.contactIddbo.primeContacts.idhigh
dbo.primeContactTrades.ContactIDdbo.primeContacts.idhigh
dbo.primeJobs.ClientIddbo.primeContacts.idhigh
dbo.primeJobs.CustomerIddbo.primeContacts.idhigh
dbo.primeJobs.PrimaryContactIddbo.primeContacts.idhigh
dbo.primeUsers.contactIddbo.primeContacts.idhigh
dbo.primeWorkOrders.assignediddbo.primeContacts.idhigh

Referenced by ​

Views: dbo.VPrimeEstimatorstagesEstimatorworkflowdb, dbo.vPrimeJobinvoicesObjectivedb, dbo.vPrimeSalesinvoicesObjectivedb

Procedures: dbo.spElevenLabsGetConversationInitialization, dbo.spEthBookingGet, dbo.spEthBookingGetByCode, dbo.spEthBookingGetByID, dbo.spEthBookingGetByJobID, dbo.spEthBookingGetMissingEstimatorLocations, dbo.spEthBookingGetSMSContactDetails, dbo.spEthBookingSMSOnBook, dbo.spEthBookingSMSOnCancel, dbo.spEthBookingSMSOnCreate, dbo.spEthGetAllianzOrChuJobs, dbo.spEthGetBookingEstimatorLocations, dbo.spEthKpiResultsActive, dbo.spEthKpiResultsActiveAll, dbo.spEthKpiResultsbyJobId, dbo.spEthSyncQueueMissingObjects, dbo.spEthSyncQueueMissingObjectsByJobID, dbo.spEthWIPJobClientNoteQueue, dbo.spEthWIPJobEmailGet, dbo.spEthWIPJobEmailQueue, dbo.spEthWIPJobEmailQueueAggregated, dbo.spMakesafeGetAllSharingCodes, dbo.spMakesafeGetPhoneCallTradeByCode, dbo.spMakesafeGetPhoneCallTrades, dbo.spMakesafeGetTrade, dbo.spMakesafeGetTrades, dbo.spMakesafeInsertSMSReply, dbo.spMakeSafePhoneCallRelatedPrimeJobs, dbo.spMakesafeSearchPhoneCallTrades, dbo.spMakesafeUpsertPhoneCallFromPrimeJob, dbo.spMCPGetPrimeJob, dbo.spMCPSearchTrades, dbo.spOptimoRouteGetAppointmentQueue, dbo.spOptimoRouteGetNotScheduledOrders, dbo.spOptimoRouteGetNotScheduledOrdersEmailQueue, dbo.spOptimoRouteGetWorkOrderQueue, dbo.spPrimeBuildLockedEstimatesThisYear, dbo.spPrimeGetContactInformation, dbo.spPrimeGetContactLocationQueue, dbo.spPrimeGetInstructingClientId, dbo.spPrimeGetJobAllocations, dbo.spPrimeGetJobContactRelationships, dbo.spPrimeGetJobInformation, dbo.spPrimeGetJobSummary, dbo.spPrimeGetNextDates_PrimeContacts, dbo.spPrimeGetWIPUpdatesClients, dbo.spPrimeJobSearch, dbo.spPrimeReprocessContactLocation, dbo.spPrimeUpsertContact, dbo.spRefreshEstimatorStageSummary