Skip to content

dbo.primeLockedEstimateCategoryItems ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1ItemIDuniqueidentifiernoForeign key to the related line item
2CategoryIDuniqueidentifiernoForeign key to the related estimate category
3authorisedbityesFlag indicating whether this line item has been authorised (approved)
4tradenvarchar(100)yesTrade/skill category (e.g. Plumbing, Electrical, Carpentry)
5descriptionnvarchar(MAX)yesFree-text description
6notesnvarchar(MAX)yesFree-text internal notes
7materialUnitnvarchar(50)yesUnit of measure for material quantity
8materialQuantitydecimal(18,2)yesQuantity of materials
9materialCostdecimal(18,2)yesCost of materials
10materialTotaldecimal(18,2)yesTotal material amount
11materialMarkupdecimal(10,6)yesMarkup percentage applied to material cost
12materialMarkupTotaldecimal(18,2)yesTotal markup amount applied to materials
13labourUnitnvarchar(50)yesUnit of measure for labour quantity
14labourQuantitydecimal(18,2)yesQuantity of labour (hours/units)
15labourCostdecimal(18,2)yesCost of labour
16labourTotaldecimal(18,2)yesTotal labour amount
17labourMarkupdecimal(10,6)yesMarkup percentage applied to labour cost
18labourMarkupTotaldecimal(18,2)yesTotal markup amount applied to labour
19taxdecimal(10,2)yesTax amount
20materialMargindecimal(10,6)yesMargin percentage applied to material cost
21labourMargindecimal(10,6)yesMargin percentage applied to labour cost
22additionalMargindecimal(18,2)yesAdditional margin percentage applied on top of standard margin

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK__primeLoc__727E83EBC35F7AE1CLUSTEREDyesyesItemID
IX_primeLockedEstimateCategoryItems_CategoryIDNONCLUSTEREDCategoryID
IX_primeLockedEstimateCategoryItems_CategoryID2NONCLUSTEREDCategoryIDdescription, labourCost, labourMargin, labourMarkupTotal, labourQuantity, materialCost, materialMargin, materialMarkupTotal, materialQuantity, trade

Relationships (inferred) ​

FromToConfidence
dbo.primeLockedEstimateCategories.CategoryIDdbo.primeLockedEstimateCategoryItems.CategoryIDhigh

Referenced by ​

Procedures: dbo.spEndataEstimateUploads, dbo.spPrimeBuildLockedEstimatesThisYear, dbo.spPrimeUpsertLockedEstimate, dbo.spPrimeUpsertLockedEstimateCategoryItem