ACCOUNTINGELEMENTRELATIONSHIPELEMENTPARAMETER

This table holds details about the selected element parameters for all accounting element relationships.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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
ACCOUNTINGELEMENTRELATIONSHIPID uniqueidentifier yes ACCOUNTINGELEMENTRELATIONSHIP.ID FK to parent accounting element relationship
DATAELEMENTID uniqueidentifier yes PDACCOUNTSEGMENTVALUE.ID FK to selected element
ACCOUNTID uniqueidentifier yes GLACCOUNT.ID FK to selected account
PDACCOUNTSTRUCTUREID uniqueidentifier yes PDACCOUNTSTRUCTURE.ID FK to account structure element associated with this selected element
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_ACCOUNTINGELEMENTRELATIONSHIPELEMENTPARAMETER_ACCOUNTINGELEMENTRELATIONSHIPID ACCOUNTINGELEMENTRELATIONSHIPID
IX_ACCOUNTINGELEMENTRELATIONSHIPELEMENTPARAMETER_DATEADDED DATEADDED yes
IX_ACCOUNTINGELEMENTRELATIONSHIPELEMENTPARAMETER_DATECHANGED DATECHANGED
PK_ACCOUNTINGELEMENTRELATIONSHIPELEMENTPARAMETER ID yes yes

Triggers

Trigger Name Description
TR_ACCOUNTINGELEMENTRELATIONSHIPELEMENTPARAMETER_AUDIT_UPDATE
TR_ACCOUNTINGELEMENTRELATIONSHIPELEMENTPARAMETER_AUDIT_DELETE