FAFEVENTPAGETEMPLATE
Friends Asking Friends Event Page Template
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
PAGEID |
int |
|
Default = 1 |
Page ID for each fundraising category |
PAGECATEGORYCODE |
tinyint |
|
Default = 1 |
Type of Page category |
PAGECATEGORY |
nvarchar(28) (Computed) |
yes |
CASE [PAGECATEGORYCODE] WHEN 0 THEN N'Default' WHEN 1 THEN N'Participant fundraising page' WHEN 2 THEN N'Team fundraising page' WHEN 3 THEN N'Household fundraising page' WHEN 4 THEN N'Company fundraising page' END |
Provides a translation for the 'PAGECATEGORYCODE' 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 |
EVENTID |
uniqueidentifier |
|
EVENT.ID
|
Foreign Key to Event table |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_FAFEVENTPAGETEMPLATE_DATEADDED |
DATEADDED |
|
|
yes |
IX_FAFEVENTPAGETEMPLATE_DATECHANGED |
DATECHANGED |
|
|
|
PK_FAFEVENTPAGETEMPLATE |
ID |
yes |
yes |
|
UIX_FAFEVENTPAGETEMPLATE_EVENTID_PAGEID_PAGECATEGORYCODE |
EVENTID, PAGEID, PAGECATEGORYCODE |
yes |
|
|
Triggers