Friends Asking Friends offline form template
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
OFFLINEFORMCATEGORYCODE |
tinyint |
|
Default = 0 |
Offline form code |
OFFLINEFORMCATEGORY |
nvarchar(25) (Computed) |
yes |
CASE [OFFLINEFORMCATEGORYCODE] WHEN 0 THEN N'None' WHEN 1 THEN N'Offline registration form' WHEN 2 THEN N'Offline sponsorship form' WHEN 3 THEN N'Offline donation form' END |
Provides a translation for the 'OFFLINEFORMCATEGORYCODE' field. |
OFFLINEFORMCONTENT |
nvarchar(max) |
|
Default = '' |
Content for offline form |
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_FAFOFFLINEFORMTEMPLATE_DATEADDED |
DATEADDED |
|
|
yes |
IX_FAFOFFLINEFORMTEMPLATE_DATECHANGED |
DATECHANGED |
|
|
|
PK_FAFOFFLINEFORMTEMPLATE |
ID |
yes |
yes |
|
UIX_FAFOFFLINEFORMTEMPLATE_EVENTID_OFFLINEFORMCATEGORYCODE |
EVENTID, OFFLINEFORMCATEGORYCODE |
yes |
|
|
Triggers