SALESORDERITEMEVENTREGISTRANTREGISTRATION

Stores static registration data with respect to when the registration was added to the order.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
QUANTITY int Default = 0 The number of guests in the registration at this price.
AMOUNT money Default = 0 The amount paid for this number of guests at this price.
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
SALESORDERITEMEVENTREGISTRATIONID uniqueidentifier SALESORDERITEMEVENTREGISTRATION.ID FK to SALESORDERITEMEVENTREGISTRATION.
EVENTPRICEID uniqueidentifier EVENTPRICE.ID FK to EVENTPRICE.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_SALESORDERITEMEVENTREGISTRANTREGISTRATION_DATEADDED DATEADDED yes
IX_SALESORDERITEMEVENTREGISTRANTREGISTRATION_DATECHANGED DATECHANGED
IX_SALESORDERITEMEVENTREGISTRANTREGISTRATION_SALESORDERITEMEVENTREGISTRATIONID SALESORDERITEMEVENTREGISTRATIONID
PK_SALESORDERITEMEVENTREGISTRANTREGISTRATION ID yes yes

Triggers

Trigger Name Description
TR_SALESORDERITEMEVENTREGISTRANTREGISTRATION_AUDIT_UPDATE
TR_SALESORDERITEMEVENTREGISTRANTREGISTRATION_AUDIT_DELETE