EVENTPRICE

Contains information pertaining to event prices.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
AMOUNT money Default = 0
RECEIPTAMOUNT money Default = 0
COST 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.
NAME nvarchar(100) Default = ''
REGISTRATIONCOUNT int Default = 0 Designates the number of registrants paid for by the event price.
ORGANIZATIONAMOUNT money Default = 0 The amount in the organization currency.
ORGANIZATIONCOST money Default = 0 The cost in the organization currency.

Foreign Keys

Foreign Key Field Type Null Notes Description
EVENTID uniqueidentifier EVENT.ID FK to EVENT
EVENTREGISTRATIONTYPEID uniqueidentifier EVENTREGISTRATIONTYPE.ID FK to EVENTREGISTRATIONTYPE
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_EVENTPRICE_DATEADDED DATEADDED yes
IX_EVENTPRICE_DATECHANGED DATECHANGED
IX_EVENTPRICE_EVENTID_EVENTREGISTRATIONTYPEID EVENTID, EVENTREGISTRATIONTYPEID
IX_EVENTPRICE_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID
PK_EVENTPRICE ID yes yes
UIX_EVENTPRICE_EVENTID_NAME EVENTID, NAME yes

Triggers

Trigger Name Description
TR_EVENTPRICE_AUDIT_ETLDELETEDID
TR_EVENTPRICE_INSERTUPDATE_CURRENCY
TR_EVENTPRICE_DELETE_BBNCEVENTPRICEIDMAP
TR_EVENTPRICE_INSERT_BBNCEVENTPRICEIDMAP
TR_EVENTPRICE_AUDIT_UPDATE
TR_EVENTPRICE_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHAMPROIMPORTREGISTRANT REGISTRANT_EVENTPRICEID
BATCHEVENTREGISTRANT EVENTPRICEID
BATCHREVENUEREGISTRANTREGISTRATION EVENTPRICEID
DAILYSALEITEMEVENTREGISTRATION EVENTPRICEID
EVENTPRICEBENEFIT EVENTPRICEID
FAFREGISTRATIONTYPE EVENTPRICEID
FAFREGISTRATIONTYPEGOAL EVENTPRICEID
REGISTRANTBATCH REGISTRATIONOPTIONID
REGISTRANTREGISTRATION EVENTPRICEID
REGISTRATIONPACKAGEPRICE EVENTPRICEID
SALESORDERITEMEVENTREGISTRANTREGISTRATION EVENTPRICEID