 -- Constraints for table `cswal_log_attribute_table`
 -- 
 ALTER TABLE `cswal_log_attribute_table`
+  ADD CONSTRAINT `cswal_log_attribute_table_attribute_id_fkey` FOREIGN KEY (`attribute_id`) REFERENCES `cswal_attribute_table` (`attribute_id`),
   ADD CONSTRAINT `cswal_log_attribute_table_log_id_fkey` FOREIGN KEY (`log_id`) REFERENCES `cswal_log_table` (`log_id`);
 
 -- 

  PRIMARY KEY  (`log_attribute_id`),
  KEY `cswal_log_attribute_table_log_id_fkey` (`log_id`),
  KEY `cswal_log_attribute_table_attribute_id_fkey` (`attribute_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------


  `details` text NOT NULL,
  PRIMARY KEY  (`log_id`),
  KEY `cswal_log_table_event_id_fkey` (`event_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- 
-- RELATIONS FOR TABLE `cswal_log_table`:
--   `event_id`
--       `cswal_event_table` -> `event_id`
-- 

-- --------------------------------------------------------

