OPPORTUNITYFUNDINGTYPE

Contains a list of funding types for a given opportunity.

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
OPPORTUNITYID uniqueidentifier OPPORTUNITY.ID A foreign key to the opportunity table
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
PROSPECTFUNDINGINTERESTID uniqueidentifier PROSPECTFUNDINGINTEREST.ID FK to PROSPECTFUNDINGINTEREST

Indexes

Index Name Fields Unique Primary Clustered
IX_OPPORTUNITYFUNDINGTYPE_DATEADDED DATEADDED yes
IX_OPPORTUNITYFUNDINGTYPE_DATECHANGED DATECHANGED
PK_OPPORTUNITYFUNDINGTYPE ID yes yes
UIX_OPPORTUNITYFUNDINGTYPE_OPPORTUNITYID_PROSPECTFUNDINGINTERESTID OPPORTUNITYID, PROSPECTFUNDINGINTERESTID yes

Triggers

Trigger Name Description
TR_OPPORTUNITYFUNDINGTYPE_AUDIT_UPDATE
TR_OPPORTUNITYFUNDINGTYPE_AUDIT_DELETE
TR_OPPORTUNITYFUNDINGTYPE_AUDIT_ETLDELETEDID