REGISTRANTLODGING

Lodging information for an event registrant.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
PHONENUMBER nvarchar(50) Default = '' The phone number to contact the registrant.
CONFIRMATIONNUMBER nvarchar(10) Default = '' The confirmation number for the lodging of the registrant.
CHECKINDATE datetime yes The date the registrant will check in to the lodging.
CHECKINTIME UDT_HOURMINUTE Default = '' The time the registrant will check in to the lodging.
CHECKOUTDATE datetime yes The date the registrant will check out of the lodging.
CHECKOUTTIME UDT_HOURMINUTE Default = '' The time the registrant will check out of the lodging.
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.
PHONENUMBERUNFORMATTED nvarchar(100) (Computed) yes dbo.UFN_PHONE_REMOVEFORMATTING(PHONENUMBER) The non-formatted version of the contact phone number.

Foreign Keys

Foreign Key Field Type Null Notes Description
REGISTRANTCONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
MAINEVENTID uniqueidentifier yes EVENT.ID FK to EVENT
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
EVENTLODGINGID uniqueidentifier yes EVENTLODGING.ID FK to EVENTLODGING
EVENTLODGINGROOMINSTANCEID uniqueidentifier yes EVENTLODGINGROOMINSTANCE.ID FK to EVENTLODGINGROOMINSTANCE
EVENTID uniqueidentifier yes EVENT.ID FK to EVENT

Indexes

Index Name Fields Unique Primary Clustered
IX_REGISTRANTLODGING_DATEADDED DATEADDED yes
IX_REGISTRANTLODGING_DATECHANGED DATECHANGED
PK_REGISTRANTLODGING ID yes yes
UIX_REGISTRANTLODGING_REGISTRANTCONSTITUENTID_EVENTID REGISTRANTCONSTITUENTID, EVENTID yes

Triggers

Trigger Name Description
TR_REGISTRANTLODGING_AUDIT_UPDATE
TR_REGISTRANTLODGING_AUDIT_DELETE