Advertisement
UME14

DB_E-Book_Organizer

Sep 27th, 2019
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 4.65 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.9.0.1
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: 127.0.0.1
  6. -- Generation Time: Sep 28, 2019 at 04:55 AM
  7. -- Server version: 10.3.16-MariaDB
  8. -- PHP Version: 7.3.7
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET AUTOCOMMIT = 0;
  12. START TRANSACTION;
  13. SET time_zone = "+00:00";
  14.  
  15.  
  16. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  17. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  18. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  19. /*!40101 SET NAMES utf8mb4 */;
  20.  
  21. --
  22. -- Database: `ebook1`
  23. --
  24.  
  25. -- --------------------------------------------------------
  26.  
  27. --
  28. -- Table structure for table `authors`
  29. --
  30.  
  31. CREATE TABLE `authors` (
  32.   `author_id` int(11) NOT NULL,
  33.   `author_name` varchar(100) DEFAULT NULL,
  34.   `address` varchar(500) DEFAULT NULL,
  35.   `email` varchar(500) DEFAULT NULL,
  36.   `contacts` varchar(500) DEFAULT NULL,
  37.   `fb` varchar(500) DEFAULT NULL,
  38.   `image` varchar(1000) DEFAULT NULL
  39. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  40.  
  41. --
  42. -- Dumping data for table `authors`
  43. --
  44.  
  45. INSERT INTO `authors` (`author_id`, `author_name`, `address`, `email`, `contacts`, `fb`, `image`) VALUES
  46. (1, 'gabriel', 'aracataca, columbia', 'gabriel@unknown.com', '0123456', '/gabGarMar', NULL);
  47.  
  48. -- --------------------------------------------------------
  49.  
  50. --
  51. -- Table structure for table `categories`
  52. --
  53.  
  54. CREATE TABLE `categories` (
  55.   `cat_id` int(11) NOT NULL,
  56.   `cat_name` varchar(1000) NOT NULL
  57. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  58.  
  59. --
  60. -- Dumping data for table `categories`
  61. --
  62.  
  63. INSERT INTO `categories` (`cat_id`, `cat_name`) VALUES
  64. (1, 'religion');
  65.  
  66. -- --------------------------------------------------------
  67.  
  68. --
  69. -- Table structure for table `items`
  70. --
  71.  
  72. CREATE TABLE `items` (
  73.   `item_id` int(11) NOT NULL,
  74.   `cat_id` varchar(100) DEFAULT NULL,
  75.   `description` varchar(500) DEFAULT NULL,
  76.   `rating` varchar(500) DEFAULT NULL,
  77.   `release_yr` varchar(500) DEFAULT NULL,
  78.   `image` varchar(1000) DEFAULT NULL
  79. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  80.  
  81. -- --------------------------------------------------------
  82.  
  83. --
  84. -- Table structure for table `items_authors`
  85. --
  86.  
  87. CREATE TABLE `items_authors` (
  88.   `item_id` int(11) NOT NULL,
  89.   `cat_id` int(11) DEFAULT NULL,
  90.   `description` varchar(1000) DEFAULT NULL,
  91.   `rating` double DEFAULT NULL,
  92.   `release_yr` varchar(500) DEFAULT NULL,
  93.   `image` varchar(1000) DEFAULT NULL
  94. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  95.  
  96. -- --------------------------------------------------------
  97.  
  98. --
  99. -- Table structure for table `item_publishers`
  100. --
  101.  
  102. CREATE TABLE `item_publishers` (
  103.   `slno` int(11) DEFAULT NULL,
  104.   `item_id` int(11) DEFAULT NULL,
  105.   `pub_id` int(11) DEFAULT NULL,
  106.   `item_sl` int(11) DEFAULT NULL
  107. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  108.  
  109. -- --------------------------------------------------------
  110.  
  111. --
  112. -- Table structure for table `publisher`
  113. --
  114.  
  115. CREATE TABLE `publisher` (
  116.   `pub_id` int(11) NOT NULL,
  117.   `pub_name` varchar(100) DEFAULT NULL,
  118.   `address` varchar(500) DEFAULT NULL,
  119.   `email` varchar(500) DEFAULT NULL,
  120.   `contacts` varchar(500) DEFAULT NULL,
  121.   `fb` varchar(500) DEFAULT NULL,
  122.   `image` varchar(1000) DEFAULT NULL
  123. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  124.  
  125. --
  126. -- Indexes for dumped tables
  127. --
  128.  
  129. --
  130. -- Indexes for table `authors`
  131. --
  132. ALTER TABLE `authors`
  133.   ADD PRIMARY KEY (`author_id`);
  134.  
  135. --
  136. -- Indexes for table `categories`
  137. --
  138. ALTER TABLE `categories`
  139.   ADD PRIMARY KEY (`cat_id`);
  140.  
  141. --
  142. -- Indexes for table `items`
  143. --
  144. ALTER TABLE `items`
  145.   ADD PRIMARY KEY (`item_id`);
  146.  
  147. --
  148. -- Indexes for table `items_authors`
  149. --
  150. ALTER TABLE `items_authors`
  151.   ADD PRIMARY KEY (`item_id`);
  152.  
  153. --
  154. -- Indexes for table `publisher`
  155. --
  156. ALTER TABLE `publisher`
  157.   ADD PRIMARY KEY (`pub_id`);
  158.  
  159. --
  160. -- AUTO_INCREMENT for dumped tables
  161. --
  162.  
  163. --
  164. -- AUTO_INCREMENT for table `authors`
  165. --
  166. ALTER TABLE `authors`
  167.   MODIFY `author_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  168.  
  169. --
  170. -- AUTO_INCREMENT for table `categories`
  171. --
  172. ALTER TABLE `categories`
  173.   MODIFY `cat_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  174.  
  175. --
  176. -- AUTO_INCREMENT for table `items`
  177. --
  178. ALTER TABLE `items`
  179.   MODIFY `item_id` int(11) NOT NULL AUTO_INCREMENT;
  180.  
  181. --
  182. -- AUTO_INCREMENT for table `items_authors`
  183. --
  184. ALTER TABLE `items_authors`
  185.   MODIFY `item_id` int(11) NOT NULL AUTO_INCREMENT;
  186.  
  187. --
  188. -- AUTO_INCREMENT for table `publisher`
  189. --
  190. ALTER TABLE `publisher`
  191.   MODIFY `pub_id` int(11) NOT NULL AUTO_INCREMENT;
  192. COMMIT;
  193.  
  194. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  195. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  196. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement