Skip to content

dbo.ethBooking ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1IDintnoidentity
2primeJobIDuniqueidentifierno
3primeContactIDuniqueidentifierno
4SharingCodenvarchar(50)no
5primeAppointmentTypeIDuniqueidentifierno
6primeUserIDuniqueidentifieryes
7FromDatedatetimeyes
8ToDatedatetimeyes
9Timezonenvarchar(200)yes
10CreatedAtdatetimeno
11UpdatedAtdatetimeno
12TimezoneOffsetMinsintyes
13primeNoteOnCreatebitno
14primeNoteOnBookbitno
15primeNoteOnCancelbityes
16primeAppointmentIDuniqueidentifieryes
17SharingCodeExpirydatetimeno
18CancelReasonCodeintyes
19CancelReasonTextnvarchar(1024)yes
20CancelFromDatedatetimeyes
21SkipNotifyContactbitno
22primeAppointmentVersionbigintyes
23primeJobStatusUpdatedAtdatetimeyes
24BookingNotesnvarchar(MAX)yes
25TimeWindowintno
26ShowMoreDatesDialogShownAtUtcdatetime2(7)yes
27ShowMoreDatesDialogConfirmedAtUtcdatetime2(7)yes
28ShowMoreDatesDialogCancelledAtUtcdatetime2(7)yes
29NoneOfTheseWorkClickedAtUtcdatetime2(7)yes
30FirstBookedAtUtcdatetime2(7)yes
31FirstBookedFromDatedatetimeyes

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK_ethBookingCLUSTEREDyesyesID
IX_ethBooking_primeJobID_UpdatedAtNONCLUSTEREDprimeJobID, UpdatedAtBookingNotes

Relationships (inferred) ​

FromToConfidence
dbo.ethAIPrimeJobSummary.primeJobIDdbo.ethBooking.primeJobIDmedium
dbo.ethBooking.primeAppointmentIDdbo.primeAppointments.idhigh
dbo.ethBooking.primeAppointmentTypeIDdbo.primeAppointmentType.idhigh
dbo.ethBooking.primeAppointmentTypeIDdbo.ethBookingService.primeAppointmentTypeIDhigh
dbo.ethBooking.primeContactIDdbo.primeContacts.idhigh
dbo.ethBooking.primeJobIDdbo.primeJobs.Idhigh
dbo.ethBooking.primeUserIDdbo.primeUsers.idhigh
dbo.ethTask.PrimeObjectIDdbo.ethBooking.primeJobIDhigh
dbo.optimoRouteOrder.bookingIDdbo.ethBooking.IDhigh
dbo.primeJobsLocation.jobIDdbo.ethBooking.primeJobIDhigh

Referenced by ​

Procedures: dbo.spEthBookingClear, dbo.spEthBookingClear_Deprecated, dbo.spEthBookingCreate, dbo.spEthBookingGet, dbo.spEthBookingGetAvailabilityGeo, dbo.spEthBookingGetByCode, dbo.spEthBookingGetByID, dbo.spEthBookingGetByJobID, dbo.spEthBookingGetChangedAppointments, dbo.spEthBookingGetID, dbo.spEthBookingGetJobID, dbo.spEthBookingGetOnBook, dbo.spEthBookingGetOnCancel, dbo.spEthBookingGetOnCreate, dbo.spEthBookingGetSharingCode, dbo.spEthBookingGetSMSContactDetails, dbo.spEthBookingJobJobDistanceQueue, dbo.spEthBookingParseandCreate, dbo.spEthBookingSetAppointmentID, dbo.spEthBookingSetAppointmentVersionIfMissing, dbo.spEthBookingSetDate, dbo.spEthBookingSetDate_Depcrecated, dbo.spEthBookingSetInteractionTimestamp, dbo.spEthBookingSetOnBook, dbo.spEthBookingSetOnCancel, dbo.spEthBookingSetOnCreate, dbo.spEthBookingSetToExpired, dbo.spEthBookingSMSOnBook, dbo.spEthBookingSMSOnCancel, dbo.spEthBookingSMSOnCreate, dbo.spEthBookingUpsert, dbo.spEthTaskGetNextX, dbo.spMakesafeGetStatsCalls, dbo.spOptimoRouteGetAllowAdvancedBookings, dbo.spPrimeGetJobInformation