Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1.  
  2. --
  3. -- Table structure for table `products`
  4. --
  5.  
  6. CREATE TABLE `products` (
  7. `id` int(11) NOT NULL,
  8. `name` text COLLATE utf8mb4_unicode_ci NOT NULL
  9. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  10.  
  11. -- --------------------------------------------------------
  12.  
  13. --
  14. -- Table structure for table `roles`
  15. --
  16. (...cut...)
  17.  
  18. -- --------------------------------------------------------
  19. (...cut...)
  20. -- --------------------------------------------------------
  21.  
  22. --
  23. -- Table structure for table `tickets`
  24. --
  25.  
  26. CREATE TABLE `tickets` (
  27. `id` int(11) NOT NULL,
  28. `type` char(3) COLLATE utf8mb4_unicode_ci NOT NULL,
  29. `product_id` int(11) NOT NULL,
  30. `name` text COLLATE utf8mb4_unicode_ci NOT NULL
  31. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  32.  
  33. -- --------------------------------------------------------
  34. (...cut...)
  35. -- --------------------------------------------------------
  36.  
  37. --
  38. -- Table structure for table `user_products`
  39. --
  40.  
  41. CREATE TABLE `user_products` (
  42. `id` int(11) NOT NULL,
  43. `user_id` int(11) NOT NULL,
  44. `product_id` int(11) NOT NULL
  45. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  46.  
  47. --
  48. -- Indexes for dumped tables
  49. --
  50.  
  51. --
  52. -- Indexes for table `products`
  53. --
  54. ALTER TABLE `products`
  55. ADD PRIMARY KEY (`id`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement