162 lines
9.4 KiB
SQL
162 lines
9.4 KiB
SQL
CREATE DATABASE IF NOT EXISTS `db_t4b` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
USE `db_t4b`;
|
|
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
|
|
--
|
|
-- Host: 127.0.0.1 Database: db_t4b
|
|
-- ------------------------------------------------------
|
|
-- Server version 5.5.5-10.4.10-MariaDB
|
|
|
|
/*!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 utf8 */;
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
|
|
--
|
|
-- Table structure for table `admin`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `admin`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `admin` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`emailid` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`password` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
|
`updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `emailid_UNIQUE` (`emailid`) USING HASH
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `admin`
|
|
--
|
|
|
|
INSERT INTO `admin` VALUES (1,'testadmin@gmail.com','$2y$12$4SfrO03WmcvRMoRWkKS5teZUsaWXZFGfoyPZVsBi4wdHbcuy8ABwK','2022-01-04 16:45:28','2022-01-04 16:45:28');
|
|
|
|
--
|
|
-- Table structure for table `category`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `category`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `category` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` tinyint(1) NOT NULL DEFAULT 1,
|
|
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
|
`update_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `category`
|
|
--
|
|
|
|
INSERT INTO `category` VALUES (1,'Networking',0,'2022-01-04 18:14:41','2022-01-06 15:53:02'),(2,'Security',0,'2022-01-06 15:24:27','2022-01-06 15:53:05');
|
|
|
|
--
|
|
-- Table structure for table `page`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `page`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `page` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`category_id` int(11) NOT NULL,
|
|
`sub_category_id` int(11) NOT NULL,
|
|
`title` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`content` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`title2` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`content2` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`image1` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`image2` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`image3` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
|
`updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
|
`status` tinyint(1) NOT NULL DEFAULT 1,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `page`
|
|
--
|
|
|
|
INSERT INTO `page` VALUES (16,1,4,'Cloud Computing','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. cu sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies ne, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet n, vu eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aen li, porttitor eu, consequat vitae, eleifend ac, enim.','Cloud Computing','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. cu sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies ne, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet n, vu eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aen li, porttitor eu, consequat vitae, eleifend ac, enim.\r\n\r\nLorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. cu sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies ne, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet n, vu eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aen li, porttitor eu, consequat vitae, eleifend ac, enim.','1641446993668_1.png','1641446993668_2.png','1641446993668_3.png','2022-01-06 10:59:53','2022-01-06 15:57:34',1),(17,1,3,'Data Center Networking','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. cu sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies ne, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet n, vu eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aen li, porttitor eu, consequat vitae, eleifend ac, enim.','What Benefit You Will Get','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. cu sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies ne, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet n, vu eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aen li, porttitor eu, consequat vitae, eleifend ac, enim.','1641448991335_1.png','1641448991335_2.png','1641448991335_3.png','2022-01-06 11:33:11','2022-01-06 16:11:14',0);
|
|
|
|
--
|
|
-- Table structure for table `sub_category`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `sub_category`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `sub_category` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`category_id` int(11) NOT NULL,
|
|
`name` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` tinyint(1) NOT NULL DEFAULT 1,
|
|
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
|
`updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
|
PRIMARY KEY (`id`),
|
|
KEY `sub_category.sub_category_on_category.id_idx` (`category_id`),
|
|
CONSTRAINT `sub_category.sub_category_on_category.id` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
|
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `sub_category`
|
|
--
|
|
|
|
INSERT INTO `sub_category` VALUES (3,1,'Data Center Networking',1,'2022-01-05 10:46:35','2022-01-06 15:55:21'),(4,1,'Wireless',1,'2022-01-05 15:35:42','2022-01-06 15:55:23');
|
|
|
|
--
|
|
-- Table structure for table `subscribers`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `subscribers`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `subscribers` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`email` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`active` tinyint(1) NOT NULL DEFAULT 1,
|
|
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
|
`updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `subscribers`
|
|
--
|
|
|
|
INSERT INTO `subscribers` VALUES (1,'test@email.com',1,'2022-01-06 14:45:18','2022-01-06 14:45:18');
|
|
|
|
--
|
|
-- Dumping events for database 'db_t4b'
|
|
--
|
|
|
|
--
|
|
-- Dumping routines for database 'db_t4b'
|
|
--
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
/*!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 */;
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
|
|
-- Dump completed
|