RELATIONSHIPJOBINFO

Job information for a constituent.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
JOBTITLE nvarchar(100) Default = '' Store the job title value for a relationship
STARTDATE datetime yes Date that the job was established or became effective
ENDDATE datetime yes Date that the job was dissolved or ceased to be effective
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.
JOBDIVISION nvarchar(100) Default = '' Stores the division of the job for this relationship
JOBDEPARTMENT nvarchar(100) Default = '' Stores the department of the job for this relationship
JOBRESPONSIBILITY nvarchar(250) Default = '' Store the responsibility value for a relationship
ISPRIVATERECORD bit Default = 0 Store whether the employment record is public/private

Foreign Keys

Foreign Key Field Type Null Notes Description
RELATIONSHIPSETID uniqueidentifier RELATIONSHIPSET.ID FK to RELATIONSHIPSET
JOBCATEGORYCODEID uniqueidentifier yes JOBCATEGORYCODE.ID Stores the category of the job for this relationship
CAREERLEVELCODEID uniqueidentifier yes CAREERLEVELCODE.ID Stores the career level of the job for this relationship
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
JOBSCHEDULECODEID uniqueidentifier yes JOBSCHEDULECODE.ID Stores the schedule of the job for this relationship

Indexes

Index Name Fields Unique Primary Clustered
IX_RELATIONSHIPJOBINFO_DATEADDED DATEADDED yes
IX_RELATIONSHIPJOBINFO_DATECHANGED DATECHANGED
IX_RELATIONSHIPJOBINFO_RELATIONSHIPSETID RELATIONSHIPSETID
PK_RELATIONSHIPJOBINFO ID yes yes

Triggers

Trigger Name Description
TR_RELATIONSHIPJOBINFO_AUDIT_ETLDELETEDID
TR_RELATIONSHIPJOBINFO_AUDIT_UPDATE
TR_RELATIONSHIPJOBINFO_AUDIT_DELETE