MKTCREATIVEATTACHMENT
Stores attachments pertaining to a creative.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) |
|
Default = '' |
A name for the attachment. |
DESCRIPTION |
nvarchar(255) |
|
Default = '' |
A description about the attachment. |
FILENAME |
nvarchar(255) |
|
Default = '' |
The original file name for the attachment. |
FILE |
varbinary |
|
|
The actual file for the attachment. |
FILETHUMBNAIL |
varbinary |
yes |
|
For image files, a thumbnail image, otherwise empty. |
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 |
CREATIVEID |
uniqueidentifier |
|
MKTCREATIVE.ID
|
The creative to which this attachment belongs. |
ATTACHMENTTYPECODEID |
uniqueidentifier |
|
MKTATTACHMENTTYPECODE.ID
|
The type of attachment associated with a creative. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_MKTCREATIVEATTACHMENT_CREATIVEID |
CREATIVEID |
|
|
|
IX_MKTCREATIVEATTACHMENT_DATEADDED |
DATEADDED |
|
|
yes |
IX_MKTCREATIVEATTACHMENT_DATECHANGED |
DATECHANGED |
|
|
|
PK_MKTCREATIVEATTACHMENT |
ID |
yes |
yes |
|
UC_MKTCREATIVEATTACHMENT_NAME |
NAME |
yes |
|
|
Triggers