-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 04, 2020 at 11:33 PM -- Server version: 10.3.22-MariaDB-0ubuntu0.19.10.1 -- PHP Version: 7.3.11-0ubuntu0.19.10.3 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: `sarscov19` -- -- -------------------------------------------------------- -- -- Table structure for table `scans` -- CREATE TABLE `scans` ( `id` int(11) NOT NULL, `site` int(11) NOT NULL, `time` datetime NOT NULL DEFAULT current_timestamp(), `content` mediumtext NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `sites` -- CREATE TABLE `sites` ( `id` int(11) NOT NULL, `title` varchar(200) NOT NULL, `link` varchar(500) NOT NULL, `active` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `sites` -- INSERT INTO `sites` (`id`, `title`, `link`, `active`) VALUES (1, 'Robert Koch Institut - Fallzahlen in Deutschland und der Welt', 'https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Fallzahlen.html', 1), (2, 'Worldometers - Coronavirus', 'https://www.worldometers.info/coronavirus/', 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `scans` -- ALTER TABLE `scans` ADD PRIMARY KEY (`id`), ADD KEY `site` (`site`); -- -- Indexes for table `sites` -- ALTER TABLE `sites` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `scans` -- ALTER TABLE `scans` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `sites` -- ALTER TABLE `sites` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- Constraints for dumped tables -- -- -- Constraints for table `scans` -- ALTER TABLE `scans` ADD CONSTRAINT `site` FOREIGN KEY (`site`) REFERENCES `sites` (`id`) ON UPDATE CASCADE; 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 */;