EVENTLODGINGROOM
                                        Contains data about event lodging rooms.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | 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) | yes | CONVERT(bigint, TS) | Numeric representation of the timestamp. | 
                                            
                                        
                                        Foreign Keys
                                        
                                            
                                                
                                                    | 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 | yes | EVENTLODGING.ID | The event lodging location the room is linked to. | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_EVENTLODGINGROOM_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_EVENTLODGINGROOM_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | IX_EVENTLODGINGROOM_EVENTLODGINGID | EVENTLODGINGID |  |  |  | 
                                                
                                                    | PK_EVENTLODGINGROOM | ID | yes | yes |  | 
                                            
                                        
                                        Triggers
                                        
                                        Referenced by