RESOURCEPRICING
                                        Stores pricing information for resources.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | PRICE | money |  | Default = 0 | The price of the resource. | 
                                                
                                                    | RETURNAMOUNT | money |  | Default = 0 | The amount given to the customer upon returning the resource. | 
                                                
                                                    | PRICINGSTRUCTURECODE | tinyint |  | Default = 0 | Indicates the pricing structure for the resource. | 
                                                
                                                    | PRICINGSTRUCTURE | nvarchar(24) (Computed) | yes | CASE [PRICINGSTRUCTURECODE] WHEN 0 THEN N'No charge' WHEN 1 THEN N'Flat rate per resource' WHEN 2 THEN N'Hourly rate per resource' END | Provides a translation for the 'PRICINGSTRUCTURECODE' field. | 
                                                
                                                    | 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 | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier |  | RESOURCE.ID | Primary Key. | 
                                                
                                                    | ADDEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | CHANGEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_RESOURCEPRICING_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_RESOURCEPRICING_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | PK_RESOURCEPRICING | ID | yes | yes |  | 
                                            
                                        
                                        Triggers