Skip to content

dbo.primeEstimateCategories ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1categoryIduniqueidentifiernoForeign key to the related estimate category
2estimateIduniqueidentifiernoForeign key to the related estimate
3categoryTypenvarchar(50)noType/classification of the estimate category
4labelnvarchar(255)noDisplay label
5descriptionnvarchar(MAX)yesFree-text description
6materialMargindecimal(9,6)noMargin percentage applied to material cost
7labourMargindecimal(9,6)noMargin percentage applied to labour cost

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK_primeEstimateCategoriesCLUSTEREDyesyescategoryId
IX_primeEstimateCategories_estimateIdNONCLUSTEREDestimateId
IX_primeEstimateCategories_labelNONCLUSTEREDlabel

Relationships (inferred) ​

FromToConfidence
dbo.primeEstimateCategories.categoryIddbo.primeEstimateCategoryItems.categoryIdhigh
dbo.primeEstimates.estimateIddbo.primeEstimateCategories.estimateIdhigh

Referenced by ​

Procedures: dbo.spPrimeDeleteEstimatesForJob, dbo.spPrimePeerReviewEstimatedetails, dbo.spPrimeUpsertEstimateCategory