You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

551 lines
529 KiB

7 months ago
-- MySQL dump 10.13 Distrib 5.7.24, for macos10.14 (x86_64)
--
-- Host: 127.0.0.1 Database: teleplay
-- ------------------------------------------------------
-- Server version 5.7.24-log
/*!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 `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(150) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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 */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `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 `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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_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) COLLATE utf8mb4_unicode_ci NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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` (`id`, `name`, `content_type_id`, `codename`) VALUES (1,'Can add log entry',1,'add_logentry'),(2,'Can change log entry',1,'change_logentry'),(3,'Can delete log entry',1,'delete_logentry'),(4,'Can view log entry',1,'view_logentry'),(5,'Can add permission',2,'add_permission'),(6,'Can change permission',2,'change_permission'),(7,'Can delete permission',2,'delete_permission'),(8,'Can view permission',2,'view_permission'),(9,'Can add group',3,'add_group'),(10,'Can change group',3,'change_group'),(11,'Can delete group',3,'delete_group'),(12,'Can view group',3,'view_group'),(13,'Can add user',4,'add_user'),(14,'Can change user',4,'change_user'),(15,'Can delete user',4,'delete_user'),(16,'Can view user',4,'view_user'),(17,'Can add content type',5,'add_contenttype'),(18,'Can change content type',5,'change_contenttype'),(19,'Can delete content type',5,'delete_contenttype'),(20,'Can view content type',5,'view_contenttype'),(21,'Can add session',6,'add_session'),(22,'Can change session',6,'change_session'),(23,'Can delete session',6,'delete_session'),(24,'Can view session',6,'view_session'),(25,'Can add 评论',7,'add_comment'),(26,'Can change 评论',7,'change_comment'),(27,'Can delete 评论',7,'delete_comment'),(28,'Can view 评论',7,'view_comment'),(29,'Can add 标签',8,'add_tags'),(30,'Can change 标签',8,'change_tags'),(31,'Can delete 标签',8,'delete_tags'),(32,'Can view 标签',8,'view_tags'),(33,'Can add 用户',9,'add_user'),(34,'Can change 用户',9,'change_user'),(35,'Can delete 用户',9,'delete_user'),(36,'Can view 用户',9,'view_user'),(37,'Can add 用户偏好',10,'add_usertagprefer'),(38,'Can change 用户偏好',10,'change_usertagprefer'),(39,'Can delete 用户偏好',10,'delete_usertagprefer'),(40,'Can view 用户偏好',10,'view_usertagprefer'),(41,'Can add 电视剧',11,'add_teleplay'),(42,'Can change 电视剧',11,'change_teleplay'),(43,'Can delete 电视剧',11,'delete_teleplay'),(44,'Can view 电视剧',11,'view_teleplay'),(45,'Can add 评分信息',12,'add_rate'),(46,'Can change 评分信息',12,'change_rate'),(47,'Can delete 评分信息',12,'delete_rate'),(48,'Can view 评分信息',12,'view_rate'),(49,'Can add 评论点赞',13,'add_likecomment'),(50,'Can change 评论点赞',13,'change_likecomment'),(51,'Can delete 评论点赞',13,'delete_likecomment'),(52,'Can view 评论点赞',13,'view_likecomment');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `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,
`password` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`username` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
`first_name` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
`last_name` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(254) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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 */;
/*!40000 ALTER TABLE `auth_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `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 `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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 */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `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 `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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 `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(6) NOT NULL,
`object_id` longtext COLLATE utf8mb4_unicode_ci,
`object_repr` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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_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) COLLATE utf8mb4_unicode_ci NOT NULL,
`model` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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` (`id`, `app_label`, `model`) VALUES (1,'admin','logentry'),(3,'auth','group'),(2,'auth','permission'),(4,'auth','user'),(5,'contenttypes','contenttype'),(6,'sessions','session'),(7,'user','comment'),(13,'user','likecomment'),(12,'user','rate'),(8,'user','tags'),(11,'user','teleplay'),(9,'user','user'),(10,'user','usertagprefer');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `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) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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` (`id`, `app`, `name`, `applied`) VALUES (1,'contenttypes','0001_initial','2021-04-24 11:31:53.455107'),(2,'auth','0001_initial','2021-04-24 11:31:53.855617'),(3,'admin','0001_initial','2021-04-24 11:31:54.364604'),(4,'admin','0002_logentry_remove_auto_add','2021-04-24 11:31:54.461045'),(5,'admin','0003_logentry_add_action_flag_choices','2021-04-24 11:31:54.479845'),(6,'contenttypes','0002_remove_content_type_name','2021-04-24 11:31:54.579094'),(7,'auth','0002_alter_permission_name_max_length','2021-04-24 11:31:54.643602'),(8,'auth','0003_alter_user_email_max_length','2021-04-24 11:31:54.697630'),(9,'auth','0004_alter_user_username_opts','2021-04-24 11:31:54.715760'),(10,'auth','0005_alter_user_last_login_null','2021-04-24 11:31:54.769716'),(11,'auth','0006_require_contenttypes_0002','2021-04-24 11:31:54.784419'),(12,'auth','0007_alter_validators_add_error_messages','2021-04-24 11:31:54.806073'),(13,'auth','0008_alter_user_username_max_length','2021-04-24 11:31:54.862246'),(14,'auth','0009_alter_user_last_name_max_length','2021-04-24 11:31:54.915776'),(15,'auth','0010_alter_group_name_max_length','2021-04-24 11:31:54.974299'),(16,'auth','0011_update_proxy_permissions','2021-04-24 11:31:54.997582'),(17,'auth','0012_alter_user_first_name_max_length','2021-04-24 11:31:55.051811'),(18,'sessions','0001_initial','2021-04-24 11:31:55.120987'),(19,'user','0001_initial','2021-04-24 11:31:55.731738');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_session`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_session` (
`session_key` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`session_data` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!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` (`session_key`, `session_data`, `expire_date`) VALUES ('h9u0lihscesej6yy7h0qmz6ajugjzmcs','eyJvcmRlciI6bnVsbH0:1laGTQ:w1qxrcAsE9PWoLGtKyWtn56VWxgmyBqcc4IxjfouhrQ','2021-05-08 11:29:20.638000'),('nimpbatyz1vl64ablms2mzhfosakl5r5','eyJvcmRlciI6bnVsbH0:1laGOf:rOGYc8pNNejsqfVo4bYgASBflZiv1gIVQg4CvY9075s','2021-05-08 11:24:25.425000');
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_comment`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`create_time` datetime(6) NOT NULL,
`teleplay_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_comment_teleplay_id_6b7eec23_fk_user_teleplay_id` (`teleplay_id`),
KEY `user_comment_user_id_d9d51f62_fk_user_user_id` (`user_id`),
CONSTRAINT `user_comment_teleplay_id_6b7eec23_fk_user_teleplay_id` FOREIGN KEY (`teleplay_id`) REFERENCES `user_teleplay` (`id`),
CONSTRAINT `user_comment_user_id_d9d51f62_fk_user_user_id` FOREIGN KEY (`user_id`) REFERENCES `user_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_comment`
--
LOCK TABLES `user_comment` WRITE;
/*!40000 ALTER TABLE `user_comment` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_comment` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_likecomment`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_likecomment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`comment_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_likecomment_comment_id_4c38348f_fk_user_comment_id` (`comment_id`),
KEY `user_likecomment_user_id_aa40dcf2_fk_user_user_id` (`user_id`),
CONSTRAINT `user_likecomment_comment_id_4c38348f_fk_user_comment_id` FOREIGN KEY (`comment_id`) REFERENCES `user_comment` (`id`),
CONSTRAINT `user_likecomment_user_id_aa40dcf2_fk_user_user_id` FOREIGN KEY (`user_id`) REFERENCES `user_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_likecomment`
--
LOCK TABLES `user_likecomment` WRITE;
/*!40000 ALTER TABLE `user_likecomment` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_likecomment` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_rate`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_rate` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mark` double NOT NULL,
`create_time` datetime(6) NOT NULL,
`teleplay_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `user_rate_teleplay_id_97da0b66_fk_user_teleplay_id` (`teleplay_id`),
KEY `user_rate_user_id_b85a90b9_fk_user_user_id` (`user_id`),
CONSTRAINT `user_rate_teleplay_id_97da0b66_fk_user_teleplay_id` FOREIGN KEY (`teleplay_id`) REFERENCES `user_teleplay` (`id`),
CONSTRAINT `user_rate_user_id_b85a90b9_fk_user_user_id` FOREIGN KEY (`user_id`) REFERENCES `user_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_rate`
--
LOCK TABLES `user_rate` WRITE;
/*!40000 ALTER TABLE `user_rate` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_rate` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_tags`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_tags`
--
LOCK TABLES `user_tags` WRITE;
/*!40000 ALTER TABLE `user_tags` DISABLE KEYS */;
INSERT INTO `user_tags` (`id`, `name`) VALUES (12,''),(17,'传记'),(20,'儿童'),(4,'冒险'),(1,'剧情'),(7,'动作'),(9,'动画'),(13,'历史'),(16,'古装'),(25,'同性'),(15,'喜剧'),(3,'奇幻'),(19,'家庭'),(23,'恐怖'),(5,'悬疑'),(10,'惊悚'),(14,'战争'),(26,'武侠'),(2,'爱情'),(6,'犯罪'),(18,'真人秀'),(22,'短片'),(8,'科幻'),(11,'纪录片'),(28,'脱口秀'),(21,'西部'),(24,'运动'),(27,'音乐');
/*!40000 ALTER TABLE `user_tags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_teleplay`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_teleplay` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`director` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`country` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`years` date NOT NULL,
`leader` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
`d_rate_nums` int(11) NOT NULL,
`d_rate` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`intro` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`num` int(11) NOT NULL,
`origin_image_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`image_link` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`imdb_link` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=456 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_teleplay`
--
LOCK TABLES `user_teleplay` WRITE;
/*!40000 ALTER TABLE `user_teleplay` DISABLE KEYS */;
INSERT INTO `user_teleplay` (`id`, `name`, `director`, `country`, `years`, `leader`, `d_rate_nums`, `d_rate`, `intro`, `num`, `origin_image_link`, `image_link`, `imdb_link`) VALUES (1,'密会 밀회','安畔锡',' 韩国','2014-03-17','金喜爱/刘亚仁/沈惠珍/朴赫权/景收真/金惠恩/金昌完',8,'8.8','\n   获得韩国第50届百想艺术大赏TV部最佳剧本赏\n \n   获得韩国第50届百想艺术大赏TV部最佳导演赏\n \n   20岁青年对42岁女人的告白让她无法理解但又为什么会这样呢为什么会心动\n \n   这真是条不该走的路在感情和理性之间42岁的女人将要面临一场战争。可面对20岁青年的告白她却会何去何从她想知道那青年的告白是真心的所以开始了无止境的考验。\n \n   但不管是多么理智的中年人,也 没办法按照理性来行事。最后,陷入爱情的女人是不是会做出傻瓜一样的举动?这就是爱情,吃过禁果身体和心灵都带着罪恶,痴情中带着纯洁。----转自搜狐《密会》剧情介绍\n ',0,NULL,'teleplay_cover/p2172675717.jpg','https://www.imdb.com/title/tt5309758'),(2,'听见你的声音 너의 목소리가 들려','赵秀沅',' 韩国','2013-06-05','李宝英/李钟硕/尹相铉/李多熙/金海淑/郑雄仁/尹朱尚/郑栋焕/金光奎/金秉玉/金佳恩/崔星俊',8,'8.6','\n   高中生朴修夏(李钟硕 饰)看别人的眼神就可以读懂他们的内心,这种能力源于十年前的一桩车祸杀人案。幼年朴修夏和父亲被一辆大卡车撞倒,而卡车司机竟然起了杀人之心。朴修夏目睹了司机杀害父亲的过程,但因为年纪太小不能构成证词,而作为目击证人之一的张慧星(李宝英 饰)勇敢地出面作证。\n \n   时过境迁,张慧星成为了一名国选律师,但她一直为当年做出的那个选择感到后悔。而长大后的朴修夏,一直在寻找当年那个勇敢作证的姐姐,并发誓要好好守护她。随后学校里发生了一桩学生坠楼事件,朴修夏因此重遇张慧星,他却发现她与自己想象中的那个正义善良的律师形象大相径庭。朴修夏会就此失望而去吗?关于拥有读心术的超能力少年和国选律师的故事,就此展开。\n ',0,NULL,'teleplay_cover/p1999030273.jpg','https://www.imdb.com/title/tt3141190'),(3,'半泽直树2 半沢直樹2','福泽克雄',' 日本','2020-07-19','堺雅人/上户彩/井川遥/贺来贤人/今田美樱/尾上松也/柄本明/古田新太/市川猿之助/北大路欣也/香川照之/及川光博/片冈爱之助/池田成志/山崎银之丞/角田晃广/今井朋彦/粟岛瑞丸/土田英生/小久保寿人/加藤啓/丸一太/持田将史/户次重幸/益冈彻/井上芳雄/南野阳子/山根基世/筒井道隆/江口德子/西田尚美',9,'9.4','\n   创下日本平成年代收视奇迹的电视剧《半泽直树》续作。\n \n   本作的故事将承接前作从半泽被调往东京中央证券任营业企划部长开始。某天东京中央证券接到了一桩巨额交易。一家大型IT企业企图动用1500亿日元进行恶意收购。这笔交易的规模创造了东京中央证券交易史上的新纪录。此时的半泽还不知道一场新的同银行之间的斗争即将拉开大幕……在新的岗位上半泽能否继续迎难而上化解各种难题与阻碍对那些百般刁难的对手能否再次“加倍奉还”\n
/*!40000 ALTER TABLE `user_teleplay` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_teleplay_collect`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_teleplay_collect` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`teleplay_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_teleplay_collect_teleplay_id_user_id_3eaeeb8a_uniq` (`teleplay_id`,`user_id`),
KEY `user_teleplay_collect_user_id_f62e5142_fk_user_user_id` (`user_id`),
CONSTRAINT `user_teleplay_collect_teleplay_id_1143b3be_fk_user_teleplay_id` FOREIGN KEY (`teleplay_id`) REFERENCES `user_teleplay` (`id`),
CONSTRAINT `user_teleplay_collect_user_id_f62e5142_fk_user_user_id` FOREIGN KEY (`user_id`) REFERENCES `user_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_teleplay_collect`
--
LOCK TABLES `user_teleplay_collect` WRITE;
/*!40000 ALTER TABLE `user_teleplay_collect` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_teleplay_collect` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_teleplay_tags`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_teleplay_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`teleplay_id` int(11) NOT NULL,
`tags_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_teleplay_tags_teleplay_id_tags_id_eeee2335_uniq` (`teleplay_id`,`tags_id`),
KEY `user_teleplay_tags_tags_id_50fc2dd0_fk_user_tags_id` (`tags_id`),
CONSTRAINT `user_teleplay_tags_tags_id_50fc2dd0_fk_user_tags_id` FOREIGN KEY (`tags_id`) REFERENCES `user_tags` (`id`),
CONSTRAINT `user_teleplay_tags_teleplay_id_9616fe1c_fk_user_teleplay_id` FOREIGN KEY (`teleplay_id`) REFERENCES `user_teleplay` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1022 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_teleplay_tags`
--
LOCK TABLES `user_teleplay_tags` WRITE;
/*!40000 ALTER TABLE `user_teleplay_tags` DISABLE KEYS */;
INSERT INTO `user_teleplay_tags` (`id`, `teleplay_id`, `tags_id`) VALUES (1,1,1),(2,2,1),(3,2,2),(4,2,3),(5,3,1),(6,4,1),(7,4,3),(8,4,4),(9,5,1),(10,5,2),(11,6,1),(12,6,2),(13,7,1),(14,7,5),(15,7,6),(16,8,6),(17,8,7),(18,8,8),(19,8,9),(20,8,10),(21,9,11),(22,10,12),(24,11,3),(25,11,4),(26,11,7),(23,11,9),(27,12,2),(28,13,1),(29,13,2),(30,13,13),(31,13,14),(33,14,2),(34,14,3),(35,14,15),(32,14,16),(36,15,1),(37,15,3),(38,16,2),(39,17,15),(41,18,1),(42,18,13),(40,18,16),(43,19,1),(44,19,13),(46,20,11),(47,20,15),(45,20,17),(48,21,11),(49,21,13),(50,22,18),(52,23,1),(51,23,8),(53,23,9),(54,24,2),(55,24,15),(56,25,1),(57,25,2),(58,26,1),(59,26,2),(61,27,1),(60,27,16),(64,28,15),(62,28,19),(63,28,20),(65,29,5),(66,29,6),(67,29,7),(68,30,2),(69,30,15),(70,31,1),(72,32,1),(71,32,8),(74,33,1),(75,33,9),(73,33,16),(76,34,1),(77,34,9),(78,35,1),(79,35,6),(80,35,7),(81,35,8),(82,35,9),(83,35,21),(84,36,1),(85,36,3),(86,36,5),(87,36,9),(88,37,5),(89,37,6),(91,38,2),(90,38,9),(92,38,15),(93,39,18),(94,40,1),(95,40,5),(96,40,6),(97,41,1),(98,41,5),(99,41,6),(100,42,9),(101,42,22),(103,43,1),(102,43,16),(104,44,1),(105,44,5),(106,44,6),(107,45,1),(108,45,2),(109,45,5),(110,46,1),(111,46,2),(112,47,1),(113,48,23),(114,49,1),(115,49,3),(116,49,9),(117,49,10),(118,49,23),(120,50,1),(121,50,3),(119,50,24),(124,51,6),(125,51,7),(122,51,8),(123,51,15),(126,52,1),(128,53,1),(129,53,13),(127,53,16),(130,54,1),(131,54,19),(132,55,2),(133,55,3),(134,55,5),(136,56,3),(137,56,4),(135,56,9),(138,57,1),(139,58,1),(140,58,19),(141,59,15),(144,60,5),(142,60,9),(143,60,10),(145,61,8),(146,61,9),(149,62,7),(147,62,8),(148,62,9),(150,63,1),(151,64,2),(152,64,5),(153,65,1),(154,65,15),(155,66,9),(157,66,15),(156,66,19),(158,67,18),(159,68,1),(160,68,5),(161,69,2),(162,69,3),(163,70,1),(164,70,13),(166,71,2),(167,71,3),(165,71,25),(169,72,2),(168,72,9),(170,73,1),(171,73,15),(173,74,9),(174,74,15),(172,74,24),(175,75,2),(176,75,15),(178,76,5),(177,76,8),(179,77,1),(180,78,11),(182,79,9),(181,79,24),(184,80,1),(185,80,4),(186,80,7),(183,80,8),(187,81,1),(188,82,1),(189,83,1),(190,83,6),(191,84,1),(192,84,5),(193,84,14),(194,85,9),(195,86,1),(196,87,1),(197,87,6),(198,87,15),(199,88,1),(200,88,19),(202,89,2),(201,89,25),(203,90,1),(204,90,6),(205,91,1),(206,92,9),(210,93,7),(207,93,8),(208,93,9),(209,93,15),(211,94,1),(212,94,5),(213,95,1),(214,96,1),(215,96,19),(216,97,2),(217,97,5),(219,98,2),(220,98,15),(218,98,16),(221,99,1),(222,99,9),(224,100,5),(223,100,8),(225,100,15),(226,101,1),(227,102,1),(228,102,19),(229,103,1),(231,103,6),(230,103,10),(232,104,2),(233,104,15),(235,105,1),(234,105,16),(236,106,15),(238,107,1),(237,107,16),(239,108,1),(240,108,2),(241,109,1),(242,109,3),(243,109,9),(246,110,15),(244,110,16),(245,110,26),(247,111,2),(248,112,16),(249,112,26),(251,113,1),(252,113,2),(250,113,16),(253,114,9),(254,115,2),(255,115,15),(256,116,2),(258,117,1),(259,117,5),(260,117,6),(257,117,8),(261,118,11),(262,119,1),(264,119,6),(263,119,10),(265,119,17),(266,120,1),(267,120,2),(269,121,1),(268,121,16),(270,122,1),(271,123,1),(272,123,10),(273,124,1),(274,124,2),(275,124,25),(276,125,3),(277,125,8),(278,125,9),(279,125,15),(280,125,19),(281,126,1),(283,126,5),(284,126,6),(282,126,10),(285,127,1),(286,128,1),(287,128,3),(288,129,1),(289,129,15),(291,130,3),(290,130,9),(292,130,15),(293,131,1),(294,131,2),(295,132,1),(296,132,14),(297,133,2),(298,134,1),(300,135,1),(301,135,13),(299,135,16),(302,136,1),(303,136,3),(304,136,7),(305,136,9),(306,136,10),(308,137,1),(309,137,2),(310,137,13),(307,137,16),(311,138,1),(312,139,2),(313,139,15),(314,140,2),(315,140,15),(316,141,1),(317,142,1),(318,142,6),(319,143,1),(320,143,2),(322,144,2),(321,144,16),(323,144,26),(324,145,1),(325,145,2),(327,145,15),(326,145,19),(328,146,9),(329,147,9),(330,148,9),(331,149,9),(332,150,1),(333,150,2),(335,150,7),(334,150,15),(337,151,1),(336,151,16),(338,151,26),(340,152,1),(342,152,5),(339,152,8),(341,152,21),(343,153,5),(344,153,6),(345,153,7),(346,153,9),(347,153,10),(348,154,1),(350,154,9),(349,154,27),(351,155,1),(352,155,6),(353,155,15),(354,156,1),(355,157,5),(356,157,
/*!40000 ALTER TABLE `user_teleplay_tags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_user`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(254) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_time` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_user`
--
LOCK TABLES `user_user` WRITE;
/*!40000 ALTER TABLE `user_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_usertagprefer`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_usertagprefer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`score` double NOT NULL,
`tag_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_usertagprefer_tag_id_5729f563_fk_user_tags_id` (`tag_id`),
KEY `user_usertagprefer_user_id_9e6cb135_fk_user_user_id` (`user_id`),
CONSTRAINT `user_usertagprefer_tag_id_5729f563_fk_user_tags_id` FOREIGN KEY (`tag_id`) REFERENCES `user_tags` (`id`),
CONSTRAINT `user_usertagprefer_user_id_9e6cb135_fk_user_user_id` FOREIGN KEY (`user_id`) REFERENCES `user_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_usertagprefer`
--
LOCK TABLES `user_usertagprefer` WRITE;
/*!40000 ALTER TABLE `user_usertagprefer` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_usertagprefer` 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 2021-04-24 19:34:24