CORRESPONDENCECODE
Stores the correspondence code information.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) |
|
Default = '' |
Name of the correspondence code. |
DESCRIPTION |
nvarchar(255) |
|
Default = '' |
Description of the correspondence code. |
ISACTIVE |
bit |
|
Default = 1 |
Indicates whether the code is active. |
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. |
CATEGORYCODEID |
uniqueidentifier |
yes |
CORRESPONDENCECATEGORYCODE.ID
|
Category of the correspondence code. |
SITEID |
uniqueidentifier |
yes |
SITE.ID
|
The site with which a correspondence code is associated. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_CORRESPONDENCECODE_DATEADDED |
DATEADDED |
|
|
yes |
IX_CORRESPONDENCECODE_DATECHANGED |
DATECHANGED |
|
|
|
IX_CORRESPONDENCECODE_SITEID |
SITEID |
|
|
|
PK_CORRESPONDENCECODE |
ID |
yes |
yes |
|
UC_CORRESPONDENCECODE_NAME |
NAME |
yes |
|
|
Triggers
Referenced by