Reasons for various states/actions within sponsorship.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | REASONTYPECODE | tinyint |  | Default = 0 | The state/action this reason applies to. | 
                                                
                                                    | REASON | nvarchar(100) |  | Default = '' |  | 
                                                
                                                    | TRANSFERSPONSORSFORINELIGIBLECHILD | bit |  | Default = 0 | Whether or not to transfer sponsors when making a child ineligible for this reason. | 
                                                
                                                    | 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. | 
                                                
                                                    | REASONTYPE | nvarchar(32) (Computed) | yes | CASE [REASONTYPECODE] WHEN 0 THEN N'Child - Mark pending eligibility' WHEN 1 THEN N'Child - Mark ineligible' WHEN 2 THEN N'Project - Mark closed' WHEN 3 THEN N'Location - Mark inactive' WHEN 4 THEN N'Location - Mark closed' WHEN 5 THEN N'Sponsorship - Transfer' WHEN 6 THEN N'Sponsorship - Cancel' WHEN 7 THEN N'Sponsorship - Terminate' WHEN 8 THEN N'Sponsorship - Reactivate' WHEN 9 THEN N'Sponsorship - Reassign' WHEN 10 THEN N'Project - Mark pending' WHEN 11 THEN N'Sponsorship - Expiration' END | Provides a translation for the 'REASONTYPECODE' field. | 
                                            
                                        
                                        Foreign Keys
                                        
                                            
                                                
                                                    | Foreign Key | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | ADDEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | CHANGEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_SPONSORSHIPREASON_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_SPONSORSHIPREASON_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | PK_SPONSORSHIPREASON | ID | yes | yes |  | 
                                                
                                                    | UIX_SPONSORSHIPREASON_REASONTYPECODE_REASON | REASONTYPECODE, REASON | yes |  |  | 
                                            
                                        
                                        Triggers
                                        
                                        Referenced by