Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 2.18 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.5.2
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Feb 11, 2016 at 04:01 PM
  7. -- Server version: 10.1.9-MariaDB
  8. -- PHP Version: 5.6.15
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET time_zone = "+00:00";
  12.  
  13. --
  14. -- Database: `iot`
  15. --
  16.  
  17. -- --------------------------------------------------------
  18.  
  19. --
  20. -- Table structure for table `logs`
  21. --
  22.  
  23. CREATE TABLE `logs` (
  24.   `id` int(11) NOT NULL,
  25.   `device` varchar(300) NOT NULL,
  26.   `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  27.   `value` double(10,2) NOT NULL
  28. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  29.  
  30. -- --------------------------------------------------------
  31.  
  32. --
  33. -- Table structure for table `sections`
  34. --
  35.  
  36. CREATE TABLE `sections` (
  37.   `id` int(11) NOT NULL,
  38.   `name` varchar(300) NOT NULL,
  39.   `text` text NOT NULL
  40. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  41.  
  42. -- --------------------------------------------------------
  43.  
  44. --
  45. -- Table structure for table `users`
  46. --
  47.  
  48. CREATE TABLE `users` (
  49.   `id` int(10) UNSIGNED NOT NULL,
  50.   `name` varchar(300) NOT NULL,
  51.   `username` varchar(10) DEFAULT NULL,
  52.   `password` varchar(255) DEFAULT NULL,
  53.   `email` varchar(300) NOT NULL
  54. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  55.  
  56. --
  57. -- Dumping data for table `users`
  58. --
  59.  
  60. INSERT INTO `users` (`id`, `name`, `username`, `password`, `email`) VALUES
  61. (1, 'Santiago', 'admin', '8665dedf24c124090cb3fea4f348d4ae4044464d', 'srestrepo@premexcorp.com');
  62.  
  63. --
  64. -- Indexes for dumped tables
  65. --
  66.  
  67. --
  68. -- Indexes for table `logs`
  69. --
  70. ALTER TABLE `logs`
  71.   ADD PRIMARY KEY (`id`);
  72.  
  73. --
  74. -- Indexes for table `sections`
  75. --
  76. ALTER TABLE `sections`
  77.   ADD PRIMARY KEY (`id`);
  78.  
  79. --
  80. -- Indexes for table `users`
  81. --
  82. ALTER TABLE `users`
  83.   ADD PRIMARY KEY (`id`);
  84.  
  85. --
  86. -- AUTO_INCREMENT for dumped tables
  87. --
  88.  
  89. --
  90. -- AUTO_INCREMENT for table `logs`
  91. --
  92. ALTER TABLE `logs`
  93.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  94. --
  95. -- AUTO_INCREMENT for table `sections`
  96. --
  97. ALTER TABLE `sections`
  98.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  99. --
  100. -- AUTO_INCREMENT for table `users`
  101. --
  102. ALTER TABLE `users`
  103.   MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement