
--
-- Constraints for dumped tables
--

--
-- Constraints for table `active_days`
--
ALTER TABLE `active_days`
  ADD CONSTRAINT `period_id_in_active_days` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `issues`
--
ALTER TABLE `issues`
  ADD CONSTRAINT `user_id_in_issues` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE;

--
-- Constraints for table `license_checks`
--
ALTER TABLE `license_checks`
  ADD CONSTRAINT `user_id_in_license_checks` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `periods`
--
ALTER TABLE `periods`
  ADD CONSTRAINT `user_id_in_periods` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `stats_events`
--
ALTER TABLE `stats_events`
  ADD CONSTRAINT `stats_uid_in_stats_events` FOREIGN KEY (`stats_uid`) REFERENCES `stats_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
