REGISTRANTDESIGNATION

Contains designations and amounts for event registrants.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
AMOUNT money Default = 0
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.
ORGANIZATIONAMOUNT money Default = 0 The amount in the organization currency.

Foreign Keys

Foreign Key Field Type Null Notes Description
REGISTRANTID uniqueidentifier REGISTRANT.ID FK to REGISTRANT
DESIGNATIONID uniqueidentifier DESIGNATION.ID FK to DESIGNATION
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 to the organization amount.

Indexes

Index Name Fields Unique Primary Clustered
IX_REGISTRANTDESIGNATION_DATEADDED DATEADDED yes
IX_REGISTRANTDESIGNATION_DATECHANGED DATECHANGED
IX_REGISTRANTDESIGNATION_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID
PK_REGISTRANTDESIGNATION ID yes yes
UIX_REGISTRANTDESIGNATION_REGISTRANTID_DESIGNATIONID REGISTRANTID, DESIGNATIONID yes

Triggers

Trigger Name Description
TR_REGISTRANTDESIGNATION_INSERTUPDATE_CURRENCY
TR_REGISTRANTDESIGNATION_AUDIT_UPDATE
TR_REGISTRANTDESIGNATION_AUDIT_DELETE