PDCOMPOSITESEGMENTMAPPINGENTRY

Holds various table mapping entries for Composite Segments.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
LONGDESCRIPTIONID nvarchar(36) Default = '' FK (not enforced) to the table pointed to in the PDCOMPOSITESEGMENTTABLELIST.
ISDEFAULT bit Default = 0 Is this the default value for the segment.
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
PDCOMPOSITESEGMENTMAPPINGID uniqueidentifier yes PDCOMPOSITESEGMENTMAPPING.ID The parent entry in the PDCOMPOSITESEGMENTMAPPING Table
PDCOMPOSITESEGMENTTABLELISTID uniqueidentifier yes PDCOMPOSITESEGMENTTABLELIST.ID The parent entry in the PDCOMPOSITESEGMENTTABLELIST Table
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PDCOMPOSITESEGMENTMAPPINGENTRY_DATEADDED DATEADDED yes
IX_PDCOMPOSITESEGMENTMAPPINGENTRY_DATECHANGED DATECHANGED
IX_PDCOMPOSITESEGMENTMAPPINGENTRY_PDCOMPOSITESEGMENTMAPPINGID PDCOMPOSITESEGMENTMAPPINGID
PK_PDCOMPOSITESEGMENTMAPPINGENTRY ID yes yes

Triggers

Trigger Name Description
TR_PDCOMPOSITESEGMENTMAPPINGENTRY_IUD
TR_PDCOMPOSITESEGMENTMAPPINGENTRY_AUDIT_UPDATE
TR_PDCOMPOSITESEGMENTMAPPINGENTRY_AUDIT_DELETE