EMPLOYEECORPORATERELATIONSHIPTYPE

This table contains the employee relationships designated as corporate relationship types.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
ACTIVE bit Default = 1 Indicates whether or not the employee relationship type is active.
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
RELATIONSHIPTYPECODEID uniqueidentifier RELATIONSHIPTYPECODE.ID The relationship type foreign key designated as an employee relation type.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_EMPLOYEECORPORATERELATIONSHIPTYPE_DATEADDED DATEADDED yes
IX_EMPLOYEECORPORATERELATIONSHIPTYPE_DATECHANGED DATECHANGED
PK_EMPLOYEECORPORATERELATIONSHIPTYPE ID yes yes
UIX_EMPLOYEECORPORATERELATIONSHIPTYPE_RELATIONSHIPTYPECODEID RELATIONSHIPTYPECODEID yes

Triggers

Trigger Name Description
TR_EMPLOYEECORPORATERELATIONSHIPTYPE_AUDIT_UPDATE
TR_EMPLOYEECORPORATERELATIONSHIPTYPE_AUDIT_DELETE