ORGANIZATIONPOSITIONHOLDER

Organization Hierarchy

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEFROM datetime The date that the solicitor and/or became effective.
DATETO datetime yes The date that the solicitor ceased to hold the position or should cease to hold the position.
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
POSITIONID uniqueidentifier ORGANIZATIONPOSITION.ID FK to ORGANIZATIONPOSITION
CONSTITUENTID uniqueidentifier yes CONSTITUENT.LOCALID FK to CONSTITUENT table.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_ORGANIZATIONPOSITIONHOLDER_CONSTITUENTID CONSTITUENTID
IX_ORGANIZATIONPOSITIONHOLDER_DATEADDED DATEADDED yes
IX_ORGANIZATIONPOSITIONHOLDER_DATECHANGED DATECHANGED
PK_ORGANIZATIONPOSITIONHOLDER ID yes yes

Triggers

Trigger Name Description
TR_ORGANIZATIONPOSITIONHOLDER_AUDIT_UPDATE
TR_ORGANIZATIONPOSITIONHOLDER_AUDIT_DELETE