Primary Key Field Type
 ID uniqueidentifier

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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 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.
 PRIVATE bit   Default = 0 Flag videos only viewable by participant.

Foreign Key Field Type Null Notes Description
 EVENTID uniqueidentifier 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 CONSTITUENT.LOCALID The constituent id related to this video

Index Name Field(s) Unique Primary Clustered
 IX_VIDEO_CONSTITUENTID_EVENTID CONSTITUENTID, EVENTID      
 IX_VIDEO_DATEADDED DATEADDED    
 IX_VIDEO_DATECHANGED DATECHANGED      
 PK_VIDEO ID  

Trigger Name Description
 TR_VIDEO_AUDIT_UPDATE
 TR_VIDEO_AUDIT_DELETE

Entity-Relationship diagram of this table