Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 CODE nvarchar(11)   Default = '' The value for the source code part.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 MKTSOURCECODEMAPID uniqueidentifier   MKTSOURCECODEMAP.ID The source code map this part belongs to.
 MKTSOURCECODEPARTDEFINITIONID uniqueidentifier   MKTSOURCECODEPARTDEFINITION.ID The source code part definition that describes this part.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 MKTSOURCECODEPARTDEFINITIONVALUESID uniqueidentifier MKTSOURCECODEPARTDEFINITIONVALUES.ID The source code part definition value that describes this part.

Index Name Field(s) Unique Primary Clustered
 IX_MKTSOURCECODEMAPPART_DATEADDED DATEADDED    
 IX_MKTSOURCECODEMAPPART_DATECHANGED DATECHANGED      
 IX_MKTSOURCECODEMAPPART_MKTSOURCECODEPARTDEFINITIONID MKTSOURCECODEPARTDEFINITIONID      
 IX_MKTSOURCECODEMAPPART_MKTSOURCECODEPARTDEFINITIONVALUESID MKTSOURCECODEPARTDEFINITIONVALUESID      
 PK_MKTSOURCECODEMAPPART ID  
 UIX_MKTSOURCECODEMAPPART_MKTSOURCECODEMAPID_MKTSOURCECODEPARTDEFINITIONID MKTSOURCECODEMAPID, MKTSOURCECODEPARTDEFINITIONID    

Trigger Name Description
 TR_MKTSOURCECODEMAPPART_AUDIT_ETLDELETEDID
 TR_MKTSOURCECODEMAPPART_AUDIT_UPDATE
 TR_MKTSOURCECODEMAPPART_AUDIT_DELETE

Entity-Relationship diagram of this table