Skip to content

dbo.endataCostCentres ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1IDintnoidentityPrimary key identifier for this cost centre record.
2CostCentrenvarchar(200)noName/code of the cost centre as sourced from Endata.
3Typenvarchar(100)yesCategory/classification of the cost centre as sourced from Endata.
4NormalizedNamenvarchar(200)yescomputedComputed lowercase, trimmed version of CostCentre used for case-insensitive matching/deduplication.
5NameHashvarbinary(8000)yescomputedComputed SHA2_256 hash of the normalized cost centre name, used to quickly detect duplicate or changed names.
6IsStalebitnoFlag (1/0) indicating whether this record was not seen in the most recent Endata sync and should be treated as outdated.
7CreatedAtdatetime2(7)noTimestamp when this record was first created in this table.
8UpdatedAtdatetime2(7)yesTimestamp when this record was last updated by an Endata sync.
9LastSeenAtdatetime2(7)yesTimestamp of the most recent Endata sync in which this record was present.

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK__endataCo__3214EC27B7118254CLUSTEREDyesyesID
IX_endataCostCentres_NameHashNONCLUSTEREDyesNameHash
IX_endataCostCentres_NormalizedNONCLUSTEREDNormalizedName

Relationships (inferred) ​

FromToConfidence
dbo.endataCostCentreDescriptions.CostCentreIddbo.endataCostCentres.IDmedium

Referenced by ​

Procedures: dbo.spSyncCostCentreDescriptions