Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 LONGDESCRIPTIONID nvarchar(36)   Default = '' FK (not enforced) to the table pointed to in the PDACCOUNTSTRUCTURE segment
 ISDEFAULT bit   Default = 0 Is this the default value for the segment.
 SEQUENCE int   Default = 0
 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.
 LONGDESCRIPTION nvarchar(512) (Computed) ([dbo].[UFN_PDACCOUNTSEGMENTMAP_GETLONGDESCRIPTION](LONGDESCRIPTIONID, ISDEFAULT)) Long description.

Foreign Key Field Type Null Notes Description
 BATCHID uniqueidentifier   BATCH.ID FK to BATCH
 PDACCOUNTSTRUCTUREID uniqueidentifier PDACCOUNTSTRUCTURE.ID FK to linked account structure element.
 PDACCOUNTSEGMENTVALUEID uniqueidentifier PDACCOUNTSEGMENTVALUE.ID FK to the table pointed to in the PDAccountSegmentValue
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHPDACCOUNTSEGMENTMAPPING_BATCHID BATCHID      
 IX_BATCHPDACCOUNTSEGMENTMAPPING_DATEADDED DATEADDED    
 IX_BATCHPDACCOUNTSEGMENTMAPPING_DATECHANGED DATECHANGED      
 PK_BATCHPDACCOUNTSEGMENTMAPPING ID  

Trigger Name Description
 TR_BATCHPDACCOUNTSEGMENTMAPPING_AUDIT_UPDATE
 TR_BATCHPDACCOUNTSEGMENTMAPPING_AUDIT_DELETE

Referenced by Field
 BATCHPDACCOUNTSEGMENTMAPPINGBATCHSYSTEMMESSAGES BATCHPDACCOUNTSEGMENTMAPPINGID
 BATCHPDACCOUNTSEGMENTMAPPINGBATCHUSERMESSAGE ID

Entity-Relationship diagram of this table