Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 4.9.0.1
- -- https://www.phpmyadmin.net/
- --
- -- Host: 127.0.0.1
- -- Generation Time: Sep 28, 2019 at 04:55 AM
- -- Server version: 10.3.16-MariaDB
- -- PHP Version: 7.3.7
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET AUTOCOMMIT = 0;
- START TRANSACTION;
- SET time_zone = "+00:00";
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- /*!40101 SET NAMES utf8mb4 */;
- --
- -- Database: `ebook1`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `authors`
- --
- CREATE TABLE `authors` (
- `author_id` int(11) NOT NULL,
- `author_name` varchar(100) DEFAULT NULL,
- `address` varchar(500) DEFAULT NULL,
- `email` varchar(500) DEFAULT NULL,
- `contacts` varchar(500) DEFAULT NULL,
- `fb` varchar(500) DEFAULT NULL,
- `image` varchar(1000) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `authors`
- --
- INSERT INTO `authors` (`author_id`, `author_name`, `address`, `email`, `contacts`, `fb`, `image`) VALUES
- (1, 'gabriel', 'aracataca, columbia', 'gabriel@unknown.com', '0123456', '/gabGarMar', NULL);
- -- --------------------------------------------------------
- --
- -- Table structure for table `categories`
- --
- CREATE TABLE `categories` (
- `cat_id` int(11) NOT NULL,
- `cat_name` varchar(1000) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `categories`
- --
- INSERT INTO `categories` (`cat_id`, `cat_name`) VALUES
- (1, 'religion');
- -- --------------------------------------------------------
- --
- -- Table structure for table `items`
- --
- CREATE TABLE `items` (
- `item_id` int(11) NOT NULL,
- `cat_id` varchar(100) DEFAULT NULL,
- `description` varchar(500) DEFAULT NULL,
- `rating` varchar(500) DEFAULT NULL,
- `release_yr` varchar(500) DEFAULT NULL,
- `image` varchar(1000) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Table structure for table `items_authors`
- --
- CREATE TABLE `items_authors` (
- `item_id` int(11) NOT NULL,
- `cat_id` int(11) DEFAULT NULL,
- `description` varchar(1000) DEFAULT NULL,
- `rating` double DEFAULT NULL,
- `release_yr` varchar(500) DEFAULT NULL,
- `image` varchar(1000) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Table structure for table `item_publishers`
- --
- CREATE TABLE `item_publishers` (
- `slno` int(11) DEFAULT NULL,
- `item_id` int(11) DEFAULT NULL,
- `pub_id` int(11) DEFAULT NULL,
- `item_sl` int(11) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Table structure for table `publisher`
- --
- CREATE TABLE `publisher` (
- `pub_id` int(11) NOT NULL,
- `pub_name` varchar(100) DEFAULT NULL,
- `address` varchar(500) DEFAULT NULL,
- `email` varchar(500) DEFAULT NULL,
- `contacts` varchar(500) DEFAULT NULL,
- `fb` varchar(500) DEFAULT NULL,
- `image` varchar(1000) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- --
- -- Indexes for dumped tables
- --
- --
- -- Indexes for table `authors`
- --
- ALTER TABLE `authors`
- ADD PRIMARY KEY (`author_id`);
- --
- -- Indexes for table `categories`
- --
- ALTER TABLE `categories`
- ADD PRIMARY KEY (`cat_id`);
- --
- -- Indexes for table `items`
- --
- ALTER TABLE `items`
- ADD PRIMARY KEY (`item_id`);
- --
- -- Indexes for table `items_authors`
- --
- ALTER TABLE `items_authors`
- ADD PRIMARY KEY (`item_id`);
- --
- -- Indexes for table `publisher`
- --
- ALTER TABLE `publisher`
- ADD PRIMARY KEY (`pub_id`);
- --
- -- AUTO_INCREMENT for dumped tables
- --
- --
- -- AUTO_INCREMENT for table `authors`
- --
- ALTER TABLE `authors`
- MODIFY `author_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
- --
- -- AUTO_INCREMENT for table `categories`
- --
- ALTER TABLE `categories`
- MODIFY `cat_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
- --
- -- AUTO_INCREMENT for table `items`
- --
- ALTER TABLE `items`
- MODIFY `item_id` int(11) NOT NULL AUTO_INCREMENT;
- --
- -- AUTO_INCREMENT for table `items_authors`
- --
- ALTER TABLE `items_authors`
- MODIFY `item_id` int(11) NOT NULL AUTO_INCREMENT;
- --
- -- AUTO_INCREMENT for table `publisher`
- --
- ALTER TABLE `publisher`
- MODIFY `pub_id` int(11) NOT NULL AUTO_INCREMENT;
- COMMIT;
- /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
- /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
- /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement