r_issue_user.sql 697 B

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