SPONSORBENEFITOPTION
Primary Key
| Primary Key | Field Type | 
|---|---|
| ID | uniqueidentifier | 
Fields
| Field | Field Type | Null | Notes | Description | 
|---|---|---|---|---|
| BENEFITPREFERENCE | nvarchar(500) | Default = '' | ||
| BENEFITTYPECODE | tinyint | Default = 1 | ||
| BENEFITTYPE | nvarchar(33) (Computed) | yes | CASE [BENEFITTYPECODE] WHEN 0 THEN N'Registration' WHEN 1 THEN N'Fundraising incentive' WHEN 2 THEN N'Participant recruitment incentive' WHEN 3 THEN N'Donation retention incentive' WHEN 4 THEN N'Communications incentive' WHEN 5 THEN N'Volunteer recruitment incentive' END | |
| DATEADDED | datetime | Default = getdate() | ||
| DATECHANGED | datetime | Default = getdate() | ||
| TS | timestamp | |||
| TSLONG | bigint (Computed) | yes | CONVERT(bigint, TS) | 
Foreign Keys
| Foreign Key | Field Type | Null | Notes | Description | 
|---|---|---|---|---|
| SPONSORID | uniqueidentifier | EVENTSPONSOR.ID | ||
| BENEFITID | uniqueidentifier | BENEFIT.ID | ||
| BENEFITOPTIONID | uniqueidentifier | yes | BENEFITOPTION.ID | |
| ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | ||
| CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | 
Indexes
| Index Name | Fields | Unique | Primary | Clustered | 
|---|---|---|---|---|
| IX_SPONSORBENEFITOPTION_DATEADDED | DATEADDED | yes | ||
| IX_SPONSORBENEFITOPTION_DATECHANGED | DATECHANGED | |||
| IX_SPONSORBENEFITOPTION_SPONSORID_BENEFITID_BENEFITOPTIONID | SPONSORID, BENEFITID, BENEFITOPTIONID | |||
| PK_SPONSORBENEFITOPTION | ID | yes | yes | 
Triggers
| Trigger Name | Description | 
|---|---|
| TR_SPONSORBENEFITOPTION_AUDIT_UPDATE | |
| TR_SPONSORBENEFITOPTION_AUDIT_DELETE |