PDACCOUNTSEGMENTMAPPING

A mapping of segment long and short descriptions.

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 PDACCOUNTSTRUCTURE segment
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.
LONGDESCRIPTION nvarchar(512) (Computed) yes ([dbo].[UFN_PDACCOUNTSEGMENTMAP_GETLONGDESCRIPTION](LONGDESCRIPTIONID, ISDEFAULT)) Long description.
ISCONSTANTVALUE bit Default = 0 Flag for constant valued segments.

Foreign Keys

Foreign Key Field Type Null Notes Description
PDACCOUNTSTRUCTUREID uniqueidentifier yes PDACCOUNTSTRUCTURE.ID FK to linked account structure element.
PDACCOUNTSEGMENTVALUEID uniqueidentifier yes 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.

Indexes

Index Name Fields Unique Primary Clustered
IX_PDACCOUNTSEGMENTMAPPING_DATEADDED DATEADDED yes
IX_PDACCOUNTSEGMENTMAPPING_DATECHANGED DATECHANGED
IX_PDACCOUNTSEGMENTMAPPING_LONGDESCRIPTIONID_PDACCOUNTSTRUCTUREID_ISDEFAULT_PDACCOUNTSEGMENTVALUEID LONGDESCRIPTIONID, PDACCOUNTSTRUCTUREID, ISDEFAULT, PDACCOUNTSEGMENTVALUEID
PK_PDACCOUNTSEGMENTMAPPING ID yes yes

Triggers

Trigger Name Description
TR_PDACCOUNTSEGMENTMAPPING_IUD
TR_PDACCOUNTSEGMENTMAPPING_AUDIT_UPDATE
TR_PDACCOUNTSEGMENTMAPPING_AUDIT_DELETE