SOLICITCODE
Contains data describing the solicit codes.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
DESCRIPTION |
nvarchar(100) |
|
Default = '' |
Stores the description of the table entry |
ACTIVE |
bit |
|
Default = 1 |
Indicates whether or not the table entry is active |
SEQUENCE |
int |
|
Default = 0 |
Stores user-defined sequence for the solicit code |
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. |
EXCLUSIONCODE |
tinyint |
|
Default = 0 |
0=Optional, 1=Default, 2=Required |
EXCLUSION |
nvarchar(8) (Computed) |
yes |
CASE [EXCLUSIONCODE] WHEN 0 THEN N'Optional' WHEN 1 THEN N'Default' WHEN 2 THEN N'Required' END |
Provides a translation for the 'EXCLUSIONCODE' field. |
CONSENTCODE |
tinyint |
|
Default = 0 |
|
SOLICITCODECHANNELCODE |
tinyint |
|
Default = 0 |
|
SOLICITCODECHANNEL |
nvarchar(14) (Computed) |
yes |
CASE [SOLICITCODECHANNELCODE] WHEN 0 THEN N'None' WHEN 1 THEN N'Email' WHEN 2 THEN N'Mail' WHEN 3 THEN N'Phone' WHEN 4 THEN N'SMS' WHEN 5 THEN N'Social Media' WHEN 6 THEN N'Data Screening' WHEN 7 THEN N'Data Sharing' END |
|
COMMENTS |
nvarchar(255) |
|
Default = '' |
|
CONSENT |
nvarchar(16) (Computed) |
yes |
CASE [CONSENTCODE] WHEN 0 THEN N'None' WHEN 1 THEN N'GDPR' WHEN 2 THEN N'Advanced consent' END |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
SITEID |
uniqueidentifier |
yes |
SITE.ID
|
FK to SITE |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_SOLICITCODE_DATEADDED |
DATEADDED |
|
|
yes |
IX_SOLICITCODE_DATECHANGED |
DATECHANGED |
|
|
|
PK_SOLICITCODE |
ID |
yes |
yes |
|
UIX_SOLICITCODE_DESCRIPTION_SITEID |
DESCRIPTION, SITEID |
yes |
|
|
Triggers
Referenced by