RECURRENCE
                                        Holds the data needed to define when a recurring action will happen.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | RECURRENCETYPE | smallint |  | Default = ((0)) | Enumeration of recurrence types. | 
                                                
                                                    | INTERVAL | smallint |  | Default = ((0)) | How often the event recurs. (Every 3rd day, every 5th week, etc.) | 
                                                
                                                    | DAYOFWEEK | tinyint |  | Default = 0 | Bitwise selection of weekday, Sun=0b1, Sat=0b1000000. | 
                                                
                                                    | DAY | tinyint |  | Default = 0 | The day of the month on which the event occurs. 1-31. | 
                                                
                                                    | WEEK | tinyint |  | Default = 0 | The week of the month on which the event occurs. 1-5. 1=First, 4=Fourth, 5=Last. | 
                                                
                                                    | MONTH | tinyint |  | Default = 0 | Number of month. Jan=1, Dec = 12 | 
                                                
                                                    | STARTDATE | date |  |  |  | 
                                                
                                                    | ENDDATE | date | yes |  |  | 
                                                
                                                    | 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 | 
                                            
                                            
                                                
                                                    | ADDEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | CHANGEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_RECURRENCE_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_RECURRENCE_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | PK_RECURRENCE | ID | yes | yes |  | 
                                            
                                        
                                        Triggers
                                        
                                        Referenced by