MKTSOURCECODEPARTDEFINITION
Stores information for a source code part.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| NAME |
nvarchar(50) |
|
Default = '' |
A short description of what is contained in this the position. |
| ITEMTYPECODE |
tinyint |
|
Default = 0 |
The type for this part of the source code. |
| DESCRIPTION |
nvarchar(255) |
|
Default = '' |
A short description for this position. |
| 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. |
| ITEMTYPE |
nvarchar(16) (Computed) |
yes |
CASE [ITEMTYPECODE] WHEN 0 THEN N'Marketing Effort' WHEN 1 THEN N'Segment' WHEN 2 THEN N'Package' WHEN 3 THEN N'Channel' WHEN 5 THEN N'User Defined' WHEN 6 THEN N'List' WHEN 7 THEN N'Test Segment' END |
Provides a translation for the 'ITEMTYPECODE' field. |
| AUTOINCREMENTVALUE |
bit |
|
Default = 0 |
The option that determines whether to automatically increment the code value when selected in a dropdown. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_MKTSOURCECODEPARTDEFINITION_DATEADDED |
DATEADDED |
|
|
yes |
| IX_MKTSOURCECODEPARTDEFINITION_DATECHANGED |
DATECHANGED |
|
|
|
| PK_MKTSOURCECODEPARTDEFINITION |
ID |
yes |
yes |
|
| UC_MKTSOURCECODEPARTDEFINITION_NAME |
NAME |
yes |
|
|
| UIX_MKTSOURCECODEPARTDEFINITION_ID |
ID |
yes |
|
|
Triggers
Referenced by