OPPORTUNITYDESIGNATION (4.0)

Stores Designation for an opportunity.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

OPPORTUNITYID

uniqueidentifier

false

FK to OPPORTUNITY

DESIGNATIONID

uniqueidentifier

true

FK to DESIGNATION

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CONSTITUENTID

uniqueidentifier

true

FK to CONSTITUENT

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this designation.

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from amount to organization amount.

TRANSACTIONCURRENCYID

uniqueidentifier

true

The transaction currency associated with this designation.

BASEEXCHANGERATEID

uniqueidentifier

true

FK to CURRENCYEXCHANGERATE

FUNDINGMETHODCODEID

uniqueidentifier

true

FK to OPPORTUNITYDESIGNATIONFMCODE

CATEGORYCODEID

uniqueidentifier

true

FK to PLANNEDGIFTDESCATEGORYCODE

TYPECODEID

uniqueidentifier

true

FK to OPPORTUNITYDESIGNATIONTYPECODE

USECODEID

uniqueidentifier

true

FK to DESIGNATIONUSECODE

Fields
Field Field Type Null Notes Description

AMOUNT

money

false

0

SEQUENCE

int

false

0

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ORGANIZATIONAMOUNT

money

false

0

The amount of the designation in organization currency.

TRANSACTIONAMOUNT

money

false

0

The amount of the designation in transaction currency.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_OPPORTUNITYDESIGNATION_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_OPPORTUNITYDESIGNATION_CONSTITUENTID

CONSTITUENTID

False

False

False

IX_OPPORTUNITYDESIGNATION_DATEADDED

DATEADDED

False

False

True

IX_OPPORTUNITYDESIGNATION_DATECHANGED

DATECHANGED

False

False

False

IX_OPPORTUNITYDESIGNATION_OPPORTUNITYID

OPPORTUNITYID

False

False

False

IX_OPPORTUNITYDESIGNATION_ORGANIZATIONEXCHANGERATEID

ORGANIZATIONEXCHANGERATEID

False

False

False

PK_OPPORTUNITYDESIGNATION

ID

True

True

False

Triggers
Trigger Name Description

TR_OPPORTUNITYDESIGNATION_T2BDELETE

TR_OPPORTUNITYDESIGNATION_AUDIT_ETLDELETEDID

TR_OPPORTUNITYDESIGNATION_AUDIT_UPDATE

TR_OPPORTUNITYDESIGNATION_AUDIT_DELETE

TR_OPPORTUNITYDESIGNATION_INSERTUPDATE_CURRENCY

TR_OPPORTUNITYDESIGNATION_T2BINSERTUPDATE

Referenced by
Referenced by Field

OPPORTUNITYDESIGNATIONCAMPAIGN

OPPORTUNITYDESIGNATIONID