Friends Asking Friends Event Form Template
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| FORMID |
uniqueidentifier |
yes |
|
Form ID for each category |
| FORMCATEGORYCODE |
tinyint |
|
Default = 1 |
Type of Form category |
| FORMCATEGORY |
nvarchar(17) (Computed) |
yes |
CASE [FORMCATEGORYCODE] WHEN 0 THEN N'Default' WHEN 1 THEN N'Registration form' WHEN 2 THEN N'Sponsorship form' WHEN 3 THEN N'Donation form' WHEN 4 THEN N'Volunteer form' END |
Provides a translation for the 'FORMCATEGORYCODE' 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. |
| ISDEFAULTFORM |
bit |
|
Default = 0 |
Is default form |
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_FAFEVENTFORMTEMPLATE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_FAFEVENTFORMTEMPLATE_DATECHANGED |
DATECHANGED |
|
|
|
| PK_FAFEVENTFORMTEMPLATE |
ID |
yes |
yes |
|
| UIX_FAFEVENTFORMTEMPLATE_EVENTID_FORMID_FORMCATEGORYCODE |
EVENTID, FORMID, FORMCATEGORYCODE |
yes |
|
|
Triggers