Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 SLEEPS int   Default = 1 Contains the number of people the room sleeps.
 ALLOCATED int   Default = 1 Contains the number of rooms allocated of this room type.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 ROOMTYPECODEID uniqueidentifier   EVENTLODGINGROOMTYPECODE.ID FK to EVENTLODGINGROOMTYPECODE
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 EVENTLODGINGID uniqueidentifier EVENTLODGING.ID The event lodging location the room is linked to.

Index Name Field(s) Unique Primary Clustered
 IX_EVENTLODGINGROOM_DATEADDED DATEADDED    
 IX_EVENTLODGINGROOM_DATECHANGED DATECHANGED      
 IX_EVENTLODGINGROOM_EVENTLODGINGID EVENTLODGINGID      
 PK_EVENTLODGINGROOM ID  

Trigger Name Description
 TR_EVENTLODGINGROOM_AUDIT_UPDATE
 TR_EVENTLODGINGROOM_AUDIT_DELETE

Referenced by Field
 EVENTLODGINGROOMINSTANCE EVENTLODGINGROOMID
 EVENTREGISTRANTITINERARY ROOMTYPEID

Entity-Relationship diagram of this table