Skip to content

dbo.primeExportsEndataScopeImport ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1JobNumbervarchar(20)noHuman-readable job number/reference used in Prime Ecosystem
2ClientReferencevarchar(20)noReference number/code supplied by the client (e.g. insurer claim number)
3EstimateLabelvarchar(100)yesDisplay label/name of the estimate
4Categoryvarchar(50)yesScope category imported from Endata
5Tradevarchar(100)yesTrade/skill category (e.g. Plumbing, Electrical, Carpentry)
6Descriptionvarchar(1000)noFree-text description
7Wchar(1)yesWidth dimension imported from Endata scope
8Lchar(1)yesLength dimension imported from Endata scope
9Hchar(1)yesHeight dimension imported from Endata scope
10MaterialQtyintyesQuantity of materials
11MaterialRatedecimal(10,2)yesUnit rate/price for materials
12LabourQtyintyesQuantity of labour (hours/units)
13TotalSelldecimal(10,2)yesTotal sell (billed) amount
14isStalebityesFlag indicating the record is stale and needs refreshing
15GSTdecimal(10,2)yesGoods and Services Tax amount
16EstimateLabelKeyvarchar(100)nocomputedKey identifying the estimate label/category used for scope mapping
17ScopeImportIDbigintnoidentityIdentifier of the scope import batch this row belongs to
18RowHashbinary(20)yesHash of the row content, used to detect changes

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK_primeExportsEndataScopeImportCLUSTEREDyesyesScopeImportID
IX_PrimeScope_BusinessKeyNONCLUSTEREDJobNumber, ClientReference, EstimateLabel, Category, Trade, Description

Relationships (inferred) ​

FromToConfidence
dbo.primeExportsEndataScopeImport.Categorydbo.primeExportsEndataScopeImport_stage.Categoryhigh
dbo.primeExportsEndataScopeImport.ClientReferencedbo.primeExportsEndataScopeImport_stage.ClientReferencehigh
dbo.primeExportsEndataScopeImport.Descriptiondbo.primeExportsEndataScopeImport_stage.Descriptionmedium
dbo.primeExportsEndataScopeImport.EstimateLabeldbo.primeExportsEndataScopeImport_stage.EstimateLabelhigh
dbo.primeExportsEndataScopeImport.GSTdbo.primeExportsEndataScopeImport_stage.GSTmedium
dbo.primeExportsEndataScopeImport.Hdbo.primeExportsEndataScopeImport_stage.Hmedium
dbo.primeExportsEndataScopeImport.JobNumberdbo.primeExportsEndataScopeImport_stage.JobNumberhigh
dbo.primeExportsEndataScopeImport.Ldbo.primeExportsEndataScopeImport_stage.Lmedium
dbo.primeExportsEndataScopeImport.LabourQtydbo.primeExportsEndataScopeImport_stage.LabourQtymedium
dbo.primeExportsEndataScopeImport.MaterialQtydbo.primeExportsEndataScopeImport_stage.MaterialQtymedium
dbo.primeExportsEndataScopeImport.MaterialRatedbo.primeExportsEndataScopeImport_stage.MaterialRatemedium
dbo.primeExportsEndataScopeImport.TotalSelldbo.primeExportsEndataScopeImport_stage.TotalSellmedium
dbo.primeExportsEndataScopeImport.Tradedbo.primeExportsEndataScopeImport_stage.Tradehigh
dbo.primeExportsEndataScopeImport.Wdbo.primeExportsEndataScopeImport_stage.Wmedium

Referenced by ​

Procedures: dbo.spEthGetEndataPrimeScopeImport, dbo.spPrimeScope_MarkJobStale, dbo.spPrimeScope_MarkOriginStale_FromStage, dbo.spPrimeScope_MergeRow_Hash, dbo.spPrimeScope_UpsertStageRowToOrigin, dbo.spTruncateScopeImportBeforeSync, dbo.spUpsertPrimeScopeImport, dbo.spUpsertPrimeScopeImportV2