Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 MAPDISTANCEUNITCODE tinyint   Default = 0 0=Mile, 1=Kilometer
 MAPDISTANCEUNIT nvarchar(9) (Computed) CASE [MAPDISTANCEUNITCODE] WHEN 0 THEN N'Mile' WHEN 1 THEN N'Kilometer' END Provides a translation for the 'MAPDISTANCEUNITCODE' field.
 DATEADDED datetime   Default = getdate() Indicates the date this record was added.
 DATECHANGED datetime   Default = getdate() Indicates the date this record was last changed.
 TS timestamp   Timestamp.
 TSLONG bigint (Computed) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_MAPDISTANCEUNIT_DATEADDED DATEADDED    
 IX_MAPDISTANCEUNIT_DATECHANGED DATECHANGED      
 PK_MAPDISTANCEUNIT ID  

Trigger Name Description
 TR_MAPDISTANCEUNIT_AUDIT_UPDATE
 TR_MAPDISTANCEUNIT_AUDIT_DELETE