MAPDISTANCEUNIT
Stores the unit of distance used by mapping for this system.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
MAPDISTANCEUNITCODE |
tinyint |
|
Default = 0 |
0=Mile, 1=Kilometer |
MAPDISTANCEUNIT |
nvarchar(9) (Computed) |
yes |
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_MAPDISTANCEUNIT_DATEADDED |
DATEADDED |
|
|
yes |
IX_MAPDISTANCEUNIT_DATECHANGED |
DATECHANGED |
|
|
|
PK_MAPDISTANCEUNIT |
ID |
yes |
yes |
|
Triggers