-- MySQL dump 10.13 Distrib 5.7.24, for Win64 (x86_64) -- -- Host: localhost Database: cmmp -- ------------------------------------------------------ -- Server version 5.7.24 /*!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 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!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 `contribution` -- DROP TABLE IF EXISTS `contribution`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contribution` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(150) DEFAULT NULL, `issue_id` smallint(5) unsigned NOT NULL, `pagerange` varchar(20) DEFAULT NULL, `genre_id` tinyint(3) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contribution` -- LOCK TABLES `contribution` WRITE; /*!40000 ALTER TABLE `contribution` DISABLE KEYS */; INSERT INTO `contribution` VALUES (1,'Production of the New Magazines',2,'1',1),(2,'The Lord\'s Plan',3,'n.p',3),(3,'Portrait',1,'n.p',2),(4,'Clair De Lune Intellectual',4,'18-19',2),(6,'The Negro Problem, and How to Solve it. No. I. Part I',6,'22-25',4); /*!40000 ALTER TABLE `contribution` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `genre` -- DROP TABLE IF EXISTS `genre`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `genre` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `genre` -- LOCK TABLES `genre` WRITE; /*!40000 ALTER TABLE `genre` DISABLE KEYS */; INSERT INTO `genre` VALUES (1,'Editorial'),(2,'Poetry'),(3,'Fiction'),(4,'Essay'),(5,'Review'); /*!40000 ALTER TABLE `genre` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `issue` -- DROP TABLE IF EXISTS `issue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `issue` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `magazine_id` tinyint(3) unsigned NOT NULL, `volume` tinyint(3) unsigned DEFAULT NULL, `number` tinyint(3) unsigned DEFAULT NULL, `pubdate` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `issue` -- LOCK TABLES `issue` WRITE; /*!40000 ALTER TABLE `issue` DISABLE KEYS */; INSERT INTO `issue` VALUES (1,1,NULL,1,'1942-03-00'),(2,2,1,8,'1942-00-00'),(3,1,NULL,6,'1942-08-00'),(4,2,2,3,'1943-02-00'),(5,2,2,12,'1943-02-00'),(6,3,1,1,'1903-02-00'); /*!40000 ALTER TABLE `issue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `magazine` -- DROP TABLE IF EXISTS `magazine`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `magazine` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(125) DEFAULT NULL, `pubplace` varchar(30) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `magazine` -- LOCK TABLES `magazine` WRITE; /*!40000 ALTER TABLE `magazine` DISABLE KEYS */; INSERT INTO `magazine` VALUES (1,'Preview','Montreal'),(2,'First Statement','Montreal'),(3,'Neith','Saint John'); /*!40000 ALTER TABLE `magazine` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `person` -- DROP TABLE IF EXISTS `person`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `last` varchar(50) DEFAULT NULL, `given` varchar(50) DEFAULT NULL, `birthdate` date DEFAULT NULL, `deathdate` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `person` -- LOCK TABLES `person` WRITE; /*!40000 ALTER TABLE `person` DISABLE KEYS */; INSERT INTO `person` VALUES (1,'Aikman','Audrey',NULL,NULL),(2,'Anderson','Patrick','1915-08-04','1979-03-17'),(3,'Anonymous',NULL,NULL,NULL),(4,'Birney','Earle','1904-05-13','1995-09-03'),(5,'Dudek','Louis','1918-02-06','2001-03-23'),(6,'Hakaar','Jack',NULL,NULL),(7,'Klein','A.M.','1909-02-14','1972-02-20'),(8,'Layton','Irving','1912-03-12','2006-01-04'),(9,'Page','P.K.','1916-11-23','2010-01-14'),(10,'Scott','F.R.','1899-08-01','1985-01-30'),(11,'Smith','A.J.M.','1902-11-08','1980-11-21'),(12,'Sutherland','John','1919-02-21','1956-09-01'),(13,'Nelligan','Émile','1879-12-24','1941-11-18'),(14,'Walker','A.B.','1851-08-23','1909-04-21'); /*!40000 ALTER TABLE `person` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role` -- DROP TABLE IF EXISTS `role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `role` ( `contribution_id` smallint(5) unsigned NOT NULL, `person_id` smallint(5) unsigned NOT NULL, `role_lookup_id` smallint(5) unsigned NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role` -- LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; INSERT INTO `role` VALUES (1,12,1),(2,9,1),(3,2,1),(4,5,3),(4,13,1),(5,8,1),(6,14,1); /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role_lookup` -- DROP TABLE IF EXISTS `role_lookup`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `role_lookup` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `role` varchar(25) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role_lookup` -- LOCK TABLES `role_lookup` WRITE; /*!40000 ALTER TABLE `role_lookup` DISABLE KEYS */; INSERT INTO `role_lookup` VALUES (1,'Author'),(2,'Editor'),(3,'Translator'); /*!40000 ALTER TABLE `role_lookup` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!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 on 2019-03-15 15:20:21 -- MySQL dump 10.13 Distrib 5.7.24, for Win64 (x86_64) -- -- Host: localhost Database: cmmp -- ------------------------------------------------------ -- Server version 5.7.24 /*!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 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!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 `contribution` -- DROP TABLE IF EXISTS `contribution`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contribution` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(150) DEFAULT NULL, `issue_id` smallint(5) unsigned NOT NULL, `pagerange` varchar(20) DEFAULT NULL, `genre_id` tinyint(3) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contribution` -- LOCK TABLES `contribution` WRITE; /*!40000 ALTER TABLE `contribution` DISABLE KEYS */; INSERT INTO `contribution` VALUES (1,'Production of the New Magazines',2,'1',1),(2,'The Lord\'s Plan',3,'n.p',3),(3,'Portrait',1,'n.p',2),(4,'Clair De Lune Intellectual',4,'18-19',2),(6,'The Negro Problem, and How to Solve it. No. I. Part I',6,'22-25',4); /*!40000 ALTER TABLE `contribution` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `genre` -- DROP TABLE IF EXISTS `genre`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `genre` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `genre` -- LOCK TABLES `genre` WRITE; /*!40000 ALTER TABLE `genre` DISABLE KEYS */; INSERT INTO `genre` VALUES (1,'Editorial'),(2,'Poetry'),(3,'Fiction'),(4,'Essay'),(5,'Review'); /*!40000 ALTER TABLE `genre` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `issue` -- DROP TABLE IF EXISTS `issue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `issue` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `magazine_id` tinyint(3) unsigned NOT NULL, `volume` tinyint(3) unsigned DEFAULT NULL, `number` tinyint(3) unsigned DEFAULT NULL, `pubdate` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `issue` -- LOCK TABLES `issue` WRITE; /*!40000 ALTER TABLE `issue` DISABLE KEYS */; INSERT INTO `issue` VALUES (1,1,NULL,1,'1942-03-00'),(2,2,1,8,'1942-00-00'),(3,1,NULL,6,'1942-08-00'),(4,2,2,3,'1943-02-00'),(5,2,2,12,'1943-02-00'),(6,3,1,1,'1903-02-00'); /*!40000 ALTER TABLE `issue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `magazine` -- DROP TABLE IF EXISTS `magazine`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `magazine` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(125) DEFAULT NULL, `pubplace` varchar(30) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `magazine` -- LOCK TABLES `magazine` WRITE; /*!40000 ALTER TABLE `magazine` DISABLE KEYS */; INSERT INTO `magazine` VALUES (1,'Preview','Montreal'),(2,'First Statement','Montreal'),(3,'Neith','Saint John'); /*!40000 ALTER TABLE `magazine` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `person` -- DROP TABLE IF EXISTS `person`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `last` varchar(50) DEFAULT NULL, `given` varchar(50) DEFAULT NULL, `birthdate` date DEFAULT NULL, `deathdate` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `person` -- LOCK TABLES `person` WRITE; /*!40000 ALTER TABLE `person` DISABLE KEYS */; INSERT INTO `person` VALUES (1,'Aikman','Audrey',NULL,NULL),(2,'Anderson','Patrick','1915-08-04','1979-03-17'),(3,'Anonymous',NULL,NULL,NULL),(4,'Birney','Earle','1904-05-13','1995-09-03'),(5,'Dudek','Louis','1918-02-06','2001-03-23'),(6,'Hakaar','Jack',NULL,NULL),(7,'Klein','A.M.','1909-02-14','1972-02-20'),(8,'Layton','Irving','1912-03-12','2006-01-04'),(9,'Page','P.K.','1916-11-23','2010-01-14'),(10,'Scott','F.R.','1899-08-01','1985-01-30'),(11,'Smith','A.J.M.','1902-11-08','1980-11-21'),(12,'Sutherland','John','1919-02-21','1956-09-01'),(13,'Nelligan','Émile','1879-12-24','1941-11-18'),(14,'Walker','A.B.','1851-08-23','1909-04-21'); /*!40000 ALTER TABLE `person` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role` -- DROP TABLE IF EXISTS `role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `role` ( `contribution_id` smallint(5) unsigned NOT NULL, `person_id` smallint(5) unsigned NOT NULL, `role_lookup_id` smallint(5) unsigned NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role` -- LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; INSERT INTO `role` VALUES (1,12,1),(2,9,1),(3,2,1),(4,5,3),(4,13,1),(5,8,1),(6,14,1); /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role_lookup` -- DROP TABLE IF EXISTS `role_lookup`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `role_lookup` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `role` varchar(25) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role_lookup` -- LOCK TABLES `role_lookup` WRITE; /*!40000 ALTER TABLE `role_lookup` DISABLE KEYS */; INSERT INTO `role_lookup` VALUES (1,'Author'),(2,'Editor'),(3,'Translator'); /*!40000 ALTER TABLE `role_lookup` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!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 on 2019-03-15 15:20:21