EXPORTDEFINITION
                                        Each row in the EXPORTDEFINITION table corresponds to a user-defined export definition.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | NAME | nvarchar(200) |  | Default = '' |  | 
                                                
                                                    | DESCRIPTION | nvarchar(1000) |  | Default = '' |  | 
                                                
                                                    | EXPORTDEFINITIONXML | xml |  |  | Xml field containing the entire export definition structure, including all output fields and criteria. | 
                                                
                                                    | 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. | 
                                                
                                                    | LOCKFIELDS | bit |  | Default = 0 |  | 
                                                
                                                    | ISSYSTEM | bit |  | Default = 0 | Flag for hiding export definitions meant for system use only. | 
                                                
                                                    | USEFIELDNAMESFORONETOONECOLUMNHEADERS | bit |  | Default = 0 | Flag used to force export to use just the field name for column headers for fields and nodes with a one to one relationship with the root node. Allows for backwards compatibility for marketing export definitions. | 
                                                
                                                    | USESHORTCOLUMNHEADERS | bit |  | Default = 1 | Flag used to indicate that abbreviations should be used when building column header prefixes when possible. | 
                                                
                                                    | OUTPUTCOLUMNMETADATA | xml | yes |  | Captures metadata for each field, such as column order, sort direction, and hierarchy. | 
                                            
                                        
                                        Foreign Keys
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_EXPORTDEFINITION_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_EXPORTDEFINITION_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | IX_EXPORTDEFINITION_RECORDTYPEID | RECORDTYPEID |  |  |  | 
                                                
                                                    | IX_EXPORTDEFINITION_SITEID | SITEID |  |  |  | 
                                                
                                                    | IX_EXPORTDEFINITION_VIEWDATAFORMTEMPLATEID | VIEWDATAFORMTEMPLATEID |  |  |  | 
                                                
                                                    | PK_EXPORTDEFINITION | ID | yes | yes |  | 
                                            
                                        
                                        Triggers
                                        
                                        Referenced by