GRANTOR

Contains the date ranges for which a constituent is a grantor.

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
ID uniqueidentifier CONSTITUENT.LOCALID Primary Key.
GRANTORTYPECODEID uniqueidentifier GRANTORTYPECODE.ID FK to GRANTORTYPECODE
CONTACTID uniqueidentifier yes RELATIONSHIP.ID FK to RELATIONSHIP
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_GRANTOR_CONTACTID CONTACTID
IX_GRANTOR_DATEADDED DATEADDED yes
IX_GRANTOR_DATECHANGED DATECHANGED
IX_GRANTOR_GRANTORTYPECODEID GRANTORTYPECODEID
PK_GRANTOR ID yes yes

Triggers

Trigger Name Description
TR_GRANTOR_AUDIT_UPDATE
TR_GRANTOR_AUDIT_DELETE
TR_GRANTOR_MARKASCONSTITUENT

Referenced by

Referenced by Field
GRANTS GRANTORID