FUNDINGREQUESTSPONSOR

A funding request sponsor is represented by a row in the funding request sponsor table.

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
FUNDINGREQUESTID uniqueidentifier FUNDINGREQUEST.ID A foreign key to the funding request table.
SPONSORID uniqueidentifier CONSTITUENT.LOCALID A foreign key to the constituent table.
FUNDINGREQUESTROLECODEID uniqueidentifier yes FUNDINGREQUESTROLECODE.ID The role of the sponsor.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_FUNDINGREQUESTSPONSOR_DATEADDED DATEADDED yes
IX_FUNDINGREQUESTSPONSOR_DATECHANGED DATECHANGED
PK_FUNDINGREQUESTSPONSOR ID yes yes
UIX_FUNDINGREQUESTSPONSOR_FUNDINGREQUESTID_SPONSORID_FUNDINGREQUESTROLECODEID FUNDINGREQUESTID, SPONSORID, FUNDINGREQUESTROLECODEID yes

Triggers

Trigger Name Description
TR_FUNDINGREQUESTSPONSOR_AUDIT_UPDATE
TR_FUNDINGREQUESTSPONSOR_AUDIT_DELETE