DESIGNATIONLEVELGOAL

Stores goal information pertaining to a Fundraising Purpose.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = '' The name of the Designation Level Goal.
GOAL money Default = 0 The amount of the goal.
STARTDATE datetime The start date for this goal.
ENDDATE datetime The end date for this goal.
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.
ORGANIZATIONGOAL money Default = 0 Amount of the goal in organization currency.

Foreign Keys

Foreign Key Field Type Null Notes Description
DESIGNATIONLEVELID uniqueidentifier DESIGNATIONLEVEL.ID The parent record for this goal.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
ORGANIZATIONEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to convert from goal amount to organization goal amount.
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with this goal.

Indexes

Index Name Fields Unique Primary Clustered
IX_DESIGNATIONLEVELGOAL_BASECURRENCYID BASECURRENCYID
IX_DESIGNATIONLEVELGOAL_DATEADDED DATEADDED yes
IX_DESIGNATIONLEVELGOAL_DATECHANGED DATECHANGED
IX_DESIGNATIONLEVELGOAL_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID
PK_DESIGNATIONLEVELGOAL ID yes yes
UIX_DESIGNATIONLEVELGOAL_NAME_DESIGNATIONLEVELID NAME, DESIGNATIONLEVELID yes

Triggers

Trigger Name Description
TR_DESIGNATIONLEVELGOAL_DESIGNATIONGOAL_INSERT
TR_DESIGNATIONLEVELGOAL_DESIGNATIONGOAL_UPDATE
TR_DESIGNATIONLEVELGOAL_AUDIT_UPDATE
TR_DESIGNATIONLEVELGOAL_AUDIT_DELETE

Referenced by

Referenced by Field
DESIGNATIONGOAL DESIGNATIONLEVELGOALID