DESIGNATIONLEVELREVENUEINFORMATION

This table contains revenue information belonging to a Fundraising Purpose.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
ISORIGINALFUNDING bit Default = 0 Specifies whether this revenue item is a corpus for the purpose.
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
REVENUEID uniqueidentifier yes FINANCIALTRANSACTION.ID The revenue item associated with the purpose.
DESIGNATIONLEVELID uniqueidentifier yes DESIGNATIONLEVEL.ID The fundraising purpose.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_DESIGNATIONLEVELREVENUEINFORMATION_DATEADDED DATEADDED yes
IX_DESIGNATIONLEVELREVENUEINFORMATION_DATECHANGED DATECHANGED
PK_DESIGNATIONLEVELREVENUEINFORMATION ID yes yes
UIX_DESIGNATIONLEVELREVENUEINFORMATION_REVENUEID_DESIGNATIONLEVELID REVENUEID, DESIGNATIONLEVELID yes

Triggers

Trigger Name Description
TR_DESIGNATIONLEVELREVENUEINFORMATION_AUDIT_UPDATE
TR_DESIGNATIONLEVELREVENUEINFORMATION_AUDIT_DELETE