RELATIONSHIPMAPINSTANCE

Stores relationship map instances.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
CONTEXTRECORDID nvarchar(100) Default = '' The ID of the record that represents the root node of the relationship map instance.
NAME nvarchar(255) Default = '' The name of the relationship map instance.
DESCRIPTION nvarchar(1000) Default = '' A description of the relationship map instance.
DEFINITIONXML xml The relationship map instance definition XML.
PARAMETERDEFINITIONXML xml yes The parameter definition XML for filtering the relationship map instance's nodes.
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.
OTHERSCANMODIFY bit Default = 1 Flag indicating whether a user other than the owner of the relationship map instance can modify the instance.

Foreign Keys

Foreign Key Field Type Null Notes Description
RELATIONSHIPMAPID uniqueidentifier RELATIONSHIPMAPCATALOG.ID The ID of the relationship map on which the relationship map instance is based.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
OWNERID uniqueidentifier APPUSER.ID The owner of the relationship map instance.

Indexes

Index Name Fields Unique Primary Clustered
IX_RELATIONSHIPMAPINSTANCE_CONTEXTRECORDID CONTEXTRECORDID
IX_RELATIONSHIPMAPINSTANCE_DATEADDED DATEADDED yes
IX_RELATIONSHIPMAPINSTANCE_DATECHANGED DATECHANGED
PK_RELATIONSHIPMAPINSTANCE ID yes yes
UIX_RELATIONSHIPMAPINSTANCE_RELATIONSHIPMAPID_CONTEXTRECORDID_NAME RELATIONSHIPMAPID, CONTEXTRECORDID, NAME yes

Triggers

Trigger Name Description
TR_RELATIONSHIPMAPINSTANCE_AUDIT_UPDATE
TR_RELATIONSHIPMAPINSTANCE_AUDIT_DELETE