Skip to content

dbo.primeEstimateCategoryItems ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1itemIduniqueidentifiernoForeign key to the related line item
2categoryIduniqueidentifiernoForeign key to the related estimate category
3authorisedbitnoFlag indicating whether this line item has been authorised (approved)
4tradenvarchar(100)yesTrade/skill category (e.g. Plumbing, Electrical, Carpentry)
5descriptionnvarchar(MAX)noFree-text description
6notesnvarchar(MAX)yesFree-text internal notes
7materialUnitnvarchar(50)yesUnit of measure for material quantity
8materialQuantitydecimal(18,2)noQuantity of materials
9materialCostdecimal(18,2)noCost of materials
10materialTotaldecimal(18,2)noTotal material amount
11materialMarkupdecimal(9,6)noMarkup percentage applied to material cost
12materialMarkupTotaldecimal(18,2)noTotal markup amount applied to materials
13labourUnitnvarchar(50)yesUnit of measure for labour quantity
14labourQuantitydecimal(18,2)noQuantity of labour (hours/units)
15labourCostdecimal(18,2)noCost of labour
16labourTotaldecimal(18,2)noTotal labour amount
17labourMarkupdecimal(9,6)noMarkup percentage applied to labour cost
18labourMarkupTotaldecimal(18,2)noTotal markup amount applied to labour
19taxdecimal(9,4)noTax amount
20materialMargindecimal(9,6)noMargin percentage applied to material cost
21labourMargindecimal(9,6)noMargin percentage applied to labour cost

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK_primeEstimateCategoryItemsCLUSTEREDyesyesitemId
IX_primeEstimateCategoryItems_CategoryIdNONCLUSTEREDcategoryId

Relationships (inferred) ​

FromToConfidence
dbo.primeEstimateCategories.categoryIddbo.primeEstimateCategoryItems.categoryIdhigh

Referenced by ​

Procedures: dbo.spPrimeDeleteEstimatesForJob, dbo.spPrimePeerReviewEstimatedetails, dbo.spPrimeUpsertEstimateCategoryItem