r_message_user.sql 293 B

123456
  1. --
  2. -- Constraints for table `r_message_user`
  3. --
  4. ALTER TABLE `r_message_user`
  5. ADD CONSTRAINT `r_message_user_ibfk_1` FOREIGN KEY (`u_id`) REFERENCES `users` (`id`),
  6. ADD CONSTRAINT `r_message_user_ibfk_2` FOREIGN KEY (`m_id`) REFERENCES `messages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;