VIDEO

Links videos to participants

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
VIDEOID nvarchar(50) Default = ''
NAME nvarchar(100) Default = ''
CAPTION nvarchar(250) Default = ''
URL nvarchar(500) Default = ''
STATUS nvarchar(2) Default = ''
FILEPATH nvarchar(1000) Default = ''
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.
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.
PRIVATE bit Default = 0 Flag videos only viewable by participant.

Foreign Keys

Foreign Key Field Type Null Notes Description
EVENTID uniqueidentifier yes EVENT.ID The event id related to this video
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CONSTITUENTID uniqueidentifier yes CONSTITUENT.LOCALID The constituent id related to this video

Indexes

Index Name Fields Unique Primary Clustered
IX_VIDEO_CONSTITUENTID_EVENTID CONSTITUENTID, EVENTID
IX_VIDEO_DATEADDED DATEADDED yes
IX_VIDEO_DATECHANGED DATECHANGED
PK_VIDEO ID yes yes

Triggers

Trigger Name Description
TR_VIDEO_AUDIT_UPDATE
TR_VIDEO_AUDIT_DELETE