RESERVATIONRATESCALEAPPLICATION
                                        Stores information related to an application for a rate scale on a reservation.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | TYPECODE | tinyint |  | Default = 0 | Type of item the application applies to. | 
                                                
                                                    | AMOUNT | money |  | Default = 0 | Amount of flat rate in this application. | 
                                                
                                                    | 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. | 
                                                
                                                    | ISADDEDMANUALLY | bit |  | Default = 0 | Indicates whether or not the application was added manually. | 
                                                
                                                    | TYPE | nvarchar(25) (Computed) | yes | CASE [TYPECODE] WHEN 0 THEN N'Program' WHEN 1 THEN N'Fee' WHEN 2 THEN N'Supply/Equipment resource' WHEN 3 THEN N'Staffing resource' END | Provides a translation for the 'TYPECODE' field. | 
                                                
                                                    | ISADDEDAUTOMATICALLY | bit |  | Default = 0 | Indicates whether or not the application was added automatically. | 
                                            
                                        
                                        Foreign Keys
                                        
                                            
                                                
                                                    | Foreign Key | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | RESERVATIONRATESCALEID | uniqueidentifier |  | RESERVATIONRATESCALE.ID | Rate scale the application belongs to. | 
                                                
                                                    | PROGRAMID | uniqueidentifier | yes | PROGRAM.ID | FK to PROGRAM | 
                                                
                                                    | FEEID | uniqueidentifier | yes | FEE.ID | FK to FEE | 
                                                
                                                    | RESOURCEID | uniqueidentifier | yes | RESOURCE.ID | FK to RESOURCE | 
                                                
                                                    | ADDEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | CHANGEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | VOLUNTEERTYPEID | uniqueidentifier | yes | VOLUNTEERTYPE.LOCALID | FK to VOLUNTEERTYPE | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_RESERVATIONRATESCALEAPPLICATION_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_RESERVATIONRATESCALEAPPLICATION_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | IX_RESERVATIONRATESCALEAPPLICATION_RESERVATIONRATESCALEID | RESERVATIONRATESCALEID |  |  |  | 
                                                
                                                    | PK_RESERVATIONRATESCALEAPPLICATION | ID | yes | yes |  | 
                                            
                                        
                                        Triggers