CLIENTROLECHILD

Defines the client roles that are children of a given client role.

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
PARENTCLIENTROLEID int ClientRoles.ID FK to CLIENTROLES
CHILDCLIENTROLEID int ClientRoles.ID FK to CLIENTROLES
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_CLIENTROLECHILD_DATEADDED DATEADDED yes
IX_CLIENTROLECHILD_DATECHANGED DATECHANGED
PK_CLIENTROLECHILD ID yes yes
UIX_CLIENTROLECHILD_CHILDCLIENTROLEID_PARENTCLIENTROLEID CHILDCLIENTROLEID, PARENTCLIENTROLEID yes

Triggers

Trigger Name Description
TR_CLIENTROLECHILD_AUDIT_UPDATE
TR_CLIENTROLECHILD_AUDIT_DELETE