ACCOUNTINGELEMENTSECURITYGROUPELEMENT

This table contains accounting elements and what groups they belong to.

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
ACCOUNTINGELEMENTSECURITYGROUPID uniqueidentifier yes ACCOUNTINGELEMENTSECURITYGROUP.ID The ID of the security group that is assigned.
DATAELEMENTID uniqueidentifier yes PDACCOUNTSEGMENTVALUE.ID The accounting element to which the security group is assigned.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_ACCOUNTINGELEMENTSECURITYGROUPELEMENT_DATAELEMENTID DATAELEMENTID
IX_ACCOUNTINGELEMENTSECURITYGROUPELEMENT_DATEADDED DATEADDED yes
IX_ACCOUNTINGELEMENTSECURITYGROUPELEMENT_DATECHANGED DATECHANGED
PK_ACCOUNTINGELEMENTSECURITYGROUPELEMENT ID yes yes
UIX_ACCOUNTINGELEMENTSECURITYGROUPELEMENT_ACCOUNTINGELEMENTSECURITYGROUPID_DATAELEMENTID ACCOUNTINGELEMENTSECURITYGROUPID, DATAELEMENTID yes

Triggers

Trigger Name Description
TR_ACCOUNTINGELEMENTSECURITYGROUPELEMENT_AUDIT_UPDATE
TR_ACCOUNTINGELEMENTSECURITYGROUPELEMENT_AUDIT_DELETE