Skip to content

dbo.primeAppointments ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1iduniqueidentifiernoPrimary key / unique identifier for this record
2jobIduniqueidentifieryesForeign key to primeJobs
3appointmentStatusnvarchar(100)yesStatus of the appointment
4appointmentTypeIduniqueidentifieryesForeign key to primeAppointmentType
5primaryUserIduniqueidentifieryesForeign key to primeUsers - the primary user for this record
6startdatetimeyesStart timestamp
7enddatetimeyesEnd timestamp
8instructionsnvarchar(MAX)yesFree-text instructions
9notesnvarchar(MAX)yesFree-text internal notes
10createdAtdatetimeyesTimestamp the record was created
11createdBynvarchar(100)yesUser/system that created the record
12updatedAtdatetimeyesTimestamp the record was last updated
13updatedBynvarchar(100)yesUser/system that last updated the record
14versionbigintyesOptimistic-concurrency row version number

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK__primeApp__3213E83FF949F251CLUSTEREDyesyesid

Relationships (inferred) ​

FromToConfidence
dbo.ethAppointmentInstance.PrimeAppointmentIddbo.primeAppointments.idlow
dbo.ethBooking.primeAppointmentIDdbo.primeAppointments.idhigh
dbo.OptimoRouteLog.AppointmentIDdbo.primeAppointments.idhigh
dbo.optimoRouteOrder.primeAppointmentIDdbo.primeAppointments.idhigh
dbo.optimoRouteOrder.primeJobIDdbo.primeAppointments.jobIdmedium
dbo.optimoRouteOrder.Versiondbo.primeAppointments.versionmedium
dbo.primeAppointments.appointmentTypeIddbo.primeAppointmentType.idhigh
dbo.primeAppointments.appointmentTypeIddbo.ethBookingService.primeAppointmentTypeIDmedium
dbo.primeAppointments.createdBydbo.primeUsers.fullNamehigh
dbo.primeAppointments.jobIddbo.primeJobs.Idhigh
dbo.primeAppointments.primaryUserIddbo.primeUsers.idhigh
dbo.primeAppointments.primaryUserIddbo.primeContacts.idmedium

Referenced by ​

Views: dbo.VPrimeEstimatorstagesEstimatorworkflowdb

Procedures: dbo.spEthBookingDaySlotUpsert_deprecated, dbo.spEthBookingGetAvailabilityPerSlot_Deprecated, dbo.spEthBookingGetChangedAppointments, dbo.spEthBookingGetOnBook, dbo.spEthBookingGetOnCancel, dbo.spEthBookingGetOnCreate, dbo.spEthCreateAppointment, dbo.spEthFindNextAvailableSlot, dbo.spEthWIPJobClientNoteQueue, dbo.spOptimoRouteGetAllowAdvancedBookings, dbo.spOptimoRouteGetAppointmentCompletionQueue, dbo.spOptimoRouteGetAppointmentQueue, dbo.spOptimoRouteGetAppointmentScheduledEstimatorQueue, dbo.spOptimoRouteGetCountOrderFixedTime_Deprecated, dbo.spOptimoRouteGetLogs, dbo.spOptimoRouteGetLogsPaged, dbo.spOptimoRouteGetNotScheduledOrders, dbo.spOptimoRouteGetNotScheduledOrdersEmailQueue, dbo.spOptimoRouteGetScheduledOrders, dbo.spOptimoRouteOrderGetActiveByJob, dbo.spPrimeGetAppointment, dbo.spPrimeGetAppointmentsNextDates, dbo.spPrimeGetAppointmentVersion, dbo.spPrimeUpsertAppointments, dbo.spRefreshEstimatorStageSummary