Skip to content

dbo.makesafePhoneCall ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1IDintnoidentityPrimary key, identity.
2CallerFullNamenvarchar(255)yesFull name of the person who called the make-safe line.
3CallerCompanynvarchar(255)yesCompany name given by the caller.
4ClaimNumbernvarchar(100)yesInsurance claim number quoted by the caller.
5CallDateTimedatetimenoDate and time the make-safe call was received.
6ContactFullNamenvarchar(255)yesFull name of the on-site contact for the make-safe job (may differ from the caller).
7ContactPhoneNumbernvarchar(255)yesPhone number of the on-site contact for the make-safe job.
8DamageDescriptionnvarchar(MAX)yesDescription of the property damage reported on the call.
9Messagenvarchar(MAX)yesFree-text summary or message captured from the call.
10CallURLnvarchar(255)yesURL to the recorded audio of the call.
11CallerFromPhonenvarchar(50)yesPhone number the call originated from.
12CallerReturnPhonenvarchar(50)yesPhone number provided by the caller for a callback.
13Transcriptnvarchar(MAX)yesFull text transcript of the AI-handled call, e.g. from ElevenLabs.
14AssignedUserIDintyesFK to makesafeUser.ID identifying the staff member the call is assigned to.
15StatustinyintnoCall status code: 0=Active, 80=Closed (No Details), 85=Closed (Testing), 90=Closed (Not a Make Safe Call), 93=Merged, 99=Closed (Site Contacted); values >=70 are considered closed.
16PropertyAddressLatitudedecimal(10,7)yesLatitude of the property address.
17PropertyAddressLongitudedecimal(10,7)yesLongitude of the property address.
18Sourcenvarchar(100)yesChannel the call came through (e.g. AI voice line, manual entry).
19PropertyAddress1nvarchar(255)yesFirst line of the affected property's street address.
20PropertyAddress2nvarchar(255)yesSecond line of the affected property's street address (e.g. unit/suite).
21PropertySuburbnvarchar(255)yesSuburb of the affected property.
22PropertyStatenvarchar(255)yesState/territory of the affected property (e.g. NSW, VIC, QLD).
23PropertyPostCodenvarchar(10)yesPostcode of the affected property.
24PropertyAddressnvarchar(1037)yescomputedComputed, comma-joined full property address built from the individual address fields.
25PrimeJobIDuniqueidentifieryesFK to primeJobs.id linking the call to a matched Prime Ecosystem job.
26ClientPhonenvarchar(50)yesPhone number of the client/policyholder associated with the call.
27MergedIntoIDintyesFK to makesafePhoneCall.ID of the call this record was merged into, if it was a duplicate (Status=93).

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
IX_makesafePhoneCall_Status_AssignedUserID_CallDateTimeNONCLUSTEREDStatus, AssignedUserID, CallDateTimeCallerCompany, CallerFullName, ClaimNumber, ContactFullName

Relationships (inferred) ​

FromToConfidence
dbo.elevenLabsConversations.PhoneCallIDdbo.makesafePhoneCall.IDhigh
dbo.makesafePhoneCall.AssignedUserIDdbo.makesafeUser.IDhigh
dbo.makesafePhoneCallLocation.PhoneCallIDdbo.makesafePhoneCall.IDmedium
dbo.makesafePhoneCall.PrimeJobIDdbo.primeJobs.Idhigh
dbo.makesafeSharingCode.PhoneCallIDdbo.makesafePhoneCall.IDhigh
dbo.primeAllocations.JobIddbo.makesafePhoneCall.PrimeJobIDmedium

Referenced by ​

Views: dbo.vMakeSafePhonecalls, dbo.vMakeSafePhonecallsNoAlerts

Procedures: dbo.spMakesafeGetActivePhoneCalls, dbo.spMakesafeGetAllPhoneCalls, dbo.spMakesafeGetAllSharingCodes, dbo.spMakesafeGetAllUnassignedPhoneCalls, dbo.spMakesafeGetAssignedPhoneCalls, dbo.spMakesafeGetClosedPhoneCalls, dbo.spMakesafeGetGeoLocationPhoneCalls, dbo.spMakesafeGetPhoneCallbyCode, dbo.spMakesafeGetPhoneCallbyID, dbo.spMakesafeGetPhonecallLocationQueue, dbo.spMakesafeGetPhoneCalls, dbo.spMakesafeGetPhoneCallsPaged, dbo.spMakesafeGetPhoneCallStatusbyID, dbo.spMakesafeGetStatsCalls, dbo.spMakesafeGetUnassignedPhoneCallCount, dbo.spMakesafeGetUnassignedPhoneCalls, dbo.spMakesafeGetUserPhoneCalls, dbo.spMakesafeGetUserPhoneCallsCount, dbo.spMakesafeInsertFormPhoneCall, dbo.spMakesafeInsertFormPhoneCallV2, dbo.spMakesafeInsertPhoneCall, dbo.spMakesafeMergePhoneCalls, dbo.spMakesafeQueueEscalationSMSMessagesUnassigned, dbo.spMakesafeQueueOnCallSMSAssignedNotClosed, dbo.spMakesafeQueueOnCallSMSMessagesUnassigned, dbo.spMakesafeQueuePhoneCallSMSMessages, dbo.spMakesafeUpdatePhoneCall, dbo.spMakesafeUpdatePhoneCallAddressGeoData, dbo.spMakesafeUpdatePhoneCallAssignedUserID, dbo.spMakesafeUpdatePhoneCallFromPrimeJob, dbo.spMakesafeUpdatePhoneCallLatLog, dbo.spMakesafeUpdatePhoneCallStatus, dbo.spMakesafeUpsertPhoneCallFromPrimeJob, dbo.spPrimeGetAllocationTypesByPhoneCallID