SITE
Stores site information.
Primary Key
Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Fields
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
NAME | nvarchar(250) | Default = '' | Stores the name of the site | |
DESCRIPTION | nvarchar(max) | Default = '' | Stores the description of the site | |
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. |
HIERARCHYPATH | hierarchyid | Default = ([dbo].[UFN_SITEHIERARCHY_GETNEWDESCENDANTVALUE](NULL)) | Stores the hierarchy path | |
SHORTNAME | nvarchar(100) | Default = '' | Stores the short name of the site | |
SITEID | nvarchar(100) | Default = '' | Stores the site id | |
ACRONYM | nvarchar(100) | Default = '' | Stores the acronym of the site |
Foreign Keys
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
SITETYPECODEID | uniqueidentifier | yes | SITETYPECODE.ID | Stores the type of site |
Indexes
Index Name | Fields | Unique | Primary | Clustered |
---|---|---|---|---|
IX_SITE_DATEADDED | DATEADDED | yes | ||
IX_SITE_DATECHANGED | DATECHANGED | |||
IX_SITE_ID_NAME | ID, NAME | |||
IX_SITE_NAME_ID | NAME, ID | |||
PK_SITE | ID | yes | yes | |
UC_SITE_HIERARCHYPATH | HIERARCHYPATH | yes |
Triggers
Trigger Name | Description |
---|---|
TR_SITE_AUDIT_UPDATE | |
TR_SITE_AUDIT_DELETE | |
TR_SITE_AUDIT_ETLDELETEDID | |
TR_SITE_INSERTED | |
TR_SITE_UPDATED |