SITEIMAGESEXTENSION
Used to extend the siteimages table; link constituent id to siteimages
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
TYPECODE |
tinyint |
|
Default = 0 |
Type |
TYPE |
nvarchar(11) (Computed) |
yes |
CASE [TYPECODE] WHEN 0 THEN N'Participant' WHEN 1 THEN N'Team' WHEN 2 THEN N'Company' WHEN 3 THEN N'Household' END |
Provides a translation for the 'TYPECODE' 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 |
SITEIMAGESID |
int |
|
SiteImages.ID
|
FK to SITEIMAGES |
CONSTITUENTID |
uniqueidentifier |
yes |
CONSTITUENT.LOCALID
|
The image owner constituent id |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_SITEIMAGESEXTENSION_CONSTITUENTID |
CONSTITUENTID |
|
|
|
IX_SITEIMAGESEXTENSION_DATEADDED |
DATEADDED |
|
|
yes |
IX_SITEIMAGESEXTENSION_DATECHANGED |
DATECHANGED |
|
|
|
PK_SITEIMAGESEXTENSION |
ID |
yes |
yes |
|
UIX_SITEIMAGESEXTENSION_SITEIMAGESID |
SITEIMAGESID |
yes |
|
|
Triggers