Skip to content

dbo.endataCostCentreDescriptions ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1IDintnoidentityPrimary key identifier for this cost centre description record.
2CostCentreIdintnoForeign key to the Endata cost centre this description text applies to.
3Descriptionnvarchar(500)noFree-text description of the cost centre as sourced from Endata.
4NormalizedDescriptionnvarchar(500)yescomputedComputed lowercase, trimmed version of Description used for case-insensitive matching/deduplication.
5DescriptionHashvarbinary(8000)yescomputedComputed SHA2_256 hash of the normalized description, used to quickly detect duplicate or changed descriptions.
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__3214EC2783D267FFCLUSTEREDyesyesID
IX_CostCentre_DescriptionHashNONCLUSTEREDyesCostCentreId, DescriptionHash

Relationships (inferred) ​

FromToConfidence
dbo.endataCostCentreDescriptions.CostCentreIddbo.endataCostCentres.IDmedium

Referenced by ​

Procedures: dbo.spSyncCostCentreDescriptions