regluit/test/campaign_starter.sql

3163 lines
242 KiB
MySQL
Raw Normal View History

-- MySQL dump 10.13 Distrib 5.7.11, for osx10.9 (x86_64)
--
-- Host: 127.0.0.1 Database: unglueit
-- ------------------------------------------------------
-- Server version 5.7.11
/*!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 `api_allowedrepo`
--
DROP TABLE IF EXISTS `api_allowedrepo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `api_allowedrepo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`org` varchar(39) NOT NULL,
`repo_name` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `api_allowedrepo`
--
LOCK TABLES `api_allowedrepo` WRITE;
/*!40000 ALTER TABLE `api_allowedrepo` DISABLE KEYS */;
/*!40000 ALTER TABLE `api_allowedrepo` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_group`
--
DROP TABLE IF EXISTS `auth_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(80) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group`
--
LOCK TABLES `auth_group` WRITE;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
INSERT INTO `auth_group` VALUES (1,'rylibrary');
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_group_permissions`
--
DROP TABLE IF EXISTS `auth_group_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`,`permission_id`),
KEY `auth_group_permissions_425ae3c4` (`group_id`),
KEY `auth_group_permissions_1e014c8f` (`permission_id`),
CONSTRAINT `group_id_refs_id_3cea63fe` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `permission_id_refs_id_5886d21f` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group_permissions`
--
LOCK TABLES `auth_group_permissions` WRITE;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_message`
--
DROP TABLE IF EXISTS `auth_message`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_message` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`message` longtext NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_message_403f60f` (`user_id`),
CONSTRAINT `user_id_refs_id_650f49a6` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_message`
--
LOCK TABLES `auth_message` WRITE;
/*!40000 ALTER TABLE `auth_message` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_message` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_permission`
--
DROP TABLE IF EXISTS `auth_permission`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `content_type_id` (`content_type_id`,`codename`),
KEY `auth_permission_1bb8f392` (`content_type_id`),
CONSTRAINT `content_type_id_refs_id_728de91f` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=308 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_permission`
--
LOCK TABLES `auth_permission` WRITE;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` VALUES (1,'Can add permission',1,'add_permission'),(2,'Can change permission',1,'change_permission'),(3,'Can delete permission',1,'delete_permission'),(4,'Can add group',2,'add_group'),(5,'Can change group',2,'change_group'),(6,'Can delete group',2,'delete_group'),(7,'Can add user',3,'add_user'),(8,'Can change user',3,'change_user'),(9,'Can delete user',3,'delete_user'),(10,'Can add message',4,'add_message'),(11,'Can change message',4,'change_message'),(12,'Can delete message',4,'delete_message'),(13,'Can add content type',5,'add_contenttype'),(14,'Can change content type',5,'change_contenttype'),(15,'Can delete content type',5,'delete_contenttype'),(16,'Can add session',6,'add_session'),(17,'Can change session',6,'change_session'),(18,'Can delete session',6,'delete_session'),(19,'Can add site',7,'add_site'),(20,'Can change site',7,'change_site'),(21,'Can delete site',7,'delete_site'),(22,'Can add comment',8,'add_comment'),(23,'Can change comment',8,'change_comment'),(24,'Can delete comment',8,'delete_comment'),(25,'Can moderate comments',8,'can_moderate'),(26,'Can add comment flag',9,'add_commentflag'),(27,'Can change comment flag',9,'change_commentflag'),(28,'Can delete comment flag',9,'delete_commentflag'),(29,'Can add migration history',10,'add_migrationhistory'),(30,'Can change migration history',10,'change_migrationhistory'),(31,'Can delete migration history',10,'delete_migrationhistory'),(32,'Can add registration profile',11,'add_registrationprofile'),(33,'Can change registration profile',11,'change_registrationprofile'),(34,'Can delete registration profile',11,'delete_registrationprofile'),(35,'Can add user social auth',12,'add_usersocialauth'),(36,'Can change user social auth',12,'change_usersocialauth'),(37,'Can delete user social auth',12,'delete_usersocialauth'),(38,'Can add nonce',13,'add_nonce'),(39,'Can change nonce',13,'change_nonce'),(40,'Can delete nonce',13,'delete_nonce'),(41,'Can add association',14,'add_association'),(42,'Can change association',14,'change_association'),(43,'Can delete association',14,'delete_association'),(44,'Can add log entry',15,'add_logentry'),(45,'Can change log entry',15,'change_logentry'),(46,'Can delete log entry',15,'delete_logentry'),(47,'Can add queue',16,'add_queue'),(48,'Can change queue',16,'change_queue'),(49,'Can delete queue',16,'delete_queue'),(50,'Can add message',17,'add_message'),(51,'Can change message',17,'change_message'),(52,'Can delete message',17,'delete_message'),(53,'Can add celery task',18,'add_celerytask'),(54,'Can change celery task',18,'change_celerytask'),(55,'Can delete celery task',18,'delete_celerytask'),(56,'Can add claim',19,'add_claim'),(57,'Can change claim',19,'change_claim'),(58,'Can delete claim',19,'delete_claim'),(59,'Can add rights holder',20,'add_rightsholder'),(60,'Can change rights holder',20,'change_rightsholder'),(61,'Can delete rights holder',20,'delete_rightsholder'),(62,'Can add premium',21,'add_premium'),(63,'Can change premium',21,'change_premium'),(64,'Can delete premium',21,'delete_premium'),(65,'Can add campaign action',22,'add_campaignaction'),(66,'Can change campaign action',22,'change_campaignaction'),(67,'Can delete campaign action',22,'delete_campaignaction'),(68,'Can add campaign',23,'add_campaign'),(69,'Can change campaign',23,'change_campaign'),(70,'Can delete campaign',23,'delete_campaign'),(71,'Can add identifier',24,'add_identifier'),(72,'Can change identifier',24,'change_identifier'),(73,'Can delete identifier',24,'delete_identifier'),(74,'Can add work',25,'add_work'),(75,'Can change work',25,'change_work'),(76,'Can delete work',25,'delete_work'),(77,'Can add author',26,'add_author'),(78,'Can change author',26,'change_author'),(79,'Can delete author',26,'delete_author'),(80,'Can add subject',27,'add_subject'),(81,'Can change subject',27,'change_subject'),(82,'Can delete subject',27,'delete_subject'),(83,'Can add edition',28,'add_edition'),(84,'Can change edition',28,'change_edition'),(85,'Can delete edition',28,'delete_edition'),(86,'Can add was work',29,'add_waswork'),(87,'Can ch
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user`
--
DROP TABLE IF EXISTS `auth_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(30) NOT NULL,
`first_name` varchar(30) NOT NULL,
`last_name` varchar(30) NOT NULL,
`email` varchar(254) NOT NULL,
`password` varchar(128) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`is_superuser` tinyint(1) NOT NULL,
`last_login` datetime DEFAULT NULL,
`date_joined` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user`
--
LOCK TABLES `auth_user` WRITE;
/*!40000 ALTER TABLE `auth_user` DISABLE KEYS */;
INSERT INTO `auth_user` VALUES (1,'RaymondYee','Raymond','Yee','rdhyee@gluejar.com','!',0,1,0,'2012-03-02 13:17:24.000000','2012-03-02 13:17:24'),(2,'rdhyee','Raymond','Yee','raymond.yee@gmail.com','sha1$e2d7b$55e51c0fad5f39292e7f99ad180c8ab31bb5bbc1',1,1,1,'2012-03-02 13:22:05.000000','2012-03-02 13:21:21'),(3,'rdhyeetest','','','raymond.yee@dataunbound.com','pbkdf2_sha256$12000$phVMOxBL7JfW$3GxX4F9iHa2o3HIVhHR2P1ufPUcTZpNkBzxOD0a3H00=',0,1,0,'2016-04-21 12:53:40.000000','2012-03-13 19:11:32'),(4,'paypaltest','','','raymondyee@mashupguide.net','sha1$2e5f9$7d642321bf209341164f3dca13c656d329e6af60',1,1,0,'2012-05-09 14:34:52.000000','2012-05-09 14:34:52'),(5,'yee-example','','','yee@example.org','pbkdf2_sha256$12000$6elL0ltxJPOY$PEBaVdNEaikqxPXXZX+GAJBa0Oi0HiEFv0GkXNpB4Qc=',0,1,0,'2016-04-21 12:54:54.000000','2016-04-21 12:52:00'),(6,'RightsatUnglueit','','','rights@gluejar.com','',0,1,0,'2016-04-21 12:52:01.000000','2016-04-21 12:52:01'),(7,'rylibrary','','','rylibrary@example.org','',0,1,0,'2016-04-21 12:54:56.000000','2016-04-21 12:54:55');
/*!40000 ALTER TABLE `auth_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user_groups`
--
DROP TABLE IF EXISTS `auth_user_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`group_id`),
KEY `auth_user_groups_403f60f` (`user_id`),
KEY `auth_user_groups_425ae3c4` (`group_id`),
CONSTRAINT `group_id_refs_id_f116770` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `user_id_refs_id_7ceef80f` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user_groups`
--
LOCK TABLES `auth_user_groups` WRITE;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
INSERT INTO `auth_user_groups` VALUES (2,5,1),(1,7,1);
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user_user_permissions`
--
DROP TABLE IF EXISTS `auth_user_user_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`permission_id`),
KEY `auth_user_user_permissions_403f60f` (`user_id`),
KEY `auth_user_user_permissions_1e014c8f` (`permission_id`),
CONSTRAINT `permission_id_refs_id_67e79cb` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `user_id_refs_id_dfbab7d` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user_user_permissions`
--
LOCK TABLES `auth_user_user_permissions` WRITE;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bisac_bisacheading`
--
DROP TABLE IF EXISTS `bisac_bisacheading`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bisac_bisacheading` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`full_label` varchar(100) NOT NULL,
`label` varchar(60) NOT NULL,
`notation` varchar(9) NOT NULL,
`parent_id` int(11) DEFAULT NULL,
`lft` int(10) unsigned NOT NULL,
`rght` int(10) unsigned NOT NULL,
`tree_id` int(10) unsigned NOT NULL,
`level` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `full_label` (`full_label`),
KEY `bisac_bisacheading_410d0aac` (`parent_id`),
KEY `bisac_bisacheading_329f6fb3` (`lft`),
KEY `bisac_bisacheading_e763210f` (`rght`),
KEY `bisac_bisacheading_ba470c4a` (`tree_id`),
KEY `bisac_bisacheading_20e079f4` (`level`),
CONSTRAINT `parent_id_refs_id_6000acca` FOREIGN KEY (`parent_id`) REFERENCES `bisac_bisacheading` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bisac_bisacheading`
--
LOCK TABLES `bisac_bisacheading` WRITE;
/*!40000 ALTER TABLE `bisac_bisacheading` DISABLE KEYS */;
/*!40000 ALTER TABLE `bisac_bisacheading` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `booxtream_boox`
--
DROP TABLE IF EXISTS `booxtream_boox`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `booxtream_boox` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`download_link_epub` varchar(200) DEFAULT NULL,
`download_link_mobi` varchar(200) DEFAULT NULL,
`referenceid` varchar(32) NOT NULL,
`downloads_remaining` smallint(5) unsigned NOT NULL,
`expirydays` smallint(5) unsigned NOT NULL,
`created` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `booxtream_boox`
--
LOCK TABLES `booxtream_boox` WRITE;
/*!40000 ALTER TABLE `booxtream_boox` DISABLE KEYS */;
INSERT INTO `booxtream_boox` VALUES (1,'http://download.booxtream.com/get/3351679482.571905d8d1ec77.93302499.epub','http://download.booxtream.com/get/3351679482.571905d8d1ec77.93302499.mobi','52:3:1',7,1,'2016-04-21 12:54:52');
/*!40000 ALTER TABLE `booxtream_boox` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `celery_taskmeta`
--
DROP TABLE IF EXISTS `celery_taskmeta`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `celery_taskmeta` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`task_id` varchar(255) NOT NULL,
`status` varchar(50) NOT NULL DEFAULT 'PENDING',
`result` longtext,
`date_done` datetime NOT NULL,
`traceback` longtext,
`hidden` tinyint(1) NOT NULL,
`meta` longtext,
PRIMARY KEY (`id`),
UNIQUE KEY `task_id` (`task_id`),
KEY `celery_taskmeta_2ff6b945` (`hidden`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `celery_taskmeta`
--
LOCK TABLES `celery_taskmeta` WRITE;
/*!40000 ALTER TABLE `celery_taskmeta` DISABLE KEYS */;
/*!40000 ALTER TABLE `celery_taskmeta` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `celery_tasksetmeta`
--
DROP TABLE IF EXISTS `celery_tasksetmeta`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `celery_tasksetmeta` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`taskset_id` varchar(255) NOT NULL,
`result` longtext NOT NULL,
`date_done` datetime NOT NULL,
`hidden` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `taskset_id` (`taskset_id`),
KEY `celery_tasksetmeta_2ff6b945` (`hidden`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `celery_tasksetmeta`
--
LOCK TABLES `celery_tasksetmeta` WRITE;
/*!40000 ALTER TABLE `celery_tasksetmeta` DISABLE KEYS */;
/*!40000 ALTER TABLE `celery_tasksetmeta` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_acq`
--
DROP TABLE IF EXISTS `core_acq`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_acq` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`expires` datetime DEFAULT NULL,
`work_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`license` smallint(5) unsigned NOT NULL,
`watermarked_id` int(11) DEFAULT NULL,
`nonce` varchar(32) DEFAULT NULL,
`refreshes` datetime NOT NULL,
`lib_acq_id` int(11) DEFAULT NULL,
`refreshed` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `core_acq_dfb5c784` (`work_id`),
KEY `core_acq_6340c63c` (`user_id`),
KEY `core_acq_e985424f` (`watermarked_id`),
KEY `core_acq_900c31e6` (`lib_acq_id`),
KEY `core_acq_63b5ea41` (`created`),
CONSTRAINT `lib_acq_id_refs_id_69ee4cfe` FOREIGN KEY (`lib_acq_id`) REFERENCES `core_acq` (`id`),
CONSTRAINT `user_id_refs_id_111f77be` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `watermarked_id_refs_id_5b94149c` FOREIGN KEY (`watermarked_id`) REFERENCES `booxtream_boox` (`id`),
CONSTRAINT `work_id_refs_id_61481778` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_acq`
--
LOCK TABLES `core_acq` WRITE;
/*!40000 ALTER TABLE `core_acq` DISABLE KEYS */;
INSERT INTO `core_acq` VALUES (1,'2016-04-21 12:54:21',NULL,52,3,0,1,'c8d558d1f9cd7bac678043d78dbe5ac3','2016-04-21 12:54:21',NULL,1),(2,'2016-04-21 12:54:59',NULL,52,7,2,NULL,'200a4ff92cf2b9dcea8779c1f86239a1','2016-04-21 12:54:59',NULL,1);
/*!40000 ALTER TABLE `core_acq` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_author`
--
DROP TABLE IF EXISTS `core_author`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_author` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `core_author_name_723fcfc05e1849ee_uniq` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_author`
--
LOCK TABLES `core_author` WRITE;
/*!40000 ALTER TABLE `core_author` DISABLE KEYS */;
INSERT INTO `core_author` VALUES (1,'2012-03-02 13:02:58','Jorge Luis Borges'),(2,'2012-03-02 13:02:59','Djuna Barnes'),(3,'2012-03-02 13:02:59','Thomas Stearns Eliot'),(4,'2012-03-02 13:02:59','Jeanette Winterson'),(5,'2012-03-02 13:03:00','Gertrude Stein'),(6,'2012-03-02 13:03:00','Janet Flanner'),(7,'2012-03-02 13:03:00','Irving Drutman'),(8,'2012-03-02 13:03:01','Sylvia Beach'),(9,'2012-03-02 13:03:01','Keri Walsh'),(10,'2012-03-02 13:03:02','John B. Thompson'),(11,'2012-03-02 13:03:03','Noel Riley Fitch'),(12,'2012-03-02 13:03:04','Jessica Mitford'),(13,'2012-03-02 13:03:04','Christopher Hitchens'),(14,'2012-03-02 13:03:05','Jessamyn West'),(15,'2012-03-02 13:03:07','Julian P. Muller'),(16,'2012-03-02 13:03:07','Thomas J. Watson'),(17,'2012-03-02 13:03:07','Peter Petre'),(18,'2012-03-02 13:03:08','Samuel R. Delany'),(19,'2012-03-02 13:03:09','Daniel Goleman'),(20,'2012-03-02 13:03:10','Heidi Murkoff'),(21,'2012-03-02 13:03:10','Sharon Mazel'),(22,'2012-03-02 13:03:11','Manning Rubin'),(23,'2012-03-02 13:03:11','Paul Frahm'),(24,'2012-03-02 13:03:12','Lawrence Weschler'),(25,'2012-03-02 13:03:12','Getty Foundation'),(26,'2012-03-02 13:03:13','Roland Huntford'),(27,'2012-03-02 13:03:13','Wael Ghonim'),(28,'2012-03-02 13:03:14','Meredith Hooper'),(29,'2012-03-02 13:03:15','Dashiell Hammett'),(30,'2012-03-02 13:03:15','Richard Layman'),(31,'2012-03-02 13:03:15','Mary McCarthy'),(32,'2012-03-02 13:03:16','Sandra M. Gilbert'),(33,'2012-03-02 13:03:16','Susan Gubar'),(34,'2012-03-02 13:03:17','Elaine Showalter'),(35,'2012-03-02 13:03:17','Nancy Rawles'),(36,'2012-03-02 13:03:18','Ted Morgan'),(37,'2012-03-02 13:03:19','Michael Herr'),(38,'2012-03-02 13:03:19','Robert Stone'),(39,'2012-03-02 13:03:20','Archimedes L. A. Patti'),(40,'2012-03-02 13:03:20','Amnon Yariv'),(41,'2012-03-02 13:03:21','Neil W. Ashcroft'),(42,'2012-03-02 13:03:21','N. David Mermin'),(43,'2012-03-02 13:03:22','James L. Gould'),(44,'2012-03-02 13:03:22','Carol Grant Gould'),(45,'2012-03-02 13:03:26','Konrad Lorenz'),(46,'2012-03-02 13:03:26','Michael Martys'),(47,'2012-03-02 13:03:26','Angelika Tipler'),(48,'2012-03-02 13:03:26','Vernor Vinge'),(49,'2012-03-02 13:03:27','William Gibson'),(50,'2012-03-02 13:03:28','Nicholas Meyer'),(51,'2012-03-02 13:03:29','Oliver W. Sacks'),(52,'2012-03-02 13:03:29','Ursula K. Le Guin'),(53,'2012-03-02 13:03:31','John Le Carré'),(54,'2016-04-21 12:52:01','Raymond Yee'),(55,'2016-08-25 18:30:45','梅尔维尔 (美)');
/*!40000 ALTER TABLE `core_author` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_author_editions`
--
DROP TABLE IF EXISTS `core_author_editions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_author_editions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`author_id` int(11) NOT NULL,
`edition_id` int(11) NOT NULL,
`relation_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `core_author_editions_author_id_7e744d9d_uniq` (`author_id`,`edition_id`),
KEY `core_author_editions_337b96ff` (`author_id`),
KEY `core_author_editions_16ab133f` (`edition_id`),
KEY `core_author_editions_d525a588` (`relation_id`),
CONSTRAINT `author_id_refs_id_17a0e6c8` FOREIGN KEY (`author_id`) REFERENCES `core_author` (`id`),
CONSTRAINT `edition_id_refs_id_6d94098` FOREIGN KEY (`edition_id`) REFERENCES `core_edition` (`id`),
CONSTRAINT `relation_id_refs_id_4fa4862a` FOREIGN KEY (`relation_id`) REFERENCES `core_relation` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_author_editions`
--
LOCK TABLES `core_author_editions` WRITE;
/*!40000 ALTER TABLE `core_author_editions` DISABLE KEYS */;
INSERT INTO `core_author_editions` VALUES (1,1,1,1),(2,2,2,1),(3,3,2,1),(4,4,2,1),(5,5,3,1),(6,6,4,1),(7,7,4,1),(8,8,5,1),(9,8,6,1),(10,9,6,1),(11,10,7,1),(12,11,8,1),(13,12,9,1),(14,13,9,1),(15,14,10,1),(16,14,11,1),(17,14,12,1),(18,14,13,1),(19,15,13,1),(20,16,14,1),(21,17,14,1),(22,18,15,1),(23,19,16,1),(24,19,17,1),(25,19,18,1),(26,20,19,1),(27,21,19,1),(28,22,20,1),(29,23,20,1),(30,24,21,1),(31,25,21,1),(32,24,22,1),(33,26,23,1),(34,27,24,1),(35,28,25,1),(36,29,26,1),(37,30,26,1),(38,31,27,1),(39,32,28,1),(40,33,28,1),(41,34,29,1),(42,35,30,1),(43,36,31,1),(44,36,32,1),(45,37,33,1),(46,38,33,1),(47,39,34,1),(48,40,35,1),(49,41,36,1),(50,42,36,1),(51,43,37,1),(52,44,37,1),(53,43,38,1),(54,44,38,1),(55,43,39,1),(56,44,39,1),(57,44,40,1),(58,43,41,1),(59,45,42,1),(60,46,42,1),(61,47,42,1),(62,48,43,1),(63,49,44,1),(64,50,45,1),(65,51,46,1),(66,52,47,1),(67,52,48,1),(68,52,49,1),(69,53,50,1),(70,53,51,1),(71,54,52,1),(72,55,53,1);
/*!40000 ALTER TABLE `core_author_editions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_badge`
--
DROP TABLE IF EXISTS `core_badge`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_badge` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(72) NOT NULL,
`description` longtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_badge`
--
LOCK TABLES `core_badge` WRITE;
/*!40000 ALTER TABLE `core_badge` DISABLE KEYS */;
INSERT INTO `core_badge` VALUES (1,'pledger','a pledger'),(2,'pledger2','a repeat pledger');
/*!40000 ALTER TABLE `core_badge` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_campaign`
--
DROP TABLE IF EXISTS `core_campaign`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_campaign` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`name` varchar(500) DEFAULT NULL,
`description` longtext,
`details` longtext,
`target` decimal(14,2) DEFAULT NULL,
`deadline` datetime DEFAULT NULL,
`activated` datetime DEFAULT NULL,
`paypal_receiver` varchar(100) NOT NULL,
`amazon_receiver` varchar(100) NOT NULL,
`work_id` int(11) NOT NULL,
`status` varchar(15) DEFAULT NULL,
`left` decimal(14,2) DEFAULT NULL,
`license` varchar(255) NOT NULL,
2012-05-07 23:53:12 +00:00
`edition_id` int(11) DEFAULT NULL,
`email` varchar(100) NOT NULL,
`publisher_id` int(11) DEFAULT NULL,
`dollar_per_day` double DEFAULT NULL,
`cc_date_initial` datetime DEFAULT NULL,
`type` smallint(5) unsigned NOT NULL,
`do_watermark` tinyint(1) NOT NULL,
`use_add_ask` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `core_campaign_50cafa73` (`work_id`),
2012-05-03 17:58:08 +00:00
KEY `core_campaign_16ab133f` (`edition_id`),
KEY `core_campaign_b50d97d6` (`deadline`),
KEY `core_campaign_81b79144` (`publisher_id`),
KEY `core_campaign_48fb58bb` (`status`),
KEY `core_campaign_f24bf87c` (`activated`),
KEY `core_campaign_024f9524` (`left`),
2012-05-03 17:58:08 +00:00
CONSTRAINT `edition_id_refs_id_64d79e7a` FOREIGN KEY (`edition_id`) REFERENCES `core_edition` (`id`),
CONSTRAINT `publisher_id_refs_id_949a052d` FOREIGN KEY (`publisher_id`) REFERENCES `core_publisher` (`id`),
CONSTRAINT `work_id_refs_id_fe13496` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_campaign`
--
LOCK TABLES `core_campaign` WRITE;
/*!40000 ALTER TABLE `core_campaign` DISABLE KEYS */;
INSERT INTO `core_campaign` VALUES (1,'2012-03-02 13:04:03','60 ways to relieve stress in 60 seconds','Test Campaign',NULL,8424.00,'2012-05-17 02:36:40',NULL,'rh1_1317336251_biz@gluejar.com','',20,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(2,'2012-03-02 13:04:03','A literature of their own','Test Campaign',NULL,1950.00,'2012-04-25 16:22:09',NULL,'rh1_1317336251_biz@gluejar.com','',29,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(3,'2012-03-02 13:04:03','A Wizard of Earthsea','Test Campaign',NULL,1636.00,'2012-03-07 17:26:54',NULL,'rh1_1317336251_biz@gluejar.com','',48,'ACTIVE',1636.00,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(4,'2012-03-02 13:04:03','Animal architects','Test Campaign',NULL,1709.00,'2012-07-12 14:12:21',NULL,'rh1_1317336251_biz@gluejar.com','',37,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(5,'2012-03-02 13:04:03','Animal Architects','Test Campaign',NULL,7554.00,'2012-07-22 16:14:02',NULL,'rh1_1317336251_biz@gluejar.com','',38,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(6,'2012-03-02 13:04:03','Call for the Dead','Test Campaign',NULL,7057.00,'2012-05-12 20:22:17',NULL,'rh1_1317336251_biz@gluejar.com','',51,'ACTIVE',7057.00,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(7,'2012-03-02 13:04:03','Collected Stories of Jessamyn West','Test Campaign',NULL,1252.00,'2012-06-12 06:48:30',NULL,'rh1_1317336251_biz@gluejar.com','',13,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(8,'2012-03-02 13:04:03','Dhalgren','Test Campaign',NULL,4776.00,'2012-04-30 23:12:21',NULL,'rh1_1317336251_biz@gluejar.com','',15,'ACTIVE',4776.00,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(9,'2012-03-02 13:04:03','Dispatches','Test Campaign',NULL,6557.00,'2012-06-23 15:38:50',NULL,'rh1_1317336251_biz@gluejar.com','',33,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(10,'2012-03-02 13:04:03','Emotional intelligence','Test Campaign',NULL,7972.00,'2012-08-21 19:47:26',NULL,'rh1_1317336251_biz@gluejar.com','',16,'ACTIVE',7972.00,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(11,'2012-03-02 13:04:03','Ethology','Test Campaign',NULL,2142.00,'2012-06-12 10:59:01',NULL,'rh1_1317336251_biz@gluejar.com','',41,'ACTIVE',2142.00,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(12,'2012-03-02 13:04:03','Father, Son & Co.','Test Campaign',NULL,2837.00,'2012-08-26 15:59:21',NULL,'rh1_1317336251_biz@gluejar.com','',14,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(13,'2012-03-02 13:04:03','Four Ways to Forgiveness','Test Campaign',NULL,9515.00,'2012-03-09 20:47:59',NULL,'rh1_1317336251_biz@gluejar.com','',49,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(14,'2012-03-02 13:04:03','Here am I--where are you?','Test Campaign',NULL,4545.00,'2012-03-10 05:06:43',NULL,'rh1_1317336251_biz@gluejar.com','',42,'ACTIVE',4545.00,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(15,'2012-03-02 13:04:03','Hons and Rebels','Test Campaign',NULL,6902.00,'2012-08-28 22:00:05',NULL,'rh1_1317336251_biz@gluejar.com','',9,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(16,'2012-03-02 13:04:03','Labyrinths','Test Campaign',NULL,4434.00,'2012-08-12 17:14:25',NULL,'rh1_1317336251_biz@gluejar.com','',1,'ACTIVE',4434.00,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(17,'2012-03-02 13:04:03','Love like gumbo','Test Campaign',NULL,5129.00,'2012-06-22 05:11:03',NULL,'rh1_1317336251_biz@gluejar.com','',30,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(18,'2012-03-02 13:04:03','Maugham','Test Campaign',NULL,1833.00,'2012-08-04 06:36:01',NULL,'rh1_1317336251_biz@gluejar.com','',31,'ACTIVE',1833.00,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(19,'2012-03-02 13:04:04','Merchants of Culture','Test Campaign',NULL,4231.00,'2012-04-22 14:36:16',NULL,'rh1_1317336251_biz@gluejar.com','',7,'INITIALIZED',NULL,'CC BY-NC-ND',NULL,'',NULL,NULL,NULL,1,1,1),(20,'2012-03-02 13:04:04','My battle of Algiers','Test Campaign',NULL,6451.00,'2012-05-01 19:39:11',NULL,'rh1_1317336251_biz@gluejar.com','',32,'ACTIVE',6451.00,'CC BY-NC-ND',NULL,'',NU
/*!40000 ALTER TABLE `core_campaign` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_campaign_managers`
--
DROP TABLE IF EXISTS `core_campaign_managers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_campaign_managers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`campaign_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `core_campaign_managers_campaign_id_6201021a_uniq` (`campaign_id`,`user_id`),
KEY `core_campaign_managers_702b94e6` (`campaign_id`),
KEY `core_campaign_managers_403f60f` (`user_id`),
CONSTRAINT `campaign_id_refs_id_14a43a05` FOREIGN KEY (`campaign_id`) REFERENCES `core_campaign` (`id`),
CONSTRAINT `user_id_refs_id_4ec5c04d` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_campaign_managers`
--
LOCK TABLES `core_campaign_managers` WRITE;
/*!40000 ALTER TABLE `core_campaign_managers` DISABLE KEYS */;
INSERT INTO `core_campaign_managers` VALUES (1,52,3);
/*!40000 ALTER TABLE `core_campaign_managers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_campaignaction`
--
DROP TABLE IF EXISTS `core_campaignaction`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_campaignaction` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`timestamp` datetime NOT NULL,
`type` varchar(15) NOT NULL,
`comment` longtext,
`campaign_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `core_campaignaction_702b94e6` (`campaign_id`),
CONSTRAINT `campaign_id_refs_id_6277a473` FOREIGN KEY (`campaign_id`) REFERENCES `core_campaign` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_campaignaction`
--
LOCK TABLES `core_campaignaction` WRITE;
/*!40000 ALTER TABLE `core_campaignaction` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_campaignaction` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_celerytask`
--
DROP TABLE IF EXISTS `core_celerytask`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_celerytask` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL DEFAULT '2011-11-21 11:28:24',
`task_id` varchar(255) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`description` varchar(2048) DEFAULT NULL,
`function_name` varchar(1024) NOT NULL,
`function_args` int(11) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`),
KEY `core_celerytask_403f60f` (`user_id`),
CONSTRAINT `user_id_refs_id_5724e0a2` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_celerytask`
--
LOCK TABLES `core_celerytask` WRITE;
/*!40000 ALTER TABLE `core_celerytask` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_celerytask` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_claim`
--
DROP TABLE IF EXISTS `core_claim`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_claim` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`rights_holder_id` int(11) NOT NULL,
`work_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`status` varchar(7) NOT NULL DEFAULT 'pending',
PRIMARY KEY (`id`),
KEY `core_claim_3369ff6d` (`rights_holder_id`),
KEY `core_claim_50cafa73` (`work_id`),
KEY `core_claim_403f60f` (`user_id`),
CONSTRAINT `rights_holder_id_refs_id_3813725f` FOREIGN KEY (`rights_holder_id`) REFERENCES `core_rightsholder` (`id`),
CONSTRAINT `user_id_refs_id_4daf1126` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `work_id_refs_id_6b9b1671` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_claim`
--
LOCK TABLES `core_claim` WRITE;
/*!40000 ALTER TABLE `core_claim` DISABLE KEYS */;
INSERT INTO `core_claim` VALUES (1,'2016-04-21 12:52:01',1,52,3,'active');
/*!40000 ALTER TABLE `core_claim` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_ebook`
--
DROP TABLE IF EXISTS `core_ebook`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_ebook` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`format` varchar(25) NOT NULL,
`url` varchar(1024) NOT NULL,
`provider` varchar(255) NOT NULL,
`rights` varchar(255) DEFAULT NULL,
`edition_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`download_count` int(11) NOT NULL,
`active` tinyint(1) NOT NULL,
`filesize` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `core_ebook_16ab133f` (`edition_id`),
KEY `core_ebook_403f60f` (`user_id`),
KEY `core_ebook_61b47ff4` (`rights`),
KEY `core_ebook_63b5ea41` (`created`),
CONSTRAINT `edition_id_refs_id_3bf4f8d1` FOREIGN KEY (`edition_id`) REFERENCES `core_edition` (`id`),
CONSTRAINT `user_id_refs_id_38a40e3c` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_ebook`
--
LOCK TABLES `core_ebook` WRITE;
/*!40000 ALTER TABLE `core_ebook` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_ebook` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_ebookfile`
--
DROP TABLE IF EXISTS `core_ebookfile`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_ebookfile` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`file` varchar(100) NOT NULL,
`format` varchar(25) NOT NULL,
`edition_id` int(11) NOT NULL,
`created` datetime NOT NULL,
`asking` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `core_ebookfile_ae2379d4` (`edition_id`),
CONSTRAINT `edition_id_refs_id_713d0b56` FOREIGN KEY (`edition_id`) REFERENCES `core_edition` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_ebookfile`
--
LOCK TABLES `core_ebookfile` WRITE;
/*!40000 ALTER TABLE `core_ebookfile` DISABLE KEYS */;
INSERT INTO `core_ebookfile` VALUES (1,'ebf/04058a8899b146388dbb7043d58bc727.epub','epub',52,'2016-04-21 12:54:21',0);
/*!40000 ALTER TABLE `core_ebookfile` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_edition`
--
DROP TABLE IF EXISTS `core_edition`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_edition` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`title` varchar(1000) NOT NULL,
`publication_date` varchar(50) DEFAULT NULL,
`work_id` int(11) DEFAULT NULL,
`cover_image` varchar(200) DEFAULT NULL,
`unglued` tinyint(1) NOT NULL,
`publisher_name_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `core_edition_50cafa73` (`work_id`),
KEY `core_edition_20a64221` (`publisher_name_id`),
KEY `core_edition_ecf7107f` (`publication_date`),
CONSTRAINT `publisher_name_id_refs_id_bf28ca9b` FOREIGN KEY (`publisher_name_id`) REFERENCES `core_publishername` (`id`),
CONSTRAINT `work_id_refs_id_441b48fb` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_edition`
--
LOCK TABLES `core_edition` WRITE;
/*!40000 ALTER TABLE `core_edition` DISABLE KEYS */;
INSERT INTO `core_edition` VALUES (1,'2012-03-02 13:02:58','Labyrinths','1964',1,NULL,0,1),(2,'2012-03-02 13:02:59','Nightwood','2006-09-01',2,NULL,0,2),(3,'2012-03-02 13:03:00','The making of Americans','1995',3,NULL,0,3),(4,'2012-03-02 13:03:00','Paris was yesterday','1988',4,NULL,0,4),(5,'2012-03-02 13:03:01','Shakespeare and Company','1991-10-01',5,NULL,0,5),(6,'2012-03-02 13:03:01','The letters of Sylvia Beach','2010-06-30',6,NULL,0,6),(7,'2012-03-02 13:03:02','Merchants of Culture','2010-09-22',7,NULL,0,7),(8,'2012-03-02 13:03:03','Sylvia Beach and the Lost Generation','1985',8,NULL,0,8),(9,'2012-03-02 13:03:04','Hons and Rebels','2004-09-30',9,NULL,0,9),(10,'2012-03-02 13:03:05','The Friendly Persuasion','2003-09-15',10,NULL,0,4),(11,'2012-03-02 13:03:06','The Massacre at Fall Creek','1986-09-02',11,NULL,0,4),(12,'2012-03-02 13:03:06','Woman Said Yes','1986-09-02',12,NULL,0,4),(13,'2012-03-02 13:03:07','Collected Stories of Jessamyn West','1987-11-23',13,NULL,0,4),(14,'2012-03-02 13:03:07','Father, Son & Co.','2000-02-29',14,NULL,0,10),(15,'2012-03-02 13:03:08','Dhalgren','2001-05-15',15,NULL,0,11),(16,'2012-03-02 13:03:09','Emotional intelligence','2006-09-26',16,NULL,0,10),(17,'2012-03-02 13:03:09','Working with emotional intelligence','1998',17,NULL,0,10),(18,'2012-03-02 13:03:10','Vital lies, simple truths','1996-05-01',18,NULL,0,12),(19,'2012-03-02 13:03:10','What to Expect When You\'re Expecting','2008-04-10',19,NULL,0,13),(20,'2012-03-02 13:03:11','60 ways to relieve stress in 60 seconds','1993',20,NULL,0,14),(21,'2012-03-02 13:03:12','Seeing is forgetting the name of the thing one sees','2008',21,NULL,0,15),(22,'2012-03-02 13:03:12','Vermeer in Bosnia: selected writings','2004',22,NULL,0,NULL),(23,'2012-03-02 13:03:13','The Last Place on Earth','1999',23,NULL,0,16),(24,'2012-03-02 13:03:13','Revolution 2:0','2012-01-17',24,NULL,0,17),(25,'2012-03-02 13:03:14','The Longest Winter','2010-05-01',25,NULL,0,18),(26,'2012-03-02 13:03:15','Selected Letters of Dashiell Hammett: 1921-1960','2002-04-25',26,NULL,0,19),(27,'2012-03-02 13:03:15','The group','1991-09-01',27,NULL,0,4),(28,'2012-03-02 13:03:16','The madwoman in the attic','1979',28,NULL,0,NULL),(29,'2012-03-02 13:03:17','A literature of their own','1977',29,NULL,0,20),(30,'2012-03-02 13:03:17','Love like gumbo','1997-11',30,NULL,0,21),(31,'2012-03-02 13:03:18','Maugham','1980',31,NULL,0,22),(32,'2012-03-02 13:03:19','My battle of Algiers','2005',32,NULL,0,23),(33,'2012-03-02 13:03:19','Dispatches','2009-02-17',33,NULL,0,24),(34,'2012-03-02 13:03:20','Why Viet Nam?','1982-09-30',34,NULL,0,15),(35,'2012-03-02 13:03:20','Quantum electronics','1989-01-17',35,NULL,0,25),(36,'2012-03-02 13:03:21','Solid state physics','1976',36,NULL,0,NULL),(37,'2012-03-02 13:03:22','Animal architects','2007-03-12',37,NULL,0,26),(38,'2012-03-02 13:03:22','Animal Architects','2012-03-06',38,NULL,0,NULL),(39,'2012-03-02 13:03:23','The animal mind','1999',39,NULL,0,27),(40,'2012-03-02 13:03:24','The remarkable life of William Beebe','2006-09-25',40,NULL,0,28),(41,'2012-03-02 13:03:25','Ethology','1982',41,NULL,0,8),(42,'2012-03-02 13:03:26','Here am I--where are you?','1991-10-01',42,NULL,0,29),(43,'2012-03-02 13:03:26','Rainbows End','2007-04-03',43,NULL,0,30),(44,'2012-03-02 13:03:27','Neuromancer','2000-07-01',44,NULL,0,31),(45,'2012-03-02 13:03:28','The seven-per-cent solution','1993-09-23',45,NULL,0,8),(46,'2012-03-02 13:03:29','Seeing voices','2000-11-28',46,NULL,0,11),(47,'2012-03-02 13:03:29','The left hand of darkness','1969',47,NULL,0,NULL),(48,'2012-03-02 13:03:30','A Wizard of Earthsea','2004-09-28',48,NULL,0,32),(49,'2012-03-02 13:03:31','Four Ways to Forgiveness','2004-12-14',49,NULL,0,33),(50,'2012-03-02 13:03:31','The Spy Who Came in from the Cold','2005-09-01',50,NULL,0,34),(51,'2012-03-02 13:03:32','Call for the Dead','2002-02-01',51,NULL,0,35),(52,'2016-04-21 12:52:01','Pro Web 2.0 Mashups','2008-04-25',52,NULL,0,36),(53,'2016-08-25 18:30:45','Moby-dick','2011',53,NULL,0,NULL);
/*!40000 ALTER TABLE `core_edition` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_gift`
--
DROP TABLE IF EXISTS `core_gift`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_gift` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`acq_id` int(11) NOT NULL,
`to` varchar(75) NOT NULL,
`giver_id` int(11) NOT NULL,
`message` longtext NOT NULL,
`used` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `core_gift_a5043c7f` (`acq_id`),
KEY `core_gift_26b81902` (`giver_id`),
CONSTRAINT `acq_id_refs_id_d14024bc` FOREIGN KEY (`acq_id`) REFERENCES `core_acq` (`id`),
CONSTRAINT `giver_id_refs_id_3923974c` FOREIGN KEY (`giver_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_gift`
--
LOCK TABLES `core_gift` WRITE;
/*!40000 ALTER TABLE `core_gift` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_gift` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_hold`
--
DROP TABLE IF EXISTS `core_hold`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_hold` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`work_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`library_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `core_hold_dfb5c784` (`work_id`),
KEY `core_hold_6340c63c` (`user_id`),
KEY `core_hold_98518bb8` (`library_id`),
CONSTRAINT `library_id_refs_id_1a8bfc55` FOREIGN KEY (`library_id`) REFERENCES `libraryauth_library` (`id`),
CONSTRAINT `user_id_refs_id_a35378a3` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `work_id_refs_id_45ad2d6d` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_hold`
--
LOCK TABLES `core_hold` WRITE;
/*!40000 ALTER TABLE `core_hold` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_hold` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_identifier`
--
DROP TABLE IF EXISTS `core_identifier`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_identifier` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(4) CHARACTER SET utf8 NOT NULL,
`value` varchar(250) COLLATE utf8_bin NOT NULL,
`work_id` int(11) NOT NULL,
`edition_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `core_identifier_type_73c65d72_uniq` (`type`,`value`),
KEY `core_identifier_50cafa73` (`work_id`),
KEY `core_identifier_16ab133f` (`edition_id`),
CONSTRAINT `edition_id_refs_id_3ef1dd63` FOREIGN KEY (`edition_id`) REFERENCES `core_edition` (`id`),
CONSTRAINT `work_id_refs_id_173a5601` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_identifier`
--
LOCK TABLES `core_identifier` WRITE;
/*!40000 ALTER TABLE `core_identifier` DISABLE KEYS */;
INSERT INTO `core_identifier` VALUES (1,'goog','wtPxGztYx-UC',1,1),(2,'isbn','9780811216999',1,1),(3,'goog','v6iZL5n5cLwC',2,2),(4,'isbn','9780811216715',2,2),(5,'goog','cRMjLSUJB-8C',3,3),(6,'isbn','9781564780881',3,3),(7,'goog','ceZXAAAAYAAJ',4,4),(8,'isbn','9780156709903',4,4),(9,'goog','fEmg2ZGajiYC',5,5),(10,'isbn','9780803260979',5,5),(11,'goog','m8bro-kUA0IC',6,6),(12,'isbn','9780231145367',6,6),(13,'goog','8-G_hkBRHxgC',7,7),(14,'isbn','9780745647869',7,7),(15,'goog','Zpu5_c2o-2IC',8,8),(16,'isbn','9780393302318',8,8),(17,'goog','pzeGAQAACAAJ',9,9),(18,'isbn','9781590171103',9,9),(19,'goog','bw8OALeRZwwC',10,10),(20,'isbn','9780156029094',10,10),(21,'goog','_jlyGQAACAAJ',11,11),(22,'isbn','9780156576819',11,11),(23,'goog','P_JLcAcNXoUC',12,12),(24,'isbn','9780156982900',12,12),(25,'goog','Jj8e9sCds-kC',13,13),(26,'isbn','9780156189798',13,13),(27,'goog','S2ViPwAACAAJ',14,14),(28,'isbn','9780553380835',14,14),(29,'goog','NaZoQgAACAAJ',15,15),(30,'isbn','9780375706684',15,15),(31,'goog','c3PDO7jKTJMC',16,16),(32,'isbn','9780553804911',16,16),(33,'goog','0Zzcd8k6TNEC',17,17),(34,'isbn','9780553378580',17,17),(35,'goog','R_jF5yUjYSEC',18,18),(36,'isbn','9780684831077',18,18),(37,'goog','ASPVDMmiLZkC',19,19),(38,'isbn','9780761148579',19,19),(39,'goog','DKo0GcKyxXQC',20,20),(40,'isbn','9781563053382',20,20),(41,'goog','kWjtMAAACAAJ',21,21),(42,'isbn','9780520256095',21,21),(43,'goog','meDISAAACAAJ',22,22),(44,'isbn','9780679442707',22,22),(45,'goog','NpXhF9snsA4C',23,23),(46,'isbn','9780375754746',23,23),(47,'goog','JSdstTJWNq4C',24,24),(48,'isbn','9780547773988',24,24),(49,'goog','b1IQPQAACAAJ',25,25),(50,'isbn','9780719595806',25,25),(51,'goog','hr9AnjP9i3MC',26,26),(52,'isbn','9781582432106',26,26),(53,'goog','rXNMFENTY2wC',27,27),(54,'isbn','9780156372084',27,27),(55,'goog','O2GyQgAACAAJ',28,28),(56,'isbn','9780300022865',28,28),(57,'goog','baRxQgAACAAJ',29,29),(58,'isbn','9780691063188',29,29),(59,'goog','bmOxAAAAIAAJ',30,30),(60,'isbn','9780940242753',30,30),(61,'goog','fKrVrGbsQt8C',31,31),(62,'isbn','9780671240776',31,31),(63,'goog','JHV_QgAACAAJ',32,32),(64,'isbn','9780060852245',32,32),(65,'goog','QOI_jmwFxGkC',33,33),(66,'isbn','9780307270801',33,33),(67,'goog','e8EpyU3-2zwC',34,34),(68,'isbn','9780520047839',34,34),(69,'goog','UTWg1VIkNuMC',35,35),(70,'isbn','9780471609971',35,35),(71,'goog','oXIfAQAAMAAJ',36,36),(72,'isbn','9780030839931',36,36),(73,'goog','J02DI6uG8jgC',37,37),(74,'isbn','9780465027828',37,37),(75,'goog','Qc5kXwAACAAJ',38,38),(76,'isbn','9780465028382',38,38),(77,'goog','xTBUOgAACAAJ',39,39),(78,'isbn','9780716760351',39,39),(79,'goog','XCNOPgAACAAJ',40,40),(80,'isbn','9781597261074',40,40),(81,'goog','Wh2IAAAAIAAJ',41,41),(82,'isbn','9780393014884',41,41),(83,'goog','KAuKQgAACAAJ',42,42),(84,'isbn','9780151400560',42,42),(85,'goog','rF9zs9TRakYC',43,43),(86,'isbn','9780812536362',43,43),(87,'goog','IDFfMPW32hQC',44,44),(88,'isbn','9780441007462',44,44),(89,'goog','a_FQYUt63WEC',45,45),(90,'isbn','9780393311198',45,45),(91,'goog','0S4rLyDj8AgC',46,46),(92,'isbn','9780375704079',46,46),(93,'goog','tIuFygAACAAJ',47,47),(94,'isbn','9780760759141',47,47),(95,'goog','hwlCPgAACAAJ',48,48),(96,'isbn','9780553383041',48,48),(97,'goog','yj1NPgAACAAJ',49,49),(98,'isbn','9780060760298',49,49),(99,'goog','o6o7PgAACAAJ',50,50),(100,'isbn','9780802714541',50,50),(101,'goog','oY0NdYZbG2kC',51,51),(102,'isbn','9780743431675',51,51),(103,'goog','eGdLbRZ5AX0C',52,52),(104,'isbn','9781430202868',52,52),(105,'goog','2qzZoAEACAAJ',53,53),(106,'isbn','9787500129875',53,53);
/*!40000 ALTER TABLE `core_identifier` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_libpref`
--
DROP TABLE IF EXISTS `core_libpref`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_libpref` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`marc_link_target` varchar(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `user_id_refs_id_7519465d` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_libpref`
--
LOCK TABLES `core_libpref` WRITE;
/*!40000 ALTER TABLE `core_libpref` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_libpref` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_offer`
--
DROP TABLE IF EXISTS `core_offer`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_offer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`work_id` int(11) NOT NULL,
`price` decimal(6,2) DEFAULT NULL,
`license` smallint(5) unsigned NOT NULL,
`active` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `core_offer_dfb5c784` (`work_id`),
CONSTRAINT `work_id_refs_id_f0db7ea9` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_offer`
--
LOCK TABLES `core_offer` WRITE;
/*!40000 ALTER TABLE `core_offer` DISABLE KEYS */;
INSERT INTO `core_offer` VALUES (1,52,10.00,1,1),(2,52,10.00,2,1);
/*!40000 ALTER TABLE `core_offer` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_premium`
--
DROP TABLE IF EXISTS `core_premium`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_premium` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`type` varchar(2) NOT NULL,
`campaign_id` int(11) DEFAULT NULL,
`amount` decimal(10,0) NOT NULL,
`description` longtext,
`limit` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `core_premium_702b94e6` (`campaign_id`),
CONSTRAINT `campaign_id_refs_id_512fbe69` FOREIGN KEY (`campaign_id`) REFERENCES `core_campaign` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=151 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_premium`
--
LOCK TABLES `core_premium` WRITE;
/*!40000 ALTER TABLE `core_premium` DISABLE KEYS */;
INSERT INTO `core_premium` VALUES (1,'2011-11-17 22:03:37','00',NULL,1,'The unglued ebook delivered to your inbox.',0),(2,'2011-11-17 22:03:37','00',NULL,25,'Your username under \"supporters\" in the acknowledgements section.',0),(3,'2011-11-17 22:03:37','00',NULL,50,'Your username and profile URL of your choice under \"benefactors\"',0),(4,'2011-11-17 22:03:37','00',NULL,100,'Your username, profile URL, and profile tagline under \"bibliophiles\"',0),(150,'2011-11-17 22:03:37','00',NULL,0,'No premium, thanks! I just want to help unglue.',0);
/*!40000 ALTER TABLE `core_premium` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_press`
--
DROP TABLE IF EXISTS `core_press`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_press` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(200) NOT NULL,
`title` varchar(140) NOT NULL,
`source` varchar(140) NOT NULL,
`date` date NOT NULL,
`language` varchar(20) NOT NULL,
`highlight` tinyint(1) NOT NULL,
`note` varchar(140) NOT NULL,
PRIMARY KEY (`id`),
KEY `core_press_eeede814` (`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_press`
--
LOCK TABLES `core_press` WRITE;
/*!40000 ALTER TABLE `core_press` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_press` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_publisher`
--
DROP TABLE IF EXISTS `core_publisher`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_publisher` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`name_id` int(11) NOT NULL,
`url` varchar(1024) DEFAULT NULL,
`logo_url` varchar(1024) DEFAULT NULL,
`description` longtext,
PRIMARY KEY (`id`),
KEY `core_publisher_4da47e07` (`name_id`),
CONSTRAINT `name_id_refs_id_5d27f2fb` FOREIGN KEY (`name_id`) REFERENCES `core_publishername` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_publisher`
--
LOCK TABLES `core_publisher` WRITE;
/*!40000 ALTER TABLE `core_publisher` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_publisher` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_publishername`
--
DROP TABLE IF EXISTS `core_publishername`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_publishername` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`publisher_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `core_publishername_name_6705ace0ea367f07_uniq` (`name`),
KEY `core_publishername_81b79144` (`publisher_id`),
CONSTRAINT `publisher_id_refs_id_e6ee33d3` FOREIGN KEY (`publisher_id`) REFERENCES `core_publisher` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_publishername`
--
LOCK TABLES `core_publishername` WRITE;
/*!40000 ALTER TABLE `core_publishername` DISABLE KEYS */;
INSERT INTO `core_publishername` VALUES (1,'New Directions Publishing Corporation',NULL),(2,'New Directions',NULL),(3,'Dalkey Archive Pr',NULL),(4,'Mariner Books',NULL),(5,'Bison Books',NULL),(6,'Columbia Univ Pr',NULL),(7,'Polity Pr',NULL),(8,'W. W. Norton & Company',NULL),(9,'NYRB Classics',NULL),(10,'Bantam',NULL),(11,'Vintage',NULL),(12,'Simon and Schuster',NULL),(13,'Workman Pub Co',NULL),(14,'Workman Publishing',NULL),(15,'Univ of California Pr',NULL),(16,'Random House of Canada',NULL),(17,'Houghton Mifflin Harcourt (HMH)',NULL),(18,'John Murray Pubs Ltd',NULL),(19,'Counterpoint Press',NULL),(20,'Princeton Univ Pr',NULL),(21,'Fjord Pr',NULL),(22,'Simon & Schuster',NULL),(23,'Smithsonian',NULL),(24,'Everyman\'s Library',NULL),(25,'John Wiley & Sons Inc',NULL),(26,'Basic Books (AZ)',NULL),(27,'W H Freeman & Co',NULL),(28,'Island Pr',NULL),(29,'Harcourt',NULL),(30,'Tor Science Fiction',NULL),(31,'Ace Trade',NULL),(32,'Spectra',NULL),(33,'Harper Perennial',NULL),(34,'Walker & Co',NULL),(35,'Scribner',NULL),(36,'Apress',NULL);
/*!40000 ALTER TABLE `core_publishername` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_relation`
--
DROP TABLE IF EXISTS `core_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_relation` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(3) NOT NULL,
`name` varchar(30) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_relation`
--
LOCK TABLES `core_relation` WRITE;
/*!40000 ALTER TABLE `core_relation` DISABLE KEYS */;
INSERT INTO `core_relation` VALUES (1,'aut','Author'),(2,'arr','arranger'),(3,'prf','performer'),(4,'art','artist'),(5,'lbt','librettist'),(6,'ann','annotator'),(7,'prt','printer'),(8,'edt','editor'),(9,'adp','adapter'),(10,'aui','author_of_introduction'),(11,'res','researcher'),(12,'dub','dubious_author'),(13,'clb','collaborator'),(14,'cnd','conductor'),(15,'aft','author_of_afterword'),(16,'oth','other_contributor'),(17,'pht','photographer'),(18,'cmm','commentator'),(19,'trl','translator'),(20,'egr','engineer'),(21,'ill','illustrator'),(22,'ctb','contributor'),(23,'pbl','publisher_contributor'),(24,'unk','unknown_contributor'),(25,'com','compiler'),(26,'trc','transcriber'),(27,'cmp','composer');
/*!40000 ALTER TABLE `core_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_rightsholder`
--
DROP TABLE IF EXISTS `core_rightsholder`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_rightsholder` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`email` varchar(100) NOT NULL,
`rights_holder_name` varchar(100) NOT NULL,
`owner_id` int(11) NOT NULL,
`can_sell` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `core_rightsholder_5d52dd10` (`owner_id`),
CONSTRAINT `owner_id_refs_id_4785c9f2` FOREIGN KEY (`owner_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_rightsholder`
--
LOCK TABLES `core_rightsholder` WRITE;
/*!40000 ALTER TABLE `core_rightsholder` DISABLE KEYS */;
INSERT INTO `core_rightsholder` VALUES (1,'2016-04-21 12:52:00','raymond.yee@dataunbound.com','RY Inc',3,1);
/*!40000 ALTER TABLE `core_rightsholder` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_subject`
--
DROP TABLE IF EXISTS `core_subject`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_subject` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`name` varchar(200) NOT NULL,
`is_visible` tinyint(1) NOT NULL,
`authority` varchar(10) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `core_subject_name_uniq` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_subject`
--
LOCK TABLES `core_subject` WRITE;
/*!40000 ALTER TABLE `core_subject` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_subject` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_subject_works`
--
DROP TABLE IF EXISTS `core_subject_works`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_subject_works` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`subject_id` int(11) NOT NULL,
`work_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `core_subject_works_subject_id_7fafdf11_uniq` (`subject_id`,`work_id`),
KEY `core_subject_works_638462f1` (`subject_id`),
KEY `core_subject_works_50cafa73` (`work_id`),
CONSTRAINT `subject_id_refs_id_1f2e6ee2` FOREIGN KEY (`subject_id`) REFERENCES `core_subject` (`id`),
CONSTRAINT `work_id_refs_id_23534694` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_subject_works`
--
LOCK TABLES `core_subject_works` WRITE;
/*!40000 ALTER TABLE `core_subject_works` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_subject_works` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_userprofile`
--
DROP TABLE IF EXISTS `core_userprofile`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_userprofile` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`user_id` int(11) NOT NULL,
`tagline` varchar(140) NOT NULL,
`pic_url` varchar(200) NOT NULL,
`home_url` varchar(200) NOT NULL,
`twitter_id` varchar(15) NOT NULL,
`facebook_id` bigint(20) DEFAULT NULL,
`librarything_id` varchar(31) NOT NULL,
`goodreads_user_id` varchar(32) DEFAULT NULL,
`goodreads_user_name` varchar(200) DEFAULT NULL,
`goodreads_auth_token` longtext,
`goodreads_auth_secret` longtext,
`goodreads_user_link` varchar(200) DEFAULT NULL,
`avatar_source` smallint(5) unsigned DEFAULT NULL,
`kindle_email` varchar(254) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `user_id_refs_id_55007184` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_userprofile`
--
LOCK TABLES `core_userprofile` WRITE;
/*!40000 ALTER TABLE `core_userprofile` DISABLE KEYS */;
INSERT INTO `core_userprofile` VALUES (1,'2012-03-02 13:17:24',1,'','','','',NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,''),(2,'2012-03-02 13:21:21',2,'','','','',NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,''),(3,'2012-03-13 19:11:32',3,'','','','',NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,''),(4,'2012-05-09 14:34:52',4,'','','','',NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,''),(5,'2016-04-21 12:52:00',5,'','','','',NULL,'',NULL,NULL,NULL,NULL,NULL,4,''),(6,'2016-04-21 12:52:01',6,'','','','',NULL,'',NULL,NULL,NULL,NULL,NULL,4,''),(7,'2016-04-21 12:54:55',7,'','','','',NULL,'',NULL,NULL,NULL,NULL,NULL,4,'');
/*!40000 ALTER TABLE `core_userprofile` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_userprofile_badges`
--
DROP TABLE IF EXISTS `core_userprofile_badges`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_userprofile_badges` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userprofile_id` int(11) NOT NULL,
`badge_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `core_userprofile_badges_userprofile_id_bf97d4699fcdd09_uniq` (`userprofile_id`,`badge_id`),
KEY `core_userprofile_badges_1be1924f` (`userprofile_id`),
KEY `core_userprofile_badges_540bf7e8` (`badge_id`),
CONSTRAINT `badge_id_refs_id_2a419c3a` FOREIGN KEY (`badge_id`) REFERENCES `core_badge` (`id`),
CONSTRAINT `userprofile_id_refs_id_f21bd339` FOREIGN KEY (`userprofile_id`) REFERENCES `core_userprofile` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_userprofile_badges`
--
LOCK TABLES `core_userprofile_badges` WRITE;
/*!40000 ALTER TABLE `core_userprofile_badges` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_userprofile_badges` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_waswork`
--
DROP TABLE IF EXISTS `core_waswork`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_waswork` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`work_id` int(11) NOT NULL,
`was` int(11) NOT NULL,
`moved` datetime NOT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `was` (`was`),
KEY `core_waswork_50cafa73` (`work_id`),
KEY `core_waswork_403f60f` (`user_id`),
CONSTRAINT `user_id_refs_id_6b2efc3c` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `work_id_refs_id_1a094c05` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_waswork`
--
LOCK TABLES `core_waswork` WRITE;
/*!40000 ALTER TABLE `core_waswork` DISABLE KEYS */;
/*!40000 ALTER TABLE `core_waswork` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_wishlist`
--
DROP TABLE IF EXISTS `core_wishlist`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_wishlist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `user_id_refs_id_109b8800` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_wishlist`
--
LOCK TABLES `core_wishlist` WRITE;
/*!40000 ALTER TABLE `core_wishlist` DISABLE KEYS */;
INSERT INTO `core_wishlist` VALUES (1,'2012-03-02 13:17:24',1),(2,'2012-03-02 13:21:21',2),(3,'2012-03-13 19:11:32',3),(4,'2012-05-09 14:34:52',4),(5,'2016-04-21 12:52:00',5),(6,'2016-04-21 12:52:01',6),(7,'2016-04-21 12:54:55',7);
/*!40000 ALTER TABLE `core_wishlist` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_wishlist_works`
--
DROP TABLE IF EXISTS `core_wishlist_works`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_wishlist_works` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`wishlist_id` int(11) NOT NULL,
`work_id` int(11) NOT NULL,
`created` datetime NOT NULL,
`source` varchar(15) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `core_wishlist_works_wishlist_id_7ac55979_uniq` (`wishlist_id`,`work_id`),
KEY `core_wishlist_works_515c0ae1` (`wishlist_id`),
KEY `core_wishlist_works_50cafa73` (`work_id`),
KEY `core_wishlist_works_a34b03a6` (`source`),
KEY `core_wishlist_works_63b5ea41` (`created`),
CONSTRAINT `wishlist_id_refs_id_29586d26` FOREIGN KEY (`wishlist_id`) REFERENCES `core_wishlist` (`id`),
CONSTRAINT `work_id_refs_id_117c3b10` FOREIGN KEY (`work_id`) REFERENCES `core_work` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_wishlist_works`
--
LOCK TABLES `core_wishlist_works` WRITE;
/*!40000 ALTER TABLE `core_wishlist_works` DISABLE KEYS */;
INSERT INTO `core_wishlist_works` VALUES (1,3,48,'2016-04-21 12:53:54','pledging'),(2,7,52,'2016-04-21 12:54:59','pledging');
/*!40000 ALTER TABLE `core_wishlist_works` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `core_work`
--
DROP TABLE IF EXISTS `core_work`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `core_work` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`title` varchar(1000) NOT NULL,
`language` varchar(5) NOT NULL,
`openlibrary_lookup` datetime DEFAULT NULL,
`num_wishes` int(11) NOT NULL,
2012-05-07 23:53:12 +00:00
`description` longtext,
`selected_edition_id` int(11) DEFAULT NULL,
`featured` datetime DEFAULT NULL,
`is_free` tinyint(1) NOT NULL,
`publication_range` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `core_work_988f77ad` (`num_wishes`),
KEY `core_work_65e6e3c2` (`selected_edition_id`),
KEY `core_work_784efa61` (`language`),
KEY `core_work_63b5ea41` (`created`),
KEY `core_work_9ce45497` (`featured`),
CONSTRAINT `selected_edition_id_refs_id_1b248dcc` FOREIGN KEY (`selected_edition_id`) REFERENCES `core_edition` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `core_work`
--
LOCK TABLES `core_work` WRITE;
/*!40000 ALTER TABLE `core_work` DISABLE KEYS */;
INSERT INTO `core_work` VALUES (1,'2012-03-02 13:02:58','Labyrinths','en',NULL,0,'A new edition of a classic work by a late forefront Argentinean writer features the 1964 augmented original text and is complemented by a biographical essay, a tribute to the writer\'s body of work, and a chronology of his life. Reprint.',NULL,NULL,0,NULL),(2,'2012-03-02 13:02:59','Nightwood','en',NULL,0,'The fiery and enigmatic masterpiece-one of the greatest novels of the Modernist era.',NULL,NULL,0,NULL),(3,'2012-03-02 13:02:59','The making of Americans','en',NULL,0,'\"Essential for all literature collections . . . Several of Stein\'s titles returned to print in 1995, but none more important than The Making of Americans.\"-Library Journal',NULL,NULL,0,NULL),(4,'2012-03-02 13:03:00','Paris was yesterday','en',NULL,0,'A portrait of French life and culture in the late twenties and thirties is presented in excerpts from the author\'s column in the New Yorker',NULL,NULL,0,NULL),(5,'2012-03-02 13:03:01','Shakespeare and Company','en',NULL,0,'Sylvia Beach was intimately acquainted with the expatriate and visiting writers of the Lost Generation, a label that she never accepted. Like moths of great promise, they were drawn to her well-lighted bookstore and warm hearth on the Left Bank. Shakespeare and Company evokes the zeitgeist of an era through its revealing glimpses of James Joyce, Ernest Hemingway, Scott Fitzgerald, Sherwood Anderson, Andre Gide, Ezra Pound, Gertrude Stein, Alice B. Toklas, D. H. Lawrence, and others already famous or soon to be. In his introduction to this new edition, James Laughlin recalls his friendship with Sylvia Beach. Like her bookstore, his publishing house, New Directions, is considered a cultural touchstone.',NULL,NULL,0,NULL),(6,'2012-03-02 13:03:01','The letters of Sylvia Beach','en',NULL,0,'The first collection of selected correspondence of the noted bookseller and publisher includes letters to Ernest Hemingway, James Joyce, William Carlos Williams, Marianne Moore, and Gertrude Stein.',NULL,NULL,0,NULL),(7,'2012-03-02 13:03:02','Merchants of Culture','en',NULL,0,'The world of book publishing is going through turbulent times. For nearly five centuries the methods and practices of book publishing remained largely unchanged, but at the dawn of the 21st century the industry finds itself faced with perhaps the greatest challenges since Gutenberg. A combination of economic pressures and technological change is forcing publishers to alter their practices and think hard about the future of the book in the digital age. In this book - the first major study of trade publishing for more than 30 years - Thompson situates the current challenges facing the industry in an historical context, analyzing the transformation of trade publishing in the United States and Britain since the 1960s. He gives a detailed account of how the world of trade publishing really works, dissecting the roles of publishers, agents and booksellers and showing how their practices are shaped by a field that has a distinctive structure and dynamic. Against this backdrop Thompson analyzes the impact of the digital revolution on book publishing and examines the pressures that are reshaping the field of trade publishing today.',NULL,NULL,0,NULL),(8,'2012-03-02 13:03:03','Sylvia Beach and the Lost Generation','en',NULL,0,'Making use of the author\'s access to the Beach family papers, this account chronicles the literary circle that gathered at Beach\'s Paris book shop',NULL,NULL,0,NULL),(9,'2012-03-02 13:03:04','Hons and Rebels','en',NULL,0,'In this \"wonderfully funny and very poignant\" (Philip Toynbee) autobiography, Mitford offers a fascinating study of the unusual upbringing of her famous family.',NULL,NULL,0,NULL),(10,'2012-03-02 13:03:05','The Friendly Persuasion','en',NULL,0,'Jess Birdwell, a Quaker with a fondness for fast horses, his wife Eliza, and their children struggle to deal with the turmoil, violence, and challenges of the Civil War in their own way. Reprint. 12,500 first printing.',NULL,NULL,0,NULL),(11,'2012-03-02 13:03:06','The Massacre
/*!40000 ALTER TABLE `core_work` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `distro_deposit`
--
DROP TABLE IF EXISTS `distro_deposit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `distro_deposit` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`target_id` int(11) NOT NULL,
`isbn` varchar(13) NOT NULL,
`format` varchar(30) NOT NULL,
`updated` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `distro_deposit_70bfdfd1` (`target_id`),
CONSTRAINT `target_id_refs_id_814d0105` FOREIGN KEY (`target_id`) REFERENCES `distro_target` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `distro_deposit`
--
LOCK TABLES `distro_deposit` WRITE;
/*!40000 ALTER TABLE `distro_deposit` DISABLE KEYS */;
/*!40000 ALTER TABLE `distro_deposit` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `distro_format`
--
DROP TABLE IF EXISTS `distro_format`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `distro_format` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(4) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `distro_format`
--
LOCK TABLES `distro_format` WRITE;
/*!40000 ALTER TABLE `distro_format` DISABLE KEYS */;
/*!40000 ALTER TABLE `distro_format` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `distro_target`
--
DROP TABLE IF EXISTS `distro_target`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `distro_target` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL,
`host` varchar(60) NOT NULL,
`pw` varchar(30) NOT NULL,
`user` varchar(30) NOT NULL,
`protocol` varchar(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `distro_target`
--
LOCK TABLES `distro_target` WRITE;
/*!40000 ALTER TABLE `distro_target` DISABLE KEYS */;
/*!40000 ALTER TABLE `distro_target` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `distro_target_formats`
--
DROP TABLE IF EXISTS `distro_target_formats`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `distro_target_formats` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`target_id` int(11) NOT NULL,
`format_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `distro_target_formats_target_id_6635b7be763e51f3_uniq` (`target_id`,`format_id`),
KEY `distro_target_formats_70bfdfd1` (`target_id`),
KEY `distro_target_formats_cdb01fd0` (`format_id`),
CONSTRAINT `format_id_refs_id_31712f41` FOREIGN KEY (`format_id`) REFERENCES `distro_format` (`id`),
CONSTRAINT `target_id_refs_id_e11c34a1` FOREIGN KEY (`target_id`) REFERENCES `distro_target` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `distro_target_formats`
--
LOCK TABLES `distro_target_formats` WRITE;
/*!40000 ALTER TABLE `distro_target_formats` DISABLE KEYS */;
/*!40000 ALTER TABLE `distro_target_formats` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_admin_log`
--
DROP TABLE IF EXISTS `django_admin_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime NOT NULL,
`user_id` int(11) NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_403f60f` (`user_id`),
KEY `django_admin_log_1bb8f392` (`content_type_id`),
CONSTRAINT `content_type_id_refs_id_288599e6` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
CONSTRAINT `user_id_refs_id_c8665aa` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_admin_log`
--
LOCK TABLES `django_admin_log` WRITE;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_comment_flags`
--
DROP TABLE IF EXISTS `django_comment_flags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_comment_flags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`comment_id` int(11) NOT NULL,
`flag` varchar(30) NOT NULL,
`flag_date` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`comment_id`,`flag`),
KEY `django_comment_flags_403f60f` (`user_id`),
KEY `django_comment_flags_64c238ac` (`comment_id`),
KEY `django_comment_flags_111c90f9` (`flag`),
CONSTRAINT `comment_id_refs_id_373a05f7` FOREIGN KEY (`comment_id`) REFERENCES `django_comments` (`id`),
CONSTRAINT `user_id_refs_id_603c4dcb` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_comment_flags`
--
LOCK TABLES `django_comment_flags` WRITE;
/*!40000 ALTER TABLE `django_comment_flags` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_comment_flags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_comments`
--
DROP TABLE IF EXISTS `django_comments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content_type_id` int(11) NOT NULL,
`object_pk` longtext NOT NULL,
`site_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`user_name` varchar(50) NOT NULL,
`user_email` varchar(254) NOT NULL,
`user_url` varchar(200) NOT NULL,
`comment` longtext NOT NULL,
`submit_date` datetime NOT NULL,
`ip_address` char(15) DEFAULT NULL,
`is_public` tinyint(1) NOT NULL,
`is_removed` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_comments_1bb8f392` (`content_type_id`),
KEY `django_comments_6223029` (`site_id`),
KEY `django_comments_403f60f` (`user_id`),
KEY `django_comments_submit_date_12b4e916a37b5c82_uniq` (`submit_date`),
CONSTRAINT `content_type_id_refs_id_d5868a5` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
CONSTRAINT `site_id_refs_id_7248df08` FOREIGN KEY (`site_id`) REFERENCES `django_site` (`id`),
CONSTRAINT `user_id_refs_id_7e9ddfef` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_comments`
--
LOCK TABLES `django_comments` WRITE;
/*!40000 ALTER TABLE `django_comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_comments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_content_type`
--
DROP TABLE IF EXISTS `django_content_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `app_label` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_content_type`
--
LOCK TABLES `django_content_type` WRITE;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` VALUES (15,'admin','logentry'),(55,'api','allowedrepo'),(2,'auth','group'),(4,'auth','message'),(1,'auth','permission'),(3,'auth','user'),(56,'bisac','bisacheading'),(75,'booxtream','boox'),(8,'comments','comment'),(9,'comments','commentflag'),(5,'contenttypes','contenttype'),(58,'core','acq'),(26,'core','author'),(65,'core','badge'),(23,'core','campaign'),(22,'core','campaignaction'),(18,'core','celerytask'),(19,'core','claim'),(30,'core','ebook'),(64,'core','ebookfile'),(28,'core','edition'),(68,'core','gift'),(59,'core','hold'),(24,'core','identifier'),(52,'core','key'),(66,'core','libpref'),(57,'core','offer'),(21,'core','premium'),(67,'core','press'),(62,'core','publisher'),(63,'core','publishername'),(60,'core','relation'),(61,'core','relator'),(20,'core','rightsholder'),(27,'core','subject'),(33,'core','userprofile'),(29,'core','waswork'),(32,'core','wishes'),(31,'core','wishlist'),(25,'core','work'),(100,'default','association'),(101,'default','code'),(99,'default','nonce'),(98,'default','usersocialauth'),(83,'distro','deposit'),(84,'distro','format'),(82,'distro','target'),(96,'django_comments','comment'),(97,'django_comments','commentflag'),(42,'djcelery','crontabschedule'),(41,'djcelery','intervalschedule'),(44,'djcelery','periodictask'),(43,'djcelery','periodictasks'),(39,'djcelery','taskmeta'),(40,'djcelery','tasksetmeta'),(46,'djcelery','taskstate'),(45,'djcelery','workerstate'),(17,'djkombu','message'),(16,'djkombu','queue'),(53,'email_change','emailchangerequest'),(77,'libraryauth','block'),(78,'libraryauth','cardpattern'),(80,'libraryauth','emailpattern'),(76,'libraryauth','library'),(79,'libraryauth','libraryuser'),(69,'marc','marcrecord'),(49,'notification','notice'),(50,'notification','noticequeuebatch'),(48,'notification','noticesetting'),(47,'notification','noticetype'),(51,'notification','observeditem'),(81,'page','page'),(73,'payment','account'),(71,'payment','credit'),(70,'payment','creditlog'),(35,'payment','paymentresponse'),(36,'payment','receiver'),(72,'payment','sent'),(34,'payment','transaction'),(95,'questionnaire','answer'),(94,'questionnaire','choice'),(89,'questionnaire','dbstylesheet'),(86,'questionnaire','globalstyles'),(88,'questionnaire','landing'),(93,'questionnaire','question'),(87,'questionnaire','questionnaire'),(90,'questionnaire','questionset'),(91,'questionnaire','runinfo'),(92,'questionnaire','runinfohistory'),(85,'questionnaire','subject'),(11,'registration','registrationprofile'),(6,'sessions','session'),(7,'sites','site'),(14,'social_auth','association'),(13,'social_auth','nonce'),(12,'social_auth','usersocialauth'),(10,'south','migrationhistory'),(74,'survey','landing'),(37,'tastypie','apiaccess'),(38,'tastypie','apikey'),(54,'thumbnail','kvstore');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_migrations`
--
DROP TABLE IF EXISTS `django_migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_migrations`
--
LOCK TABLES `django_migrations` WRITE;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` VALUES (1,'contenttypes','0001_initial','2016-08-25 18:36:34.677196'),(2,'contenttypes','0002_remove_content_type_name','2016-08-25 18:36:34.807504'),(3,'auth','0001_initial','2016-08-25 18:36:34.837576'),(4,'auth','0002_alter_permission_name_max_length','2016-08-25 18:36:34.873400'),(5,'auth','0003_alter_user_email_max_length','2016-08-25 18:36:34.907162'),(6,'auth','0004_alter_user_username_opts','2016-08-25 18:36:34.929398'),(7,'auth','0005_alter_user_last_login_null','2016-08-25 18:36:34.964408'),(8,'auth','0006_require_contenttypes_0002','2016-08-25 18:36:34.970225'),(9,'default','0001_initial','2016-08-25 18:36:36.950265'),(10,'default','0002_add_related_name','2016-08-25 18:36:38.812421'),(11,'libraryauth','0001_initial','2016-08-25 18:36:43.172322'),(12,'core','0001_initial','2016-08-25 18:36:43.176659'),(13,'booxtream','0001_initial','2016-08-25 18:36:43.180107'),(14,'core','0002_auto_20160722_1716','2016-08-25 18:36:43.183419'),(15,'libraryauth','0002_auto_20160727_2214','2016-08-25 18:36:45.098603'),(16,'admin','0001_initial','2016-08-25 18:36:57.171290'),(17,'api','0001_initial','2016-08-25 18:36:57.182368'),(18,'bisac','0001_initial','2016-08-25 18:36:57.194697'),(19,'default','0003_alter_email_max_length','2016-08-25 18:36:57.222018'),(20,'default','0004_auto_20160423_0400','2016-08-25 18:36:57.450414'),(21,'distro','0001_initial','2016-08-25 18:36:57.491408'),(22,'sites','0001_initial','2016-08-25 18:36:57.510773'),(23,'django_comments','0001_initial','2016-08-25 18:36:57.873996'),(24,'django_comments','0002_update_user_email_field_length','2016-08-25 18:36:58.015672'),(25,'django_comments','0003_add_submit_date_index','2016-08-25 18:36:58.160824'),(26,'djcelery','0001_initial','2016-08-25 18:36:58.228225'),(27,'email_change','0001_initial','2016-08-25 18:36:58.365658'),(28,'marc','0001_initial','2016-08-25 18:36:58.498155'),(29,'notification','0001_initial','2016-08-25 18:36:59.596413'),(30,'payment','0001_initial','2016-08-25 18:37:00.578111'),(31,'questionnaire','0001_initial','2016-08-25 18:37:04.011806'),(32,'registration','0001_initial','2016-08-25 18:37:04.225662'),(33,'sessions','0001_initial','2016-08-25 18:37:04.252763'),(34,'tastypie','0001_initial','2016-08-25 18:37:04.496005');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_session`
--
DROP TABLE IF EXISTS `django_session`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_3da3d3d8` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_session`
--
LOCK TABLES `django_session` WRITE;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
INSERT INTO `django_session` VALUES ('175e0d57a0f0f04156a8eb4316e47a2e','YzgwYWRiYTBhZTAzYjA3OWMzMzE2ZjEyYzY2ZTVhYjI3Zjg2ZjgxNzqAAn1xAVUKdGVzdGNvb2tp\nZXECVQZ3b3JrZWRxA3Mu\n','2012-05-23 14:35:23'),('18fbcae31f97186e23df72668c871697','OTU5N2MyYWZlMGEyZjQwMDlhNzhlZjQ2NzQ4ODY0YzM1MTFhN2VjNzqAAn1xAShVBm9wZW5pZH1V\nDV9hdXRoX3VzZXJfaWRxAooBAlUec29jaWFsX2F1dGhfbGFzdF9sb2dpbl9iYWNrZW5kcQNVBmdv\nb2dsZXEEVQp0ZXN0Y29va2llVQZ3b3JrZWRVEl9hdXRoX3VzZXJfYmFja2VuZHEFVSlzb2NpYWxf\nYXV0aC5iYWNrZW5kcy5nb29nbGUuR29vZ2xlQmFja2VuZHEGdS4=\n','2012-03-16 13:22:05'),('2a5014c0ae1d8df35a7ba7894737898c','OTIyOTliMjkxYjQ2NDE3ZGZiNmFhNThhZDUxN2U0NmZiNWY1YjJjMzqAAn1xAShVBm9wZW5pZH1V\nDV9hdXRoX3VzZXJfaWRxAooBAVUec29jaWFsX2F1dGhfbGFzdF9sb2dpbl9iYWNrZW5kcQNVBmdv\nb2dsZXEEVQp0ZXN0Y29va2llVQZ3b3JrZWRVEl9hdXRoX3VzZXJfYmFja2VuZHEFVSlzb2NpYWxf\nYXV0aC5iYWNrZW5kcy5nb29nbGUuR29vZ2xlQmFja2VuZHEGdS4=\n','2012-03-16 13:17:24'),('6b425a32ff36427157428901ed0fafef','ZjNmNDhkYjNjMGM3M2UxNDRiNmM4MjY5ZTJhNGIxMTg2NjQxNmU3MzqAAn1xAS4=\n','2012-05-23 14:32:04'),('7612afkcttd12na2oik9aia4n89i0nps','NzlkZGFlNmM5MTBiYjU3YWE1M2NkNTdmODU4ZDE0NTIyMTc2MzllZjp7ImFtb3VudCI6MTAwMCwiX2F1dGhfdXNlcl9pZCI6NywiX2F1dGhfdXNlcl9iYWNrZW5kIjoic29jaWFsLmJhY2tlbmRzLmdvb2dsZS5Hb29nbGVPQXV0aDIifQ==','2016-06-02 12:54:59'),('7cflps1w2jxbsb7ni1lqudhv22zffwp2','M2I4NmEwYmM3ZTg0NmUyZDQwN2FjOWI1MmExNGI4ZDdlMTg0NTU0YTp7fQ==','2016-06-02 12:52:25'),('98a8c3b6c6bab3895a9d13fcb377c8f0','ZjNmNDhkYjNjMGM3M2UxNDRiNmM4MjY5ZTJhNGIxMTg2NjQxNmU3MzqAAn1xAS4=\n','2012-05-23 14:02:27'),('b5529b6ff89dd2e5662a34eb3b134085','MTEyNjAwNGQxNjY0YTY3ODI5N2UxODk0M2M2NmY4Y2Q2ODJiNDJkNDqAAn1xAS4=\n','2012-05-17 14:12:51'),('ceafe30bfba3d5669ac52b8958471207','MTEyNjAwNGQxNjY0YTY3ODI5N2UxODk0M2M2NmY4Y2Q2ODJiNDJkNDqAAn1xAS4=\n','2012-05-21 19:50:58'),('d588298920bbe41b16ba73a0dd2d6f2a','OGIzMmE3NTU0NTViODBhYWEwZGNhZTlkMDkyZWE2MDAwN2FhYTgwNTqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQSKAQN1Lg==\n','2012-03-27 19:14:27');
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_site`
--
DROP TABLE IF EXISTS `django_site`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_site` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`domain` varchar(100) NOT NULL,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
2012-05-07 23:53:12 +00:00
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_site`
--
LOCK TABLES `django_site` WRITE;
/*!40000 ALTER TABLE `django_site` DISABLE KEYS */;
INSERT INTO `django_site` VALUES (1,'unglue.it','unglue.it'),(2,'please.unglueit.com','unglue.it development'),(3,'localhost:8000','unglue.it local development'),(4,'ry-dev.unglueit.com','ry-dev development'),(5,'just.unglue.it','unglue.it staging');
/*!40000 ALTER TABLE `django_site` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `djcelery_crontabschedule`
--
DROP TABLE IF EXISTS `djcelery_crontabschedule`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `djcelery_crontabschedule` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`minute` varchar(64) NOT NULL DEFAULT '*',
`hour` varchar(64) NOT NULL DEFAULT '*',
`day_of_week` varchar(64) NOT NULL DEFAULT '*',
`day_of_month` varchar(64) NOT NULL,
`month_of_year` varchar(64) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `djcelery_crontabschedule`
--
LOCK TABLES `djcelery_crontabschedule` WRITE;
/*!40000 ALTER TABLE `djcelery_crontabschedule` DISABLE KEYS */;
/*!40000 ALTER TABLE `djcelery_crontabschedule` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `djcelery_intervalschedule`
--
DROP TABLE IF EXISTS `djcelery_intervalschedule`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `djcelery_intervalschedule` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`every` int(11) NOT NULL,
`period` varchar(24) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `djcelery_intervalschedule`
--
LOCK TABLES `djcelery_intervalschedule` WRITE;
/*!40000 ALTER TABLE `djcelery_intervalschedule` DISABLE KEYS */;
/*!40000 ALTER TABLE `djcelery_intervalschedule` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `djcelery_periodictask`
--
DROP TABLE IF EXISTS `djcelery_periodictask`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `djcelery_periodictask` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
`task` varchar(200) NOT NULL,
`interval_id` int(11) DEFAULT NULL,
`crontab_id` int(11) DEFAULT NULL,
`args` longtext NOT NULL,
`kwargs` longtext NOT NULL,
`queue` varchar(200) DEFAULT NULL,
`exchange` varchar(200) DEFAULT NULL,
`routing_key` varchar(200) DEFAULT NULL,
`expires` datetime DEFAULT NULL,
`enabled` tinyint(1) NOT NULL DEFAULT '1',
`last_run_at` datetime DEFAULT NULL,
`total_run_count` int(10) unsigned NOT NULL DEFAULT '0',
`date_changed` datetime NOT NULL,
`description` longtext NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `djcelery_periodictask_17d2d99d` (`interval_id`),
KEY `djcelery_periodictask_7aa5fda` (`crontab_id`),
CONSTRAINT `crontab_id_refs_id_1400a18c` FOREIGN KEY (`crontab_id`) REFERENCES `djcelery_crontabschedule` (`id`),
CONSTRAINT `interval_id_refs_id_dfabcb7` FOREIGN KEY (`interval_id`) REFERENCES `djcelery_intervalschedule` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `djcelery_periodictask`
--
LOCK TABLES `djcelery_periodictask` WRITE;
/*!40000 ALTER TABLE `djcelery_periodictask` DISABLE KEYS */;
/*!40000 ALTER TABLE `djcelery_periodictask` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `djcelery_periodictasks`
--
DROP TABLE IF EXISTS `djcelery_periodictasks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `djcelery_periodictasks` (
`ident` smallint(6) NOT NULL DEFAULT '1',
`last_update` datetime NOT NULL,
PRIMARY KEY (`ident`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `djcelery_periodictasks`
--
LOCK TABLES `djcelery_periodictasks` WRITE;
/*!40000 ALTER TABLE `djcelery_periodictasks` DISABLE KEYS */;
/*!40000 ALTER TABLE `djcelery_periodictasks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `djcelery_taskstate`
--
DROP TABLE IF EXISTS `djcelery_taskstate`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `djcelery_taskstate` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`state` varchar(64) NOT NULL,
`task_id` varchar(36) NOT NULL,
`name` varchar(200) DEFAULT NULL,
`tstamp` datetime NOT NULL,
`args` longtext,
`kwargs` longtext,
`eta` datetime DEFAULT NULL,
`expires` datetime DEFAULT NULL,
`result` longtext,
`traceback` longtext,
`runtime` double DEFAULT NULL,
`retries` int(11) NOT NULL DEFAULT '0',
`worker_id` int(11) DEFAULT NULL,
`hidden` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `task_id` (`task_id`),
KEY `djcelery_taskstate_355bfc27` (`state`),
KEY `djcelery_taskstate_52094d6e` (`name`),
KEY `djcelery_taskstate_f459b00` (`tstamp`),
KEY `djcelery_taskstate_20fc5b84` (`worker_id`),
KEY `djcelery_taskstate_c91f1bf` (`hidden`),
CONSTRAINT `worker_id_refs_id_4e3453a` FOREIGN KEY (`worker_id`) REFERENCES `djcelery_workerstate` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `djcelery_taskstate`
--
LOCK TABLES `djcelery_taskstate` WRITE;
/*!40000 ALTER TABLE `djcelery_taskstate` DISABLE KEYS */;
/*!40000 ALTER TABLE `djcelery_taskstate` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `djcelery_workerstate`
--
DROP TABLE IF EXISTS `djcelery_workerstate`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `djcelery_workerstate` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`hostname` varchar(255) NOT NULL,
`last_heartbeat` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `hostname` (`hostname`),
KEY `djcelery_workerstate_1475381c` (`last_heartbeat`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `djcelery_workerstate`
--
LOCK TABLES `djcelery_workerstate` WRITE;
/*!40000 ALTER TABLE `djcelery_workerstate` DISABLE KEYS */;
/*!40000 ALTER TABLE `djcelery_workerstate` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `djkombu_message`
--
DROP TABLE IF EXISTS `djkombu_message`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `djkombu_message` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`visible` tinyint(1) NOT NULL,
`sent_at` datetime DEFAULT NULL,
`payload` longtext NOT NULL,
`queue_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `djkombu_message_16b2708a` (`visible`),
KEY `djkombu_message_774871ae` (`sent_at`),
KEY `djkombu_message_1e72d6b8` (`queue_id`),
CONSTRAINT `queue_id_refs_id_13f7812d` FOREIGN KEY (`queue_id`) REFERENCES `djkombu_queue` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `djkombu_message`
--
LOCK TABLES `djkombu_message` WRITE;
/*!40000 ALTER TABLE `djkombu_message` DISABLE KEYS */;
INSERT INTO `djkombu_message` VALUES (1,1,'2016-04-21 12:52:01','{\"body\": \"gAJ9cQEoVQdleHBpcmVzcQJOVQN1dGNxA4hVBGFyZ3NxBGNkamFuZ28uZGIubW9kZWxzLmJhc2UKbW9kZWxfdW5waWNrbGUKcQVYBAAAAGNvcmVxBlULVXNlclByb2ZpbGVxB4ZdY2RqYW5nby5kYi5tb2RlbHMuYmFzZQpzaW1wbGVfY2xhc3NfZmFjdG9yeQpxCIdScQl9cQooVRVnb29kcmVhZHNfYXV0aF9zZWNyZXRxC05VB3VzZXJfaWRxDIoBBlUTZ29vZHJlYWRzX3VzZXJfbmFtZXENTlUHY3JlYXRlZHEOY2RhdGV0aW1lCmRhdGV0aW1lCnEPVQoH4AQVDDQBBRsLhVJxEFUNYXZhdGFyX3NvdXJjZXERSwRVB3RhZ2xpbmVxElgAAAAAVQtfdXNlcl9jYWNoZXETaAVYBAAAAGF1dGhxFFUEVXNlcnEVhl1oCIdScRZ9cRcoVQh1c2VybmFtZXEYVRBSaWdodHNhdFVuZ2x1ZWl0cRlVCmZpcnN0X25hbWVxGlgAAAAAVQlsYXN0X25hbWVxG1gAAAAAVQ5fcHJvZmlsZV9jYWNoZXEcaAlVCWlzX2FjdGl2ZXEdiFUGX3N0YXRlcR5jZGphbmdvLmRiLm1vZGVscy5iYXNlCk1vZGVsU3RhdGUKcR8pgXEgfXEhKFUGYWRkaW5ncSKJVQJkYnEjVQdkZWZhdWx0cSR1YlUNX2NyZWRpdF9jYWNoZXElaAVYBwAAAHBheW1lbnRxJlUGQ3JlZGl0cSeGXWgIh1JxKH1xKShoDIoBBlUHcGxlZGdlZHEqY2RlY2ltYWwKRGVjaW1hbApxK1UEMC4wMIVScSxoHmgfKYFxLX1xLihoIoloI2gkdWJVAmlkcS+KAQZVDWxhc3RfYWN0aXZpdHlxMGgPVQoH4AQVDDQBBReDhVJxMVUHYmFsYW5jZXEyaCtVBDAuMDCFUnEzaBNoFnViVQVlbWFpbHE0VRJyaWdodHNAZ2x1ZWphci5jb21xNVUMaXNfc3VwZXJ1c2VycTaJVQhpc19zdGFmZnE3iVUKbGFzdF9sb2dpbnE4aA9VCgfgBBUMNAEFE7+FUnE5VQ9fd2lzaGxpc3RfY2FjaGVxOmgFWAQAAABjb3JlcTtVCFdpc2hsaXN0cTyGXWgIh1JxPX1xPihoDIoBBmgTaBZoHmgfKYFxP31xQChoIoloI2gkdWJoL4oBBmgOaA9VCgfgBBUMNAEFGR2FUnFBdWJVCHBhc3N3b3JkcUJYAAAAAGgvigEGVQtkYXRlX2pvaW5lZHFDaA9VCgfgBBUMNAEFE+GFUnFEdWJoHmgfKYFxRX1xRihoIoloI2gkdWJVCnR3aXR0ZXJfaWRxR1gAAAAAVQdwaWNfdXJscUhYAAAAAFURZ29vZHJlYWRzX3VzZXJfaWRxSU5VDGtpbmRsZV9lbWFpbHFKWAAAAABVE2dvb2RyZWFkc191c2VyX2xpbmtxS05VC2ZhY2Vib29rX2lkcUxOVQ9saWJyYXJ5dGhpbmdfaWRxTVgAAAAAVQhob21lX3VybHFOWAAAAABVFGdvb2RyZWFkc19hdXRoX3Rva2VucU9OaC+KAQZ1YoVxUFUFY2hvcmRxUU5VCWNhbGxiYWNrc3FSTlUIZXJyYmFja3NxU05VB3Rhc2tzZXRxVE5oL1UkYTgzOWVkMmUtYjg1MS00ZDE0LWIzMDUtNWRmMDllZGRkNzdhcVVVB3JldHJpZXNxVksAVQR0YXNrcVdVJHJlZ2x1aXQuY29yZS50YXNrcy5tbF9zdWJzY3JpYmVfdGFza3FYVQl0aW1lbGltaXRxWU5OhlUDZXRhcVpOVQZrd2FyZ3NxW31xXHUu\", \"headers\": {}, \"content-type\": \"application/x-python-serialize\", \"properties\": {\"body_encoding\": \"base64\", \"correlation_id\": \"a839ed2e-b851-4d14-b305-5df09eddd77a\", \"reply_to\": \"ae4b079a-eb04-391a-84f4-74bb685d562e\", \"delivery_info\": {\"priority\": 0, \"routing_key\": \"celery\", \"exchange\": \"celery\"}, \"delivery_mode\": 2, \"delivery_tag\": \"ff70da6e-82b1-40c5-a582-e8812aef8b68\"}, \"content-encoding\": \"binary\"}',1),(2,1,'2016-04-21 12:53:54','{\"body\": \"gAJ9cQEoVQdleHBpcmVzcQJOVQN1dGNxA4hVBGFyZ3NxBF1xBVUFY2hvcmRxBk5VCWNhbGxiYWNrc3EHTlUIZXJyYmFja3NxCE5VB3Rhc2tzZXRxCU5VAmlkcQpVJDdmZmVjNWNmLTNkMWEtNDBjOS05ZDFlLWViZTczOGRmNGM1MnELVQdyZXRyaWVzcQxLAFUEdGFza3ENVSVyZWdsdWl0LmNvcmUudGFza3MuZW1pdF9ub3RpZmljYXRpb25zcQ5VCXRpbWVsaW1pdHEPTk6GVQNldGFxEE5VBmt3YXJnc3ERfXESdS4=\", \"headers\": {}, \"content-type\": \"application/x-python-serialize\", \"properties\": {\"body_encoding\": \"base64\", \"correlation_id\": \"7ffec5cf-3d1a-40c9-9d1e-ebe738df4c52\", \"reply_to\": \"b4c6b5fe-2354-30ec-9a2a-658503c69395\", \"delivery_info\": {\"priority\": 0, \"routing_key\": \"celery\", \"exchange\": \"celery\"}, \"delivery_mode\": 2, \"delivery_tag\": \"7084743a-04ab-4631-93dd-b030a58b4ca0\"}, \"content-encoding\": \"binary\"}',1),(3,1,'2016-04-21 12:53:55','{\"body\": \"gAJ9cQEoVQdleHBpcmVzcQJOVQN1dGNxA4hVBGFyZ3NxBF1xBVUFY2hvcmRxBk5VCWNhbGxiYWNrc3EHTlUIZXJyYmFja3NxCE5VB3Rhc2tzZXRxCU5VAmlkcQpVJDQ5MDRhMWI3LWIzZWYtNDU2Yi1iYzFlLTAwNDFmYTFiNGNhNHELVQdyZXRyaWVzcQxLAFUEdGFza3ENVSVyZWdsdWl0LmNvcmUudGFza3MuZW1pdF9ub3RpZmljYXRpb25zcQ5VCXRpbWVsaW1pdHEPTk6GVQNldGFxEE5VBmt3YXJnc3ERfXESdS4=\", \"headers\": {}, \"content-type\": \"application/x-python-serialize\", \"properties\": {\"body_encoding\": \"base64\", \"correlation_id\": \"4904a1b7-b3ef-456b-bc1e-0041fa1b4ca4\", \"reply_to\": \"b4c6b5fe-2354-30ec-9a2a-658503c69395\", \"delivery_info\": {\"priority\": 0, \"routing_key\": \"celery\", \"exchange\": \"celery\"}, \"delivery_mode\": 2, \"delivery_tag\": \"190d0d61-a656-45f7-bee5-1c5edae68e7f\"}, \"content-encoding\": \"binary\"}',1),(4,1,'2016-04-21 12:53:56','{\"body\": \"gAJ9cQEoVQdleHBpcmVzcQJOVQN1dGNxA4hVB
/*!40000 ALTER TABLE `djkombu_message` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `djkombu_queue`
--
DROP TABLE IF EXISTS `djkombu_queue`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `djkombu_queue` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `djkombu_queue`
--
LOCK TABLES `djkombu_queue` WRITE;
/*!40000 ALTER TABLE `djkombu_queue` DISABLE KEYS */;
INSERT INTO `djkombu_queue` VALUES (1,'celery');
/*!40000 ALTER TABLE `djkombu_queue` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `email_change_emailchangerequest`
--
DROP TABLE IF EXISTS `email_change_emailchangerequest`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_change_emailchangerequest` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`verification_key` varchar(40) NOT NULL,
`email` varchar(75) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `user_id_refs_id_6cd2578d` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `email_change_emailchangerequest`
--
LOCK TABLES `email_change_emailchangerequest` WRITE;
/*!40000 ALTER TABLE `email_change_emailchangerequest` DISABLE KEYS */;
/*!40000 ALTER TABLE `email_change_emailchangerequest` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `libraryauth_block`
--
DROP TABLE IF EXISTS `libraryauth_block`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `libraryauth_block` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`library_id` int(11) NOT NULL,
`lower` int(10) unsigned NOT NULL,
`upper` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `lower` (`lower`),
KEY `libraryauth_block_98518bb8` (`library_id`),
KEY `libraryauth_block_d8292f08` (`upper`),
CONSTRAINT `library_id_refs_id_903f7a13` FOREIGN KEY (`library_id`) REFERENCES `libraryauth_library` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `libraryauth_block`
--
LOCK TABLES `libraryauth_block` WRITE;
/*!40000 ALTER TABLE `libraryauth_block` DISABLE KEYS */;
/*!40000 ALTER TABLE `libraryauth_block` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `libraryauth_cardpattern`
--
DROP TABLE IF EXISTS `libraryauth_cardpattern`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `libraryauth_cardpattern` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`library_id` int(11) NOT NULL,
`pattern` varchar(20) NOT NULL,
`checksum` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `libraryauth_cardpattern_98518bb8` (`library_id`),
CONSTRAINT `library_id_refs_id_482f9c77` FOREIGN KEY (`library_id`) REFERENCES `libraryauth_library` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `libraryauth_cardpattern`
--
LOCK TABLES `libraryauth_cardpattern` WRITE;
/*!40000 ALTER TABLE `libraryauth_cardpattern` DISABLE KEYS */;
/*!40000 ALTER TABLE `libraryauth_cardpattern` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `libraryauth_emailpattern`
--
DROP TABLE IF EXISTS `libraryauth_emailpattern`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `libraryauth_emailpattern` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`library_id` int(11) NOT NULL,
`pattern` varchar(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `libraryauth_emailpattern_98518bb8` (`library_id`),
CONSTRAINT `library_id_refs_id_ecbdc778` FOREIGN KEY (`library_id`) REFERENCES `libraryauth_library` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `libraryauth_emailpattern`
--
LOCK TABLES `libraryauth_emailpattern` WRITE;
/*!40000 ALTER TABLE `libraryauth_emailpattern` DISABLE KEYS */;
INSERT INTO `libraryauth_emailpattern` VALUES (1,1,'@example.org');
/*!40000 ALTER TABLE `libraryauth_emailpattern` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `libraryauth_library`
--
DROP TABLE IF EXISTS `libraryauth_library`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `libraryauth_library` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) DEFAULT NULL,
`backend` varchar(10) NOT NULL,
`name` varchar(80) NOT NULL,
`approved` tinyint(1) NOT NULL,
`owner_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
UNIQUE KEY `group_id` (`group_id`),
KEY `libraryauth_library_cb902d83` (`owner_id`),
CONSTRAINT `group_id_refs_id_780edae5` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `owner_id_refs_id_4e6a8978` FOREIGN KEY (`owner_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `user_id_refs_id_4e6a8978` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `libraryauth_library`
--
LOCK TABLES `libraryauth_library` WRITE;
/*!40000 ALTER TABLE `libraryauth_library` DISABLE KEYS */;
INSERT INTO `libraryauth_library` VALUES (1,7,1,'email','RY Library',0,5);
/*!40000 ALTER TABLE `libraryauth_library` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `libraryauth_libraryuser`
--
DROP TABLE IF EXISTS `libraryauth_libraryuser`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `libraryauth_libraryuser` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`library_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`credential` varchar(30) DEFAULT NULL,
`date_modified` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `libraryauth_libraryuser_98518bb8` (`library_id`),
KEY `libraryauth_libraryuser_6340c63c` (`user_id`),
CONSTRAINT `library_id_refs_id_a4f6753c` FOREIGN KEY (`library_id`) REFERENCES `libraryauth_library` (`id`),
CONSTRAINT `user_id_refs_id_807a7931` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `libraryauth_libraryuser`
--
LOCK TABLES `libraryauth_libraryuser` WRITE;
/*!40000 ALTER TABLE `libraryauth_libraryuser` DISABLE KEYS */;
INSERT INTO `libraryauth_libraryuser` VALUES (1,1,7,NULL,'2016-04-21 12:54:55'),(2,1,5,NULL,'2016-04-21 12:54:55');
/*!40000 ALTER TABLE `libraryauth_libraryuser` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `marc_marcrecord`
--
DROP TABLE IF EXISTS `marc_marcrecord`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `marc_marcrecord` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`guts` longtext NOT NULL,
`edition_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `marc_marcrecord_ae2379d4` (`edition_id`),
KEY `marc_marcrecord_6340c63c` (`user_id`),
CONSTRAINT `edition_id_refs_id_e161d6b6` FOREIGN KEY (`edition_id`) REFERENCES `core_edition` (`id`),
CONSTRAINT `user_id_refs_id_f4ff367d` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `marc_marcrecord`
--
LOCK TABLES `marc_marcrecord` WRITE;
/*!40000 ALTER TABLE `marc_marcrecord` DISABLE KEYS */;
/*!40000 ALTER TABLE `marc_marcrecord` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notification_notice`
--
DROP TABLE IF EXISTS `notification_notice`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notification_notice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`recipient_id` int(11) NOT NULL,
`sender_id` int(11) DEFAULT NULL,
`message` longtext NOT NULL,
`notice_type_id` int(11) NOT NULL,
`added` datetime NOT NULL,
`unseen` tinyint(1) NOT NULL,
`archived` tinyint(1) NOT NULL,
`on_site` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `notification_notice_32f69dc` (`recipient_id`),
KEY `notification_notice_6fe0a617` (`sender_id`),
KEY `notification_notice_d734034` (`notice_type_id`),
CONSTRAINT `notice_type_id_refs_id_212d5727` FOREIGN KEY (`notice_type_id`) REFERENCES `notification_noticetype` (`id`),
CONSTRAINT `recipient_id_refs_id_690c45d1` FOREIGN KEY (`recipient_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `sender_id_refs_id_690c45d1` FOREIGN KEY (`sender_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notification_notice`
--
LOCK TABLES `notification_notice` WRITE;
/*!40000 ALTER TABLE `notification_notice` DISABLE KEYS */;
INSERT INTO `notification_notice` VALUES (1,1,NULL,' \n \n <div class=\"comments row1\">\n <div class=\"nonavatar\">\n <div class=\"image\">\n <a href=\"/work/2003/?tab=2\"><img src=\"http://bks0.books.google.com/books?id=Lx-hrmLCGHkC&amp;printsec=frontcover&amp;img=1&amp;zoom=1\" alt=\"cover image\" /></a>\n </div>\n <span><a href=\"/supporter/rdhyee/\">Raymond Yee</a> on <a href=\"/work/2003/?tab=2\">Bach</a></span><br />\n \n <span class=\"text\">fine book</span>\n </div>\n \n <div class=\"avatar\">\n <a href=\"/supporter/rdhyee/\">\n \n <img class=\"user-avatar\" src=\"/static/images/header/avatar.png\" height=\"50\" width=\"50\" alt=\"Generic Ungluer Avatar\" title=\"Ungluer\" />\n \n </a>\n </div>\n </div>\n \n \n',1,'2012-03-27 16:53:46',1,0,1),(2,1,NULL,' \n \n <div class=\"comments row1\">\n <div class=\"nonavatar\">\n <div class=\"image\">\n <a href=\"/work/2003/?tab=2\"><img src=\"http://bks2.books.google.com/books?id=Lx-hrmLCGHkC&amp;printsec=frontcover&amp;img=1&amp;zoom=1\" alt=\"cover image\" /></a>\n </div>\n <span><a href=\"/supporter/rdhyee/\">Raymond Yee</a> on <a href=\"/work/2003/?tab=2\">Bach</a></span><br />\n \n <span class=\"text\">excellent book</span>\n </div>\n \n <div class=\"avatar\">\n <a href=\"/supporter/rdhyee/\">\n \n <img class=\"user-avatar\" src=\"/static/images/header/avatar.png\" height=\"50\" width=\"50\" alt=\"Generic Ungluer Avatar\" title=\"Ungluer\" />\n \n </a>\n </div>\n </div>\n \n \n',1,'2012-03-27 16:54:37',1,0,1),(3,14,NULL,' \n \n <div class=\"comments row1\">\n <div class=\"nonavatar\">\n <div class=\"image\">\n <a href=\"/work/2003/?tab=2\"><img src=\"http://bks1.books.google.com/books?id=Lx-hrmLCGHkC&amp;printsec=frontcover&amp;img=1&amp;zoom=1\" alt=\"cover image\" /></a>\n </div>\n <span><a href=\"/supporter/rdhyee/\">Raymond Yee</a> on <a href=\"/work/2003/?tab=2\">Bach</a></span><br />\n \n <span class=\"text\">excellent book</span>\n </div>\n \n <div class=\"avatar\">\n <a href=\"/supporter/rdhyee/\">\n \n <img class=\"user-avatar\" src=\"/static/images/header/avatar.png\" height=\"50\" width=\"50\" alt=\"Generic Ungluer Avatar\" title=\"Ungluer\" />\n \n </a>\n </div>\n </div>\n \n \n',1,'2012-03-27 16:54:38',1,0,1),(4,466,NULL,' \n \n <div class=\"comments row1\">\n <div class=\"nonavatar\">\n <div class=\"image\">\n <a href=\"/work/79519/?tab=2\"><img src=\"http://bks5.books.google.com/books?id=QaYbM0Fvch8C&amp;printsec=frontcover&amp;img=1&amp;zoom=1\" alt=\"cover image\" /></a>\n </div>\n <span><a href=\"/supporter/rdhyee4/\">rdhyee4</a> on <a href=\"/work/79519/?tab=2\">I Am America (And So Can You!)</a></span><br />\n \n <span class=\"text\">go, Stephen</span>\n </div>\n \n <div class=\"avatar\">\n <a href=\"/supporter/rdhyee4/\">\n \n <img class=\"user-avatar\" src=\"/static/images/header/avatar.png\" height=\"50\" width=\"50\" alt=\"Generic Ungluer Avatar\" title=\"Ungluer\" />\n \n </a>\n </div>\n </div>\n \n \n',1,'2012-03-27 16:59:48',1,0,1),(5,466,NULL,' \n \n <div class=\"comments row1\">\n <div class=\"nonavatar\">\n <div class=\"image\">\n
/*!40000 ALTER TABLE `notification_notice` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notification_noticequeuebatch`
--
DROP TABLE IF EXISTS `notification_noticequeuebatch`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notification_noticequeuebatch` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pickled_data` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notification_noticequeuebatch`
--
LOCK TABLES `notification_noticequeuebatch` WRITE;
/*!40000 ALTER TABLE `notification_noticequeuebatch` DISABLE KEYS */;
INSERT INTO `notification_noticequeuebatch` VALUES (3,'KGxwMQooTDNMClMncmlnaHRzX2hvbGRlcl9jbGFpbScKcDIKKGRwMwpTJ2NsYWltJwpwNApjZGph\nbmdvLmRiLm1vZGVscy5iYXNlCm1vZGVsX3VucGlja2xlCnA1CigoVmNvcmUKcDYKUydDbGFpbScK\ncDcKdChsY2RqYW5nby5kYi5tb2RlbHMuYmFzZQpzaW1wbGVfY2xhc3NfZmFjdG9yeQpwOAp0UnA5\nCihkcDEwClMnc3RhdHVzJwpwMTEKUydwZW5kaW5nJwpwMTIKc1MndXNlcl9pZCcKcDEzCkwzTApz\nUydjcmVhdGVkJwpwMTQKY2RhdGV0aW1lCmRhdGV0aW1lCnAxNQooUydceDA3XHhlMFx4MDRceDE1\nXHgwYzRceDAxXHgwNVxuXHhkNScKdFJwMTYKc1MnX3VzZXJfY2FjaGUnCnAxNwpnNQooKFZhdXRo\nCnAxOApTJ1VzZXInCnAxOQp0KGxnOAp0UnAyMAooZHAyMQpTJ3VzZXJuYW1lJwpwMjIKVnJkaHll\nZXRlc3QKcDIzCnNTJ2ZpcnN0X25hbWUnCnAyNApWCnNTJ2xhc3RfbmFtZScKcDI1ClYKc1MnaXNf\nYWN0aXZlJwpwMjYKSTAxCnNTJ19zdGF0ZScKcDI3CmNjb3B5X3JlZwpfcmVjb25zdHJ1Y3Rvcgpw\nMjgKKGNkamFuZ28uZGIubW9kZWxzLmJhc2UKTW9kZWxTdGF0ZQpwMjkKY19fYnVpbHRpbl9fCm9i\namVjdApwMzAKTnRScDMxCihkcDMyClMnYWRkaW5nJwpwMzMKSTAwCnNTJ2RiJwpwMzQKUydkZWZh\ndWx0JwpwMzUKc2JzUydlbWFpbCcKcDM2ClZyYXltb25kLnllZUBkYXRhdW5ib3VuZC5jb20KcDM3\nCnNTJ2lzX3N1cGVydXNlcicKcDM4CkkwMApzUydpc19zdGFmZicKcDM5CkkwMApzUydsYXN0X2xv\nZ2luJwpwNDAKZzE1CihTJ1x4MDdceGRjXHgwM1xyXHgxM1x4MGVceDFiXHgwMFx4MDBceDAwJwp0\nUnA0MQpzUydwYXNzd29yZCcKcDQyClZzaGExJDFiZDM3JDAyYjk5OTEzZjYwMmE4MGM1ZjgxMDQ0\nM2NlODJkNzNmMzM2YzI2ZDMKcDQzCnNTJ2lkJwpwNDQKTDNMCnNTJ2RhdGVfam9pbmVkJwpwNDUK\nZzE1CihTJ1x4MDdceGRjXHgwM1xyXHgxM1x4MGIgXHgwMFx4MDBceDAwJwp0UnA0NgpzYnNnMjcK\nZzI4CihnMjkKZzMwCk50UnA0NwooZHA0OApnMzMKSTAwCnNnMzQKZzM1CnNic1MncmlnaHRzX2hv\nbGRlcl9pZCcKcDQ5CkwxTApzUydfcmlnaHRzX2hvbGRlcl9jYWNoZScKcDUwCmc1CigoVmNvcmUK\ncDUxClMnUmlnaHRzSG9sZGVyJwpwNTIKdChsZzgKdFJwNTMKKGRwNTQKUydjYW5fc2VsbCcKcDU1\nCkkwMQpzZzE0CmcxNQooUydceDA3XHhlMFx4MDRceDE1XHgwYzRceDAwXHgwMFx4MDBceDAwJwp0\nUnA1NgpzZzI3CmcyOAooZzI5CmczMApOdFJwNTcKKGRwNTgKZzMzCkkwMApzZzM0CmczNQpzYnNn\nNDQKTDFMCnNTJ19vd25lcl9jYWNoZScKcDU5Cmc1CigoZzE4CmcxOQp0KGxnOAp0UnA2MAooZHA2\nMQpnMjIKVnJkaHllZXRlc3QKcDYyCnNnMjQKVgpzZzI1ClYKc2cyNgpJMDEKc2cyNwpnMjgKKGcy\nOQpnMzAKTnRScDYzCihkcDY0CmczMwpJMDAKc2czNApnMzUKc2JzZzM2ClZyYXltb25kLnllZUBk\nYXRhdW5ib3VuZC5jb20KcDY1CnNnMzgKSTAwCnNnMzkKSTAwCnNnNDAKZzE1CihTJ1x4MDdceGRj\nXHgwM1xyXHgxM1x4MGVceDFiXHgwMFx4MDBceDAwJwp0UnA2NgpzZzQyClZzaGExJDFiZDM3JDAy\nYjk5OTEzZjYwMmE4MGM1ZjgxMDQ0M2NlODJkNzNmMzM2YzI2ZDMKcDY3CnNnNDQKTDNMCnNnNDUK\nZzE1CihTJ1x4MDdceGRjXHgwM1xyXHgxM1x4MGIgXHgwMFx4MDBceDAwJwp0UnA2OApzYnNnMzYK\nVnJheW1vbmQueWVlQGRhdGF1bmJvdW5kLmNvbQpwNjkKc1MncmlnaHRzX2hvbGRlcl9uYW1lJwpw\nNzAKVlJZIEluYwpwNzEKc1Mnb3duZXJfaWQnCnA3MgpMM0wKc2JzZzQ0CkwxTApzUyd3b3JrX2lk\nJwpwNzMKTDUyTApzYnNJMDEKTnRwNzQKYShMNkwKZzIKZzMKSTAxCk50cDc1CmEu\n'),(4,'KGxwMQooTDNMClMncmlnaHRzX2hvbGRlcl9jbGFpbScKcDIKKGRwMwpTJ2NsYWltJwpwNApjZGph\nbmdvLmRiLm1vZGVscy5iYXNlCm1vZGVsX3VucGlja2xlCnA1CigoVmNvcmUKcDYKUydDbGFpbScK\ncDcKdChsY2RqYW5nby5kYi5tb2RlbHMuYmFzZQpzaW1wbGVfY2xhc3NfZmFjdG9yeQpwOAp0UnA5\nCihkcDEwClMnc3RhdHVzJwpwMTEKUydhY3RpdmUnCnAxMgpzUyd1c2VyX2lkJwpwMTMKTDNMCnNT\nJ2NyZWF0ZWQnCnAxNApjZGF0ZXRpbWUKZGF0ZXRpbWUKcDE1CihTJ1x4MDdceGUwXHgwNFx4MTVc\neDBjNFx4MDFceDA1XG5ceGQ1Jwp0UnAxNgpzUydfd29ya19jYWNoZScKcDE3Cmc1CigoVmNvcmUK\ncDE4ClMnV29yaycKcDE5CnQobGc4CnRScDIwCihkcDIxClMnc2VsZWN0ZWRfZWRpdGlvbl9pZCcK\ncDIyCk5zUydfbGFzdF9jYW1wYWlnbicKcDIzCk5zUydsYW5ndWFnZScKcDI0ClZlbgpwMjUKc1Mn\ndGl0bGUnCnAyNgpWUHJvIFdlYiAyLjAgTWFzaHVwcwpwMjcKc1Mnb3BlbmxpYnJhcnlfbG9va3Vw\nJwpwMjgKTnNnMTQKZzE1CihTJ1x4MDdceGUwXHgwNFx4MTVceDBjNFx4MDFceDAwXHgwMFx4MDAn\nCnRScDI5CnNTJ19zdGF0ZScKcDMwCmNjb3B5X3JlZwpfcmVjb25zdHJ1Y3RvcgpwMzEKKGNkamFu\nZ28uZGIubW9kZWxzLmJhc2UKTW9kZWxTdGF0ZQpwMzIKY19fYnVpbHRpbl9fCm9iamVjdApwMzMK\nTnRScDM0CihkcDM1ClMnYWRkaW5nJwpwMzYKSTAwCnNTJ2RiJwpwMzcKUydkZWZhdWx0JwpwMzgK\nc2JzUydwdWJsaWNhdGlvbl9yYW5nZScKcDM5Ck5zUydpc19mcmVlJwpwNDAKSTAwCnNTJ2ZlYXR1\ncmVkJwpwNDEKTnNTJ251bV93aXNoZXMnCnA0MgpMMEwKc1MnaWQnCnA0MwpMNTJMCnNTJ2Rlc2Ny\naXB0aW9uJwpwNDQKVgpzYnNTJ191c2VyX2NhY2hlJwpwNDUKZzUKKChWYXV0aApwNDYKUydVc2Vy\nJwpwNDcKdChsZzgKdFJwNDgKKGRwNDkKUyd1c2VybmFtZScKcDUwClZyZGh5ZWV0ZXN0CnA1MQpz\nUydmaXJzdF9uYW1lJwpwNTIKVgpzUydsYXN0X25hbWUnCnA1MwpWCnNTJ2lzX2FjdGl2ZScKcDU0\nCkkwMQpzZzMwCmczMQooZzMyCmczMwpOdFJwNTUKKGRwNTYKZzM2CkkwMApzZzM3CmczOApzYnNT\nJ2VtYWlsJwpwNTcKVnJheW1vbmQueWVlQGRhdGF1bmJvdW5kLmNvbQpwNTgKc1MnaXN
/*!40000 ALTER TABLE `notification_noticequeuebatch` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notification_noticesetting`
--
DROP TABLE IF EXISTS `notification_noticesetting`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notification_noticesetting` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`notice_type_id` int(11) NOT NULL,
`medium` varchar(1) NOT NULL,
`send` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`notice_type_id`,`medium`),
KEY `notification_noticesetting_403f60f` (`user_id`),
KEY `notification_noticesetting_d734034` (`notice_type_id`),
CONSTRAINT `notice_type_id_refs_id_1024de5c` FOREIGN KEY (`notice_type_id`) REFERENCES `notification_noticetype` (`id`),
CONSTRAINT `user_id_refs_id_8c53966` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notification_noticesetting`
--
LOCK TABLES `notification_noticesetting` WRITE;
/*!40000 ALTER TABLE `notification_noticesetting` DISABLE KEYS */;
INSERT INTO `notification_noticesetting` VALUES (1,1,1,'1',1),(2,14,1,'1',1),(3,466,1,'1',1);
/*!40000 ALTER TABLE `notification_noticesetting` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notification_noticetype`
--
DROP TABLE IF EXISTS `notification_noticetype`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notification_noticetype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`label` varchar(40) NOT NULL,
`display` varchar(50) NOT NULL,
`description` varchar(100) NOT NULL,
`default` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notification_noticetype`
--
LOCK TABLES `notification_noticetype` WRITE;
/*!40000 ALTER TABLE `notification_noticetype` DISABLE KEYS */;
INSERT INTO `notification_noticetype` VALUES (1,'wishlist_comment','Book List Comment','A comment has been received on one of your books.',1),(2,'comment_on_commented','Comment on Commented Work','A comment has been received on a book that you\'ve commented on.',2),(3,'wishlist_work_claimed','Rights Holder is Active','A rights holder has shown up for a book that you\'ve faved.',1),(4,'wishlist_active','New Campaign','A book you\'ve favorited has a newly launched campaign.',2),(5,'wishlist_near_target','Campaign Near Target','A book you want is near its ungluing target.',2),(6,'wishlist_near_deadline','Campaign Near Deadline','A book you want is almost out of time.',2),(7,'wishlist_premium_limited_supply','Only a Few Premiums Left','A limited edition premium is running out on a book you\'ve faved.',2),(8,'wishlist_successful','Successful Campaign','An ungluing campaign that you have supported or faved has succeeded.',2),(9,'wishlist_unsuccessful','Unsuccessful Campaign','An ungluing campaign that you supported didn\'t succeed this time.',2),(10,'wishlist_updated','Campaign Updated','An ungluing campaign you support has been updated.',1),(11,'wishlist_message','Campaign Communication','You have a private message from unglue.it staff or the rights holder about a book you\'ve faved.',2),(12,'wishlist_price_drop','Campaign Price Drop','An ungluing campaign you\'ve faved has a reduced target.',1),(13,'wishlist_unglued_book_released','Unglued Book!','A book you\'ve faved is now available to be downloaded.',2),(14,'pledge_you_have_pledged','Thanks For Your Pledge!','Your ungluing pledge has been entered.',2),(15,'pledge_status_change','Your Pledge Has Been Modified','Your ungluing pledge has been modified.',2),(16,'pledge_charged','Your Pledge has been Executed','You have contributed to a successful ungluing campaign.',2),(17,'rights_holder_created','Agreement Accepted','You have become a verified Unglue.it rights holder.',2),(18,'rights_holder_claim_approved','Claim Accepted','A claim you\'ve entered has been accepted.',2),(19,'wishlist_official_comment','Book List Comment','The author or publisher, or and Unglue.it staffer, has commented on one of your faves.',2),(20,'pledge_failed','Unable to charge your credit card','A charge to your credit card did not go through.',2),(21,'rights_holder_claim','Claim Entered','A claim has been entered.',2),(22,'wishlist_unsuccessful_amazon','Campaign shut down','An ungluing campaign that you supported had to be shut down due to an Amazon Payments policy change.',2),(23,'pledge_gift_credit','Gift Credit Balance','You have a gift credit balance',2),(24,'new_wisher','New wisher','Someone new has faved a book that you\'re the rightsholder for',2),(25,'account_expiring','Credit Card Expiring Soon','Your credit card is about to expire.',2),(26,'account_expired','Credit Card Has Expired','Your credit card has expired.',2),(27,'account_active','Credit Card Number Updated','Payment method updated.',1),(28,'purchase_complete','Your Purchase is Complete','Your Unglue.it Purchase is Complete.',2),(29,'library_borrow','Library eBook Borrowed.','You\'ve borrowed an ebook through a Library participating in Unglue.it',2),(30,'library_reserve','Library eBook Reserved.','An ebook you\'ve reserved is available.',2),(31,'library_join','New Library User.','A library participating in Unglue.it has added a user',2),(32,'purchase_gift','You have a gift.','An ungluer has given you an ebook.',2),(33,'purchase_got_gift','Your gift was received.','The ebook you sent as a gift has been redeemed.',2),(34,'purchase_gift_waiting','Your gift is waiting.','Please claim your ebook.',2),(35,'purchase_notgot_gift','Your gift wasn\'t received.','The ebook you sent as a gift has not yet been redeemed.',2);
/*!40000 ALTER TABLE `notification_noticetype` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notification_observeditem`
--
DROP TABLE IF EXISTS `notification_observeditem`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notification_observeditem` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`content_type_id` int(11) NOT NULL,
`object_id` int(10) unsigned NOT NULL,
`notice_type_id` int(11) NOT NULL,
`added` datetime NOT NULL,
`signal` longtext NOT NULL,
PRIMARY KEY (`id`),
KEY `notification_observeditem_403f60f` (`user_id`),
KEY `notification_observeditem_1bb8f392` (`content_type_id`),
KEY `notification_observeditem_d734034` (`notice_type_id`),
CONSTRAINT `content_type_id_refs_id_6c21f628` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
CONSTRAINT `notice_type_id_refs_id_4b098f3e` FOREIGN KEY (`notice_type_id`) REFERENCES `notification_noticetype` (`id`),
CONSTRAINT `user_id_refs_id_7555f7d4` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notification_observeditem`
--
LOCK TABLES `notification_observeditem` WRITE;
/*!40000 ALTER TABLE `notification_observeditem` DISABLE KEYS */;
/*!40000 ALTER TABLE `notification_observeditem` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `page_page`
--
DROP TABLE IF EXISTS `page_page`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `page_page` (
`slug` varchar(50) NOT NULL,
`title_en` varchar(256) DEFAULT NULL,
`body_en` longtext,
`public` tinyint(1) NOT NULL,
PRIMARY KEY (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `page_page`
--
LOCK TABLES `page_page` WRITE;
/*!40000 ALTER TABLE `page_page` DISABLE KEYS */;
/*!40000 ALTER TABLE `page_page` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payment_account`
--
DROP TABLE IF EXISTS `payment_account`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host` varchar(32) NOT NULL,
`account_id` varchar(128) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`card_last4` varchar(4) DEFAULT NULL,
`card_type` varchar(32) DEFAULT NULL,
`card_exp_month` int(11) DEFAULT NULL,
`card_exp_year` int(11) DEFAULT NULL,
`card_fingerprint` varchar(32) DEFAULT NULL,
`card_country` varchar(2) DEFAULT NULL,
`date_created` datetime NOT NULL,
`date_modified` datetime NOT NULL,
`date_deactivated` datetime DEFAULT NULL,
`status` varchar(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `payment_account_6340c63c` (`user_id`),
CONSTRAINT `user_id_refs_id_1d3caeed` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payment_account`
--
LOCK TABLES `payment_account` WRITE;
/*!40000 ALTER TABLE `payment_account` DISABLE KEYS */;
INSERT INTO `payment_account` VALUES (1,'stripelib','cus_8JNpuW8RM7KmsW',3,'4242','Visa',1,2018,'rUCVddfMC0GfM3zh','US','2016-04-21 12:53:54','2016-04-21 12:53:54',NULL,'ACTIVE'),(2,'stripelib','cus_8JNq0I7hhz2eXD',7,'4242','Visa',1,2018,'rUCVddfMC0GfM3zh','US','2016-04-21 12:54:58','2016-04-21 12:54:58',NULL,'ACTIVE');
/*!40000 ALTER TABLE `payment_account` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payment_credit`
--
DROP TABLE IF EXISTS `payment_credit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_credit` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`balance` decimal(14,2) NOT NULL,
`pledged` decimal(14,2) NOT NULL,
`last_activity` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `user_id_refs_id_fd312433` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payment_credit`
--
LOCK TABLES `payment_credit` WRITE;
/*!40000 ALTER TABLE `payment_credit` DISABLE KEYS */;
INSERT INTO `payment_credit` VALUES (1,1,0.00,0.00,'2016-04-21 12:51:56'),(2,2,0.00,0.00,'2016-04-21 12:51:56'),(3,3,0.00,0.00,'2016-04-21 12:51:56'),(4,4,0.00,0.00,'2016-04-21 12:51:56'),(5,5,0.00,0.00,'2016-04-21 12:52:00'),(6,6,0.00,0.00,'2016-04-21 12:52:01'),(7,7,0.00,0.00,'2016-04-21 12:54:55');
/*!40000 ALTER TABLE `payment_credit` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payment_creditlog`
--
DROP TABLE IF EXISTS `payment_creditlog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_creditlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`amount` decimal(14,2) NOT NULL,
`timestamp` datetime NOT NULL,
`action` varchar(16) NOT NULL,
`sent` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `payment_creditlog_6340c63c` (`user_id`),
CONSTRAINT `user_id_refs_id_6148e9bd` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payment_creditlog`
--
LOCK TABLES `payment_creditlog` WRITE;
/*!40000 ALTER TABLE `payment_creditlog` DISABLE KEYS */;
/*!40000 ALTER TABLE `payment_creditlog` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payment_paymentresponse`
--
DROP TABLE IF EXISTS `payment_paymentresponse`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_paymentresponse` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`api` varchar(64) NOT NULL,
`correlation_id` varchar(512) DEFAULT NULL,
`timestamp` varchar(128) DEFAULT NULL,
`info` varchar(1024) DEFAULT NULL,
`transaction_id` int(11) NOT NULL,
`status` varchar(32) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `payment_paymentresponse_45d19ab3` (`transaction_id`),
CONSTRAINT `transaction_id_refs_id_1f406d1c` FOREIGN KEY (`transaction_id`) REFERENCES `payment_transaction` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payment_paymentresponse`
--
LOCK TABLES `payment_paymentresponse` WRITE;
/*!40000 ALTER TABLE `payment_paymentresponse` DISABLE KEYS */;
/*!40000 ALTER TABLE `payment_paymentresponse` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payment_receiver`
--
DROP TABLE IF EXISTS `payment_receiver`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_receiver` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(64) NOT NULL,
`amount` decimal(14,2) NOT NULL DEFAULT '0.00',
`currency` varchar(10) NOT NULL,
`status` varchar(64) NOT NULL,
`reason` varchar(64) NOT NULL,
`primary` tinyint(1) NOT NULL DEFAULT '0',
`txn_id` varchar(64) NOT NULL,
`transaction_id` int(11) NOT NULL,
2012-05-07 23:53:12 +00:00
`local_status` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `payment_receiver_45d19ab3` (`transaction_id`),
CONSTRAINT `transaction_id_refs_id_5b0405ed` FOREIGN KEY (`transaction_id`) REFERENCES `payment_transaction` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payment_receiver`
--
LOCK TABLES `payment_receiver` WRITE;
/*!40000 ALTER TABLE `payment_receiver` DISABLE KEYS */;
/*!40000 ALTER TABLE `payment_receiver` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payment_sent`
--
DROP TABLE IF EXISTS `payment_sent`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_sent` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(32) DEFAULT NULL,
`amount` decimal(14,2) NOT NULL,
`timestamp` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payment_sent`
--
LOCK TABLES `payment_sent` WRITE;
/*!40000 ALTER TABLE `payment_sent` DISABLE KEYS */;
/*!40000 ALTER TABLE `payment_sent` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payment_transaction`
--
DROP TABLE IF EXISTS `payment_transaction`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_transaction` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` int(11) NOT NULL DEFAULT '0',
`status` varchar(32) NOT NULL DEFAULT 'NONE',
`amount` decimal(14,2) NOT NULL DEFAULT '0.00',
`currency` varchar(10) DEFAULT 'USD',
`secret` varchar(64) DEFAULT NULL,
`receipt` varchar(256) DEFAULT NULL,
`error` varchar(256) DEFAULT NULL,
`reason` varchar(64) DEFAULT NULL,
`date_created` datetime NOT NULL,
`date_modified` datetime NOT NULL,
`date_payment` datetime DEFAULT NULL,
`date_authorized` datetime DEFAULT NULL,
`date_expired` datetime DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`campaign_id` int(11) DEFAULT NULL,
`anonymous` tinyint(1) NOT NULL DEFAULT '0',
`execution` int(11) NOT NULL,
`pay_key` varchar(128) DEFAULT NULL,
`preapproval_key` varchar(128) DEFAULT NULL,
`date_executed` datetime DEFAULT NULL,
`max_amount` decimal(14,2) NOT NULL,
`approved` tinyint(1) DEFAULT NULL,
`premium_id` int(11) DEFAULT NULL,
2012-05-07 23:53:12 +00:00
`local_status` varchar(32) DEFAULT NULL,
`host` varchar(32) NOT NULL,
`extra` text,
`offer_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `payment_transaction_403f60f` (`user_id`),
KEY `payment_transaction_702b94e6` (`campaign_id`),
KEY `payment_transaction_bf4b5200` (`premium_id`),
KEY `payment_transaction_ef075ecb` (`offer_id`),
KEY `payment_transaction_816e0180` (`date_created`),
CONSTRAINT `campaign_id_refs_id_3d3091ca` FOREIGN KEY (`campaign_id`) REFERENCES `core_campaign` (`id`),
CONSTRAINT `offer_id_refs_id_e48eaa60` FOREIGN KEY (`offer_id`) REFERENCES `core_offer` (`id`),
CONSTRAINT `premium_id_refs_id_2e3fbf62e3270f76` FOREIGN KEY (`premium_id`) REFERENCES `core_premium` (`id`),
CONSTRAINT `user_id_refs_id_54db781c` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payment_transaction`
--
LOCK TABLES `payment_transaction` WRITE;
/*!40000 ALTER TABLE `payment_transaction` DISABLE KEYS */;
INSERT INTO `payment_transaction` VALUES (1,2,'Canceled',25.00,'USD','9d3a774f-07e1-11e6-aaca-3c15c2eb62bc',NULL,NULL,NULL,'2016-04-21 12:53:46','2016-04-21 12:53:57',NULL,'2016-04-21 12:53:54','2017-04-21 12:53:54',3,3,0,0,NULL,'cus_8JNpuW8RM7KmsW',NULL,10.00,1,150,'NONE','stripelib','{}',NULL),(2,1,'Complete',10.00,'USD','c73d8dd9-07e1-11e6-b14a-3c15c2eb62bc',NULL,NULL,NULL,'2016-04-21 12:54:57','2016-04-21 12:54:59','2016-04-21 12:54:59','2016-04-21 12:54:58',NULL,7,52,0,4,'ch_8JNqR2nG8uWoaS','ch_8JNqR2nG8uWoaS','2016-04-21 12:54:59',10.00,1,NULL,'NONE','stripelib','{\"library_id\": 1, \"copies\": 1}',2);
/*!40000 ALTER TABLE `payment_transaction` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_answer`
--
DROP TABLE IF EXISTS `questionnaire_answer`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_answer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`subject_id` int(11) NOT NULL,
`question_id` int(11) NOT NULL,
`runid` varchar(32) NOT NULL,
`answer` longtext NOT NULL,
PRIMARY KEY (`id`),
KEY `questionnaire_answer_56bb4187` (`subject_id`),
KEY `questionnaire_answer_25110688` (`question_id`),
KEY `questionnaire_answer_subject_id_2c66a0aca774dd63` (`subject_id`,`runid`,`id`),
KEY `questionnaire_answer_subject_id_26abad56736b58d5` (`subject_id`,`runid`),
CONSTRAINT `question_id_refs_id_95bced6e` FOREIGN KEY (`question_id`) REFERENCES `questionnaire_question` (`id`),
CONSTRAINT `subject_id_refs_id_e7c19832` FOREIGN KEY (`subject_id`) REFERENCES `questionnaire_subject` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_answer`
--
LOCK TABLES `questionnaire_answer` WRITE;
/*!40000 ALTER TABLE `questionnaire_answer` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_answer` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_choice`
--
DROP TABLE IF EXISTS `questionnaire_choice`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_choice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`question_id` int(11) NOT NULL,
`sortid` int(11) NOT NULL,
`value` varchar(64) NOT NULL,
`text_en` varchar(200) DEFAULT NULL,
`tags` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
KEY `questionnaire_choice_25110688` (`question_id`),
KEY `questionnaire_choice_f6915675` (`value`),
CONSTRAINT `question_id_refs_id_645f247c` FOREIGN KEY (`question_id`) REFERENCES `questionnaire_question` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_choice`
--
LOCK TABLES `questionnaire_choice` WRITE;
/*!40000 ALTER TABLE `questionnaire_choice` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_choice` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_dbstylesheet`
--
DROP TABLE IF EXISTS `questionnaire_dbstylesheet`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_dbstylesheet` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`inclusion_tag` varchar(128) NOT NULL,
`content` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_dbstylesheet`
--
LOCK TABLES `questionnaire_dbstylesheet` WRITE;
/*!40000 ALTER TABLE `questionnaire_dbstylesheet` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_dbstylesheet` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_globalstyles`
--
DROP TABLE IF EXISTS `questionnaire_globalstyles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_globalstyles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_globalstyles`
--
LOCK TABLES `questionnaire_globalstyles` WRITE;
/*!40000 ALTER TABLE `questionnaire_globalstyles` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_globalstyles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_landing`
--
DROP TABLE IF EXISTS `questionnaire_landing`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_landing` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nonce` varchar(32) DEFAULT NULL,
`content_type_id` int(11) DEFAULT NULL,
`object_id` int(10) unsigned DEFAULT NULL,
`label` varchar(64) NOT NULL,
`questionnaire_id` int(11),
PRIMARY KEY (`id`),
KEY `questionnaire_landing_37ef4eb4` (`content_type_id`),
KEY `questionnaire_landing_dfaab653` (`questionnaire_id`),
CONSTRAINT `content_type_id_refs_id_6f034f69` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
CONSTRAINT `questionnaire_id_refs_id_fb5808db` FOREIGN KEY (`questionnaire_id`) REFERENCES `questionnaire_questionnaire` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_landing`
--
LOCK TABLES `questionnaire_landing` WRITE;
/*!40000 ALTER TABLE `questionnaire_landing` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_landing` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_question`
--
DROP TABLE IF EXISTS `questionnaire_question`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_question` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`questionset_id` int(11) NOT NULL,
`number` varchar(8) NOT NULL,
`sort_id` int(11) DEFAULT NULL,
`text_en` longtext,
`type` varchar(32) NOT NULL,
`extra_en` varchar(512) DEFAULT NULL,
`checks` varchar(512) DEFAULT NULL,
`footer_en` longtext,
`parse_html` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `questionnaire_question_6c228d7e` (`questionset_id`),
KEY `questionnaire_question_number_638db8ebd42279b1` (`number`,`questionset_id`),
CONSTRAINT `questionset_id_refs_id_594cbcec` FOREIGN KEY (`questionset_id`) REFERENCES `questionnaire_questionset` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_question`
--
LOCK TABLES `questionnaire_question` WRITE;
/*!40000 ALTER TABLE `questionnaire_question` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_question` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_questionnaire`
--
DROP TABLE IF EXISTS `questionnaire_questionnaire`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_questionnaire` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
`redirect_url` varchar(128) NOT NULL,
`html` longtext NOT NULL,
`parse_html` tinyint(1) NOT NULL,
`admin_access_only` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_questionnaire`
--
LOCK TABLES `questionnaire_questionnaire` WRITE;
/*!40000 ALTER TABLE `questionnaire_questionnaire` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_questionnaire` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_questionset`
--
DROP TABLE IF EXISTS `questionnaire_questionset`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_questionset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`questionnaire_id` int(11) NOT NULL,
`sortid` int(11) NOT NULL,
`heading` varchar(64) NOT NULL,
`checks` varchar(256) NOT NULL,
`text_en` longtext,
`parse_html` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `questionnaire_questionset_dfaab653` (`questionnaire_id`),
KEY `questionnaire_questionset_questionnaire_id_4c701c8a8d82d023` (`questionnaire_id`,`sortid`),
KEY `questionnaire_questionset_007d796c` (`sortid`),
CONSTRAINT `questionnaire_id_refs_id_3ee12c9b` FOREIGN KEY (`questionnaire_id`) REFERENCES `questionnaire_questionnaire` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_questionset`
--
LOCK TABLES `questionnaire_questionset` WRITE;
/*!40000 ALTER TABLE `questionnaire_questionset` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_questionset` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_runinfo`
--
DROP TABLE IF EXISTS `questionnaire_runinfo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_runinfo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`subject_id` int(11) NOT NULL,
`random` varchar(32) NOT NULL,
`runid` varchar(32) NOT NULL,
`questionset_id` int(11) DEFAULT NULL,
`emailcount` int(11) NOT NULL,
`created` datetime NOT NULL,
`emailsent` datetime DEFAULT NULL,
`lastemailerror` varchar(64) DEFAULT NULL,
`state` varchar(16) DEFAULT NULL,
`cookies` longtext,
`tags` longtext NOT NULL,
`skipped` longtext NOT NULL,
`landing_id` int(11),
PRIMARY KEY (`id`),
KEY `questionnaire_runinfo_56bb4187` (`subject_id`),
KEY `questionnaire_runinfo_6c228d7e` (`questionset_id`),
KEY `questionnaire_runinfo_e33c130b` (`landing_id`),
KEY `questionnaire_runinfo_8a2e4a2a` (`random`),
CONSTRAINT `landing_id_refs_id_257aa55d` FOREIGN KEY (`landing_id`) REFERENCES `questionnaire_landing` (`id`),
CONSTRAINT `questionset_id_refs_id_4ebb8a59` FOREIGN KEY (`questionset_id`) REFERENCES `questionnaire_questionset` (`id`),
CONSTRAINT `subject_id_refs_id_5b1039cc` FOREIGN KEY (`subject_id`) REFERENCES `questionnaire_subject` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_runinfo`
--
LOCK TABLES `questionnaire_runinfo` WRITE;
/*!40000 ALTER TABLE `questionnaire_runinfo` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_runinfo` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_runinfohistory`
--
DROP TABLE IF EXISTS `questionnaire_runinfohistory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_runinfohistory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`subject_id` int(11) NOT NULL,
`runid` varchar(32) NOT NULL,
`completed` datetime NOT NULL,
`tags` longtext NOT NULL,
`skipped` longtext NOT NULL,
`questionnaire_id` int(11) NOT NULL,
`landing_id` int(11),
PRIMARY KEY (`id`),
KEY `questionnaire_runinfohistory_56bb4187` (`subject_id`),
KEY `questionnaire_runinfohistory_dfaab653` (`questionnaire_id`),
KEY `questionnaire_runinfohistory_e33c130b` (`landing_id`),
CONSTRAINT `landing_id_refs_id_95e0db4e` FOREIGN KEY (`landing_id`) REFERENCES `questionnaire_landing` (`id`),
CONSTRAINT `questionnaire_id_refs_id_46574185` FOREIGN KEY (`questionnaire_id`) REFERENCES `questionnaire_questionnaire` (`id`),
CONSTRAINT `subject_id_refs_id_682c24c0` FOREIGN KEY (`subject_id`) REFERENCES `questionnaire_subject` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_runinfohistory`
--
LOCK TABLES `questionnaire_runinfohistory` WRITE;
/*!40000 ALTER TABLE `questionnaire_runinfohistory` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_runinfohistory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaire_subject`
--
DROP TABLE IF EXISTS `questionnaire_subject`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaire_subject` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`state` varchar(16) NOT NULL,
`surname` varchar(64) DEFAULT NULL,
`givenname` varchar(64) DEFAULT NULL,
`email` varchar(75) DEFAULT NULL,
`gender` varchar(8) NOT NULL,
`nextrun` date DEFAULT NULL,
`formtype` varchar(16) NOT NULL,
`language` varchar(5) NOT NULL,
`anonymous` tinyint(1) NOT NULL,
`ip_address` char(39),
PRIMARY KEY (`id`),
KEY `questionnaire_subject_givenname_73f5ef8d44fec7cc` (`givenname`,`surname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaire_subject`
--
LOCK TABLES `questionnaire_subject` WRITE;
/*!40000 ALTER TABLE `questionnaire_subject` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaire_subject` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `registration_registrationprofile`
--
DROP TABLE IF EXISTS `registration_registrationprofile`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `registration_registrationprofile` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`activation_key` varchar(40) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `user_id_refs_id_313280c4` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `registration_registrationprofile`
--
LOCK TABLES `registration_registrationprofile` WRITE;
/*!40000 ALTER TABLE `registration_registrationprofile` DISABLE KEYS */;
INSERT INTO `registration_registrationprofile` VALUES (1,3,'ALREADY_ACTIVATED'),(2,4,'ALREADY_ACTIVATED');
/*!40000 ALTER TABLE `registration_registrationprofile` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `social_auth_association`
--
DROP TABLE IF EXISTS `social_auth_association`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `social_auth_association` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_url` varchar(255) NOT NULL,
`handle` varchar(255) NOT NULL,
`secret` varchar(255) NOT NULL,
`issued` int(11) NOT NULL,
`lifetime` int(11) NOT NULL,
`assoc_type` varchar(64) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `social_auth_association`
--
LOCK TABLES `social_auth_association` WRITE;
/*!40000 ALTER TABLE `social_auth_association` DISABLE KEYS */;
INSERT INTO `social_auth_association` VALUES (1,'https://www.google.com/accounts/o8/ud','AMlYA9WFUhmJ8_eEopkqPOTgFBPCb-O8pt_rPUUSu4S1E7SZjfbbpgbk','JLHXtrh7XWYR3y8FKhSFdpJTJRY=\n',1330712242,46800,'HMAC-SHA1');
/*!40000 ALTER TABLE `social_auth_association` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `social_auth_code`
--
DROP TABLE IF EXISTS `social_auth_code`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `social_auth_code` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(254) NOT NULL,
`code` varchar(32) NOT NULL,
`verified` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `social_auth_code_c1336794` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `social_auth_code`
--
LOCK TABLES `social_auth_code` WRITE;
/*!40000 ALTER TABLE `social_auth_code` DISABLE KEYS */;
/*!40000 ALTER TABLE `social_auth_code` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `social_auth_nonce`
--
DROP TABLE IF EXISTS `social_auth_nonce`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `social_auth_nonce` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server_url` varchar(255) NOT NULL,
`timestamp` int(11) NOT NULL,
`salt` varchar(40) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `social_auth_nonce`
--
LOCK TABLES `social_auth_nonce` WRITE;
/*!40000 ALTER TABLE `social_auth_nonce` DISABLE KEYS */;
INSERT INTO `social_auth_nonce` VALUES (1,'https://www.google.com/accounts/o8/ud',1330712243,'ttQdCPzKckEKOQ'),(2,'https://www.google.com/accounts/o8/ud',1330712525,'1lXNbgB3LygDwg');
/*!40000 ALTER TABLE `social_auth_nonce` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `social_auth_usersocialauth`
--
DROP TABLE IF EXISTS `social_auth_usersocialauth`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `social_auth_usersocialauth` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`provider` varchar(32) NOT NULL,
`uid` varchar(255) NOT NULL,
`extra_data` longtext NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `provider` (`provider`,`uid`),
KEY `social_auth_usersocialauth_403f60f` (`user_id`),
CONSTRAINT `user_id_refs_id_60fa311b` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `social_auth_usersocialauth`
--
LOCK TABLES `social_auth_usersocialauth` WRITE;
/*!40000 ALTER TABLE `social_auth_usersocialauth` DISABLE KEYS */;
INSERT INTO `social_auth_usersocialauth` VALUES (1,1,'google','rdhyee@gluejar.com','null'),(2,2,'google','raymond.yee@gmail.com','null');
/*!40000 ALTER TABLE `social_auth_usersocialauth` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `south_migrationhistory`
--
DROP TABLE IF EXISTS `south_migrationhistory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `south_migrationhistory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_name` varchar(255) NOT NULL,
`migration` varchar(255) NOT NULL,
`applied` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=118 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `south_migrationhistory`
--
LOCK TABLES `south_migrationhistory` WRITE;
/*!40000 ALTER TABLE `south_migrationhistory` DISABLE KEYS */;
INSERT INTO `south_migrationhistory` VALUES (1,'core','0001_initial','2012-03-02 17:50:54'),(2,'core','0002_add_goodreads_id','2012-03-02 17:50:55'),(3,'core','0003_add_librarything_ids','2012-03-02 17:50:55'),(4,'core','0004_auto__add_field_campaign_status','2012-03-02 17:50:56'),(5,'core','0005_set_status','2012-03-02 17:50:56'),(6,'core','0006_wishes','2012-03-02 17:50:56'),(7,'core','0007_auto__add_field_wishes_created__add_field_wishes_source','2012-03-02 17:50:57'),(8,'core','0008_add_work_language_col','2012-03-02 17:50:58'),(9,'core','0009_add_work_language_data','2012-03-02 17:50:58'),(10,'core','0010_remove_edition_language','2012-03-02 17:50:58'),(11,'core','0011_auto__add_campaignaction__del_field_campaign_suspended_reason__del_fie','2012-03-02 17:50:59'),(12,'core','0012_auto__add_field_campaign_left','2012-03-02 17:51:00'),(13,'core','0013_move_subject_to_work','2012-03-02 17:51:01'),(14,'core','0015_auto__chg_field_subject_name__add_unique_subject_name','2012-03-02 17:51:01'),(15,'core','0016_auto__add_field_work_openlibrary_lookup','2012-03-02 17:51:02'),(16,'core','0017_isbn_to_13','2012-03-02 17:51:02'),(17,'core','0018_auto__del_field_edition_isbn_10','2012-03-02 17:51:02'),(18,'core','0019_googlebooks_id_must_be_unique','2012-03-02 17:51:02'),(19,'core','0020_auto__add_identifier__add_unique_identifier_type_value','2012-03-02 17:51:03'),(20,'core','0021_auto__del_field_work_librarything_id__del_field_work_openlibrary_id__d','2012-03-02 17:51:04'),(21,'core','0022_auto__chg_field_edition_publisher__chg_field_edition_publication_date','2012-03-02 17:51:05'),(22,'core','0023_auto__add_waswork','2012-03-02 17:51:05'),(23,'core','0024_auto__add_field_work_num_wishes','2012-03-02 17:51:06'),(24,'core','0025_count_wishes','2012-03-02 17:51:06'),(25,'core','0026_auto__add_field_ebook_user__add_field_waswork_moved__add_field_waswork','2012-03-02 17:51:08'),(26,'payment','0001_initial','2012-03-02 17:51:10'),(27,'payment','0002_auto__add_paymentresponse__del_field_transaction_reference__add_field_','2012-03-02 17:51:13'),(28,'payment','0003_auto__add_field_transaction_max_amount','2012-03-02 17:51:13'),(29,'payment','0004_auto__add_field_transaction_approved','2012-03-02 17:51:14'),(30,'tastypie','0001_initial','2012-03-02 17:51:14'),(31,'djcelery','0001_initial','2012-03-02 17:51:18'),(32,'payment','0005_auto__add_field_transaction_premium','2012-03-21 22:17:45'),(33,'core','0027_auto__add_field_campaign_license__chg_field_ebook_url','2012-03-28 15:24:25'),(34,'core','0028_auto__add_field_premium_limit','2012-03-28 15:24:25'),(35,'core','0029_https_facebook_avatars','2012-05-03 18:11:34'),(36,'core','0030_twitter_rewrite','2012-05-03 18:11:34'),(37,'core','0031_auto__add_field_campaign_edition','2012-05-03 18:11:35'),(38,'payment','0006_auto__add_field_transaction_local_status__add_field_paymentresponse_st','2012-05-03 18:11:36'),(39,'core','0032_auto__add_field_work_description','2012-05-07 23:51:10'),(40,'core','0033_move_descriptions','2012-05-07 23:51:10'),(41,'core','0034_auto__del_field_edition_description','2012-05-07 23:51:10'),(42,'core','0035_auto__add_key','2012-05-09 17:59:56'),(43,'core','0036_auto__add_unique_key_name','2012-05-09 17:59:56'),(44,'social_auth','0001_initial','2013-03-19 22:22:28'),(45,'default','0001_initial','2016-04-21 12:51:50'),(46,'api','0001_initial','2016-04-21 12:51:51'),(47,'bisac','0001_initial','2016-04-21 12:51:51'),(48,'core','0037_auto__add_field_edition_cover_image','2016-04-21 12:51:51'),(49,'core','0038_auto__chg_field_campaign_description__chg_field_campaign_details__add_','2016-04-21 12:51:51'),(50,'core','0039_auto__del_field_ebook_unglued__add_field_edition_unglued','2016-04-21 12:51:51'),(51,'core','0040_auto__add_badge','2016-04-21 12:51:52'),(52,'core','0041_auto','2016-04-21 12:51:52'),(53,'core','0042_auto__add_field_userprofile_avatar_source','2016-04-21 12:51:52'),(54,'core','0043_auto__add_publishername__add_publisher__add_field_campaign_email__add_','2016-04-21 12:51:52'),(55,'core','0044_pubname_to_model','2016-04-21 12:51:52'),(56,'core','0045_auto
/*!40000 ALTER TABLE `south_migrationhistory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `survey_landing`
--
DROP TABLE IF EXISTS `survey_landing`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `survey_landing` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nonce` varchar(32) DEFAULT NULL,
`content_type_id` int(11) DEFAULT NULL,
`object_id` int(10) unsigned DEFAULT NULL,
`label` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `survey_landing_37ef4eb4` (`content_type_id`),
CONSTRAINT `content_type_id_refs_id_c1e17b85` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `survey_landing`
--
LOCK TABLES `survey_landing` WRITE;
/*!40000 ALTER TABLE `survey_landing` DISABLE KEYS */;
/*!40000 ALTER TABLE `survey_landing` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tastypie_apiaccess`
--
DROP TABLE IF EXISTS `tastypie_apiaccess`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tastypie_apiaccess` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) NOT NULL,
`url` varchar(255) NOT NULL DEFAULT '',
`request_method` varchar(10) NOT NULL DEFAULT '',
`accessed` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tastypie_apiaccess`
--
LOCK TABLES `tastypie_apiaccess` WRITE;
/*!40000 ALTER TABLE `tastypie_apiaccess` DISABLE KEYS */;
/*!40000 ALTER TABLE `tastypie_apiaccess` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tastypie_apikey`
--
DROP TABLE IF EXISTS `tastypie_apikey`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tastypie_apikey` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`key` varchar(256) NOT NULL DEFAULT '',
`created` datetime NOT NULL DEFAULT '2012-03-02 12:51:14',
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `user_id_refs_id_56bfdb62` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tastypie_apikey`
--
LOCK TABLES `tastypie_apikey` WRITE;
/*!40000 ALTER TABLE `tastypie_apikey` DISABLE KEYS */;
INSERT INTO `tastypie_apikey` VALUES (1,1,'f48b2cd73b1733f32dc69ff1673265121397c13e','2012-03-02 13:17:24'),(2,2,'dbe45999934851c9370b5be4e1d2dd9e4822ff86','2012-03-02 13:21:21'),(3,3,'f31487e061d226829f298209f82d32fec75e4484','2012-03-13 19:11:32'),(4,4,'1cf3b2a6ef8db1f1ac8f272c37f5d8b62578a4be','2012-05-09 14:34:52'),(5,5,'6a520735da44202376a725e16bed1aa362853a91','2016-04-21 12:52:00'),(6,6,'d89e50e46fe2f3d837dd4c124557dfca6afa02c6','2016-04-21 12:52:01'),(7,7,'83c8c55d4d7220feb7e5ed38c352430ba4431926','2016-04-21 12:54:55');
/*!40000 ALTER TABLE `tastypie_apikey` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `thumbnail_kvstore`
--
DROP TABLE IF EXISTS `thumbnail_kvstore`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `thumbnail_kvstore` (
`key` varchar(200) NOT NULL,
`value` longtext NOT NULL,
PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `thumbnail_kvstore`
--
LOCK TABLES `thumbnail_kvstore` WRITE;
/*!40000 ALTER TABLE `thumbnail_kvstore` DISABLE KEYS */;
/*!40000 ALTER TABLE `thumbnail_kvstore` 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 2016-08-25 19:15:29