r_message_user.sql 614 B

12345678910111213141516171819202122232425262728
  1. -- --------------------------------------------------------
  2. --
  3. -- Table structure for table `r_message_user`
  4. --
  5. -- Creation: Aug 21, 2015 at 06:53 PM
  6. --
  7. DROP TABLE IF EXISTS `r_message_user`;
  8. CREATE TABLE IF NOT EXISTS `r_message_user` (
  9. `m_id` int(10) NOT NULL,
  10. `u_id` int(11) NOT NULL
  11. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
  12. --
  13. -- RELATIONS FOR TABLE `r_message_user`:
  14. -- `u_id`
  15. -- `users` -> `id`
  16. -- `m_id`
  17. -- `messages` -> `id`
  18. --
  19. --
  20. -- Indexes for table `r_message_user`
  21. --
  22. ALTER TABLE `r_message_user`
  23. ADD UNIQUE KEY `m_id` (`m_id`,`u_id`),
  24. ADD KEY `u_id` (`u_id`);