Advertisement
Guest User

Untitled

a guest
Apr 14th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 2.25 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.5.3.1
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: 31.24.128.142:3306
  6. -- Generation Time: 15. Apr, 2018 04:02 AM
  7. -- Server-versjon: 5.7.19
  8. -- PHP Version: 5.6.31
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET time_zone = "+00:00";
  12.  
  13.  
  14. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  15. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  16. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  17. /*!40101 SET NAMES utf8mb4 */;
  18.  
  19. --
  20. -- Database: `74354_tools`
  21. --
  22.  
  23. -- --------------------------------------------------------
  24.  
  25. --
  26. -- Tabellstruktur for tabell `tools_reservations`
  27. --
  28.  
  29. CREATE TABLE `tools_reservations` (
  30.   `id` int(11) NOT NULL,
  31.   `user_id` int(11) NOT NULL,
  32.   `tool_id` int(11) NOT NULL,
  33.   `reservedFrom` datetime NOT NULL,
  34.   `reservedTo` datetime NOT NULL,
  35.   `reservedDate` datetime NOT NULL,
  36.   `comment` varchar(255) NOT NULL
  37. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  38.  
  39. --
  40. -- Dataark for tabell `tools_reservations`
  41. --
  42.  
  43. INSERT INTO `tools_reservations` (`id`, `user_id`, `tool_id`, `reservedFrom`, `reservedTo`, `reservedDate`, `comment`) VALUES
  44. (1, 2, 1, '2018-04-10 00:00:00', '2018-04-10 00:00:00', '2018-04-09 23:33:29', 'test'),
  45. (2, 2, 2, '2018-04-16 00:00:00', '2018-04-20 00:00:00', '2018-04-09 23:33:52', 'test');
  46.  
  47. --
  48. -- Indexes for dumped tables
  49. --
  50.  
  51. --
  52. -- Indexes for table `tools_reservations`
  53. --
  54. ALTER TABLE `tools_reservations`
  55.   ADD PRIMARY KEY (`id`),
  56.   ADD KEY `tool_id` (`tool_id`),
  57.   ADD KEY `user_id` (`user_id`);
  58.  
  59. --
  60. -- AUTO_INCREMENT for dumped tables
  61. --
  62.  
  63. --
  64. -- AUTO_INCREMENT for table `tools_reservations`
  65. --
  66. ALTER TABLE `tools_reservations`
  67.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  68. --
  69. -- Begrensninger for dumpede tabeller
  70. --
  71.  
  72. --
  73. -- Begrensninger for tabell `tools_reservations`
  74. --
  75. ALTER TABLE `tools_reservations`
  76.   ADD CONSTRAINT `tools_reservations_ibfk_1` FOREIGN KEY (`tool_id`) REFERENCES `tools` (`id`),
  77.   ADD CONSTRAINT `tools_reservations_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
  78.  
  79. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  80. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  81. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement