STATE
Contains definitions of states.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| DESCRIPTION |
nvarchar(100) |
|
Default = '' |
Stores the description of the state |
| ABBREVIATION |
nvarchar(50) |
|
Default = '' |
Stores the abbreviation of the state |
| ACTIVE |
bit |
|
Default = 1 |
Indicates whether or not the state is active |
| SEQUENCE |
int |
|
Default = 0 |
Stores the user-defined sequence for the state |
| 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 |
| COUNTRYID |
uniqueidentifier |
|
COUNTRY.LOCALID
|
FK to COUNTRY |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_STATE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_STATE_DATECHANGED |
DATECHANGED |
|
|
|
| IX_STATE_ID |
ID |
|
|
|
| PK_STATE |
ID |
yes |
yes |
|
| UIX_STATE_COUNTRYID_ABBREVIATION |
COUNTRYID, ABBREVIATION |
yes |
|
|
| UIX_STATE_COUNTRYID_DESCRIPTION |
COUNTRYID, DESCRIPTION |
yes |
|
|
Triggers
Referenced by