| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
TYPECODE |
tinyint | Default = 0 | Type | |
TYPE |
nvarchar(11) (Computed) | ![]() |
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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
SITEIMAGESID |
int | SiteImages.ID | FK to SITEIMAGES | |
CONSTITUENTID |
uniqueidentifier | ![]() |
CONSTITUENT.LOCALID | The image owner constituent id |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_SITEIMAGESEXTENSION_CONSTITUENTID |
CONSTITUENTID | |||
IX_SITEIMAGESEXTENSION_DATEADDED |
DATEADDED | ![]() |
||
IX_SITEIMAGESEXTENSION_DATECHANGED |
DATECHANGED | |||
PK_SITEIMAGESEXTENSION |
ID | ![]() |
![]() |
|
UIX_SITEIMAGESEXTENSION_SITEIMAGESID |
SITEIMAGESID | ![]() |
| Trigger Name | Description |
|---|---|
TR_SITEIMAGESEXTENSION_AUDIT_UPDATE |
|
TR_SITEIMAGESEXTENSION_AUDIT_DELETE |

ID
TYPECODE
TYPE
SITEIMAGESID
IX_SITEIMAGESEXTENSION_CONSTITUENTID
IX_SITEIMAGESEXTENSION_DATEADDED