BATCHAMPROIMPORTPURCHASEDETAIL
                                        Stores rows relating to purchase details which are imported from AuctionMaestro Pro.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | PURCHASEDETAIL_ITEMID | uniqueidentifier | yes |  |  | 
                                                
                                                    | PURCHASEDETAIL_AMOUNT | money |  | Default = 0 |  | 
                                                
                                                    | PURCHASEDETAIL_TRANSACTIONTYPECODE | tinyint |  | Default = 1 | 1=Donation, 2=Auction purchase, 3=Event registration, 4=Fund-an-Item donation | 
                                                
                                                    | 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. | 
                                                
                                                    | PURCHASE_REGISTRANTID | uniqueidentifier | yes |  |  | 
                                                
                                                    | PURCHASEDETAIL_TRANSACTIONTYPE | nvarchar(21) (Computed) | yes | CASE [PURCHASEDETAIL_TRANSACTIONTYPECODE] WHEN 1 THEN N'Donation' WHEN 2 THEN N'Auction purchase' WHEN 3 THEN N'Event registration' WHEN 4 THEN N'Fund-an-Item donation' END | Provides a translation for the 'PURCHASEDETAIL_TRANSACTIONTYPECODE' field. | 
                                            
                                        
                                        Foreign Keys
                                        
                                            
                                                
                                                    | Foreign Key | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | PURCHASEDETAIL_PURCHASEID | uniqueidentifier |  | BATCHAMPROIMPORTPURCHASE.ID | FK to BATCHAMPROIMPORTPURCHASE | 
                                                
                                                    | ADDEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | CHANGEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | PURCHASEDETAIL_DESIGNATIONID | uniqueidentifier | yes | DESIGNATION.ID | FK to DESIGNATION | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_BATCHAMPROIMPORTPURCHASEDETAIL_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_BATCHAMPROIMPORTPURCHASEDETAIL_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | PK_BATCHAMPROIMPORTPURCHASEDETAIL | ID | yes | yes |  | 
                                            
                                        
                                        Triggers