COUNTRY
Contains definitions of countries.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
DESCRIPTION |
nvarchar(100) |
|
Default = '' |
Stores the description of the country |
ABBREVIATION |
nvarchar(5) |
|
Default = '' |
Stores the abbreviation of the country |
ACTIVE |
bit |
|
Default = 1 |
Indicates whether or not the country is active |
SEQUENCE |
int |
|
Default = 0 |
Stores the user-defined sequence for the country |
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. |
USEFORCOAUPDATE |
bit |
|
Default = 0 |
Indicates which country is to be used for the change of address update process. |
PHONEFORMATCODE |
tinyint |
|
Default = 0 |
Stores the phone format code for the country. |
COUNTRYCODE |
nvarchar(10) |
|
Default = '' |
Stores the telephone country code for calling this country. |
ISO3166 |
nvarchar(2) |
|
Default = '' |
Stores the ISO3166 code for the country. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
COUNTRYADDRESSFORMATID |
uniqueidentifier |
|
COUNTRYADDRESSFORMAT.ID
|
Indicates the type of format to use when building addresses for this country. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_COUNTRY_DATEADDED |
DATEADDED |
|
|
yes |
IX_COUNTRY_DATECHANGED |
DATECHANGED |
|
|
|
IX_COUNTRY_ID |
ID |
|
|
|
PK_COUNTRY |
ID |
yes |
yes |
|
UC_COUNTRY_ABBREVIATION |
ABBREVIATION |
yes |
|
|
UC_COUNTRY_DESCRIPTION |
DESCRIPTION |
yes |
|
|
Triggers
Referenced by