-- MySQL dump 10.13  Distrib 5.7.36, for Linux (x86_64)
--
-- Host: localhost    Database: dzqdatabase_placeholder
-- ------------------------------------------------------
-- Server version	5.7.36

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!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 */;

--
-- Current Database: `dzqdatabase_placeholder`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `dzqdatabase_placeholder` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;

USE `dzqdatabase_placeholder`;

--
-- Table structure for table `ppre_admin_action_logs`
--

DROP TABLE IF EXISTS `ppre_admin_action_logs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_admin_action_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '操作日志ID',
  `type` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作类型',
  `user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
  `action_desc` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作描述',
  `ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'ip地址',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `ppre_admin_action_logs_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_admin_action_logs`
--

LOCK TABLES `ppre_admin_action_logs` WRITE;
/*!40000 ALTER TABLE `ppre_admin_action_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_admin_action_logs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_admin_sign_in_fields`
--

DROP TABLE IF EXISTS `ppre_admin_sign_in_fields`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_admin_sign_in_fields` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `name` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户端显示的字段名称',
  `type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0:单行文本框 1:多行文本框 2:单选 3:复选 4:图片上传 5:附件上传',
  `fields_ext` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段扩展信息，Json表示选项内容',
  `fields_desc` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段介绍',
  `sort` tinyint(4) NOT NULL DEFAULT '1' COMMENT '自定义显示顺序',
  `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '-1:未启用 0:删除 1：启用',
  `required` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否必填项 0:否 1:是',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_admin_sign_in_fields`
--

LOCK TABLES `ppre_admin_sign_in_fields` WRITE;
/*!40000 ALTER TABLE `ppre_admin_sign_in_fields` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_admin_sign_in_fields` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_attachments`
--

DROP TABLE IF EXISTS `ppre_attachments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_attachments` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '附件 id',
  `uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'uuid',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户 id',
  `type_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '类型数据ID(post_id,dialog_message_id…)',
  `order` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '附件排序',
  `type` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '附件类型(0帖子附件，1帖子图片，2帖子视频，3帖子音频，4消息图片)',
  `is_remote` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否远程附件',
  `is_approved` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '是否合法',
  `attachment` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '文件系统生成的名称',
  `file_path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '文件路径',
  `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '文件原名称',
  `file_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文件大小',
  `file_width` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '宽度',
  `file_height` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '高度',
  `file_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '文件类型',
  `ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'ip 地址',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_attachments`
--

LOCK TABLES `ppre_attachments` WRITE;
/*!40000 ALTER TABLE `ppre_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_attachments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_attachments_share`
--

DROP TABLE IF EXISTS `ppre_attachments_share`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_attachments_share` (
  `sign` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '唯一标识',
  `attachments_id` bigint(20) unsigned NOT NULL COMMENT '附件id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户id',
  `download_count` int(11) DEFAULT '0' COMMENT '下载次数',
  `is_downloaded` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '是否下载 0没有下载 1已下载',
  `code` varchar(6) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '验证码',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `expired_at` timestamp NULL DEFAULT NULL COMMENT '过期时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_attachments_share`
--

LOCK TABLES `ppre_attachments_share` WRITE;
/*!40000 ALTER TABLE `ppre_attachments_share` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_attachments_share` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_categories`
--

DROP TABLE IF EXISTS `ppre_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_categories` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类 id',
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '分类名称',
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '分类描述',
  `icon` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '分类图标',
  `sort` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '显示顺序',
  `property` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '属性：0 正常 1 首页展示',
  `thread_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '主题数',
  `moderators` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '分类版主',
  `ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'ip 地址',
  `parentid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '所属一级分类的ID',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_categories`
--

LOCK TABLES `ppre_categories` WRITE;
/*!40000 ALTER TABLE `ppre_categories` DISABLE KEYS */;
INSERT INTO `ppre_categories` VALUES (1,'默认分类','默认分类','',0,0,0,NULL,'127.0.0.1',0,'2022-07-29 23:42:38','2022-07-29 23:42:38');
/*!40000 ALTER TABLE `ppre_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_deny_users`
--

DROP TABLE IF EXISTS `ppre_deny_users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_deny_users` (
  `user_id` bigint(20) unsigned NOT NULL,
  `deny_user_id` bigint(20) unsigned NOT NULL,
  `created_at` datetime NOT NULL COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_deny_users`
--

LOCK TABLES `ppre_deny_users` WRITE;
/*!40000 ALTER TABLE `ppre_deny_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_deny_users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_dialog`
--

DROP TABLE IF EXISTS `ppre_dialog`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_dialog` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  `dialog_message_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '最新消息ID',
  `sender_user_id` bigint(20) unsigned NOT NULL COMMENT '发送人UID',
  `recipient_user_id` bigint(20) unsigned NOT NULL COMMENT '收信人UID',
  `recipient_read_at` datetime DEFAULT NULL COMMENT '收信人阅读时间',
  `sender_read_at` datetime DEFAULT NULL COMMENT '发送人阅读时间',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `sender_deleted_at` datetime DEFAULT NULL COMMENT '发送人删除时间',
  `recipient_deleted_at` datetime DEFAULT NULL COMMENT '收信人删除时间',
  PRIMARY KEY (`id`),
  KEY `sender_user_id` (`sender_user_id`),
  KEY `recipient_user_id` (`recipient_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_dialog`
--

LOCK TABLES `ppre_dialog` WRITE;
/*!40000 ALTER TABLE `ppre_dialog` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_dialog` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_dialog_message`
--

DROP TABLE IF EXISTS `ppre_dialog_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_dialog_message` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  `dialog_id` bigint(20) unsigned NOT NULL COMMENT '会话ID',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户ID',
  `attachment_id` bigint(20) unsigned NOT NULL COMMENT '附件ID',
  `message_text` text COLLATE utf8mb4_unicode_ci COMMENT '内容',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `read_status` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '阅读状态0.未读 1.已读',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '消息状态 0空消息 1.正常消息',
  PRIMARY KEY (`id`),
  KEY `idx_dialog_id` (`dialog_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_dialog_message`
--

LOCK TABLES `ppre_dialog_message` WRITE;
/*!40000 ALTER TABLE `ppre_dialog_message` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_dialog_message` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_emoji`
--

DROP TABLE IF EXISTS `ppre_emoji`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_emoji` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '表情 id',
  `category` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '表情分类',
  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '表情地址',
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '表情符号',
  `order` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '显示顺序',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_emoji`
--

LOCK TABLES `ppre_emoji` WRITE;
/*!40000 ALTER TABLE `ppre_emoji` DISABLE KEYS */;
INSERT INTO `ppre_emoji` VALUES (1,'qq','emoji/qq/kelian.gif',':kelian:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(2,'qq','emoji/qq/haqian.gif',':haqian:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(3,'qq','emoji/qq/woshou.gif',':woshou:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(4,'qq','emoji/qq/aixin.gif',':aixin:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(5,'qq','emoji/qq/zuohengheng.gif',':zuohengheng:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(6,'qq','emoji/qq/weixiao.gif',':weixiao:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(7,'qq','emoji/qq/jingkong.gif',':jingkong:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(8,'qq','emoji/qq/tiaopi.gif',':tiaopi:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(9,'qq','emoji/qq/touxiao.gif',':touxiao:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(10,'qq','emoji/qq/youling.gif',':youling:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(11,'qq','emoji/qq/caidao.gif',':caidao:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(12,'qq','emoji/qq/cahan.gif',':cahan:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(13,'qq','emoji/qq/hecai.gif',':hecai:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(14,'qq','emoji/qq/keai.gif',':keai:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(15,'qq','emoji/qq/ciya.gif',':ciya:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(16,'qq','emoji/qq/saorao.gif',':saorao:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(17,'qq','emoji/qq/jingxi.gif',':jingxi:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(18,'qq','emoji/qq/ku.gif',':ku:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(19,'qq','emoji/qq/piezui.gif',':piezui:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(20,'qq','emoji/qq/se.gif',':se:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(21,'qq','emoji/qq/xia.gif',':xia:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(22,'qq','emoji/qq/yinxian.gif',':yinxian:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(23,'qq','emoji/qq/zhouma.gif',':zhouma:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(24,'qq','emoji/qq/kulou.gif',':kulou:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(25,'qq','emoji/qq/xu.gif',':xu:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(26,'qq','emoji/qq/jingya.gif',':jingya:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(27,'qq','emoji/qq/doge.gif',':doge:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(28,'qq','emoji/qq/bizui.gif',':bizui:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(29,'qq','emoji/qq/yangtuo.gif',':yangtuo:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(30,'qq','emoji/qq/shouqiang.gif',':shouqiang:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(31,'qq','emoji/qq/baoquan.gif',':baoquan:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(32,'qq','emoji/qq/yun.gif',':yun:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(33,'qq','emoji/qq/lanqiu.gif',':lanqiu:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(34,'qq','emoji/qq/zhemo.gif',':zhemo:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(35,'qq','emoji/qq/guzhang.gif',':guzhang:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(36,'qq','emoji/qq/shengli.gif',':shengli:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(37,'qq','emoji/qq/zaijian.gif',':zaijian:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(38,'qq','emoji/qq/dabing.gif',':dabing:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(39,'qq','emoji/qq/deyi.gif',':deyi:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(40,'qq','emoji/qq/hanxiao.gif',':hanxiao:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(41,'qq','emoji/qq/kun.gif',':kun:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(42,'qq','emoji/qq/hexie.gif',':hexie:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(43,'qq','emoji/qq/daku.gif',':daku:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(44,'qq','emoji/qq/wozuimei.gif',':wozuimei:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(45,'qq','emoji/qq/xiaoku.gif',':xiaoku:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(46,'qq','emoji/qq/xigua.gif',':xigua:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(47,'qq','emoji/qq/huaixiao.gif',':huaixiao:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(48,'qq','emoji/qq/liulei.gif',':liulei:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(49,'qq','emoji/qq/lenghan.gif',':lenghan:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(50,'qq','emoji/qq/qiudale.gif',':qiudale:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(51,'qq','emoji/qq/zhayanjian.gif',':zhayanjian:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(52,'qq','emoji/qq/qiaoda.gif',':qiaoda:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(53,'qq','emoji/qq/baojin.gif',':baojin:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(54,'qq','emoji/qq/OK.gif',':OK:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(55,'qq','emoji/qq/xiaojiujie.gif',':xiaojiujie:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(56,'qq','emoji/qq/gouyin.gif',':gouyin:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(57,'qq','emoji/qq/youhengheng.gif',':youhengheng:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(58,'qq','emoji/qq/tuosai.gif',':tuosai:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(59,'qq','emoji/qq/nanguo.gif',':nanguo:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(60,'qq','emoji/qq/quantou.gif',':quantou:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(61,'qq','emoji/qq/haixiu.gif',':haixiu:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(62,'qq','emoji/qq/koubi.gif',':koubi:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(63,'qq','emoji/qq/qiang.gif',':qiang:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(64,'qq','emoji/qq/pijiu.gif',':pijiu:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(65,'qq','emoji/qq/bishi.gif',':bishi:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(66,'qq','emoji/qq/yiwen.gif',':yiwen:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(67,'qq','emoji/qq/liuhan.gif',':liuhan:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(68,'qq','emoji/qq/wunai.gif',':wunai:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(69,'qq','emoji/qq/aini.gif',':aini:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(70,'qq','emoji/qq/bangbangtang.gif',':bangbangtang:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(71,'qq','emoji/qq/penxue.gif',':penxue:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(72,'qq','emoji/qq/haobang.gif',':haobang:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(73,'qq','emoji/qq/qinqin.gif',':qinqin:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(74,'qq','emoji/qq/xiaoyanger.gif',':xiaoyanger:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(75,'qq','emoji/qq/fendou.gif',':fendou:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(76,'qq','emoji/qq/ganga.gif',':ganga:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(77,'qq','emoji/qq/shuai.gif',':shuai:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(78,'qq','emoji/qq/juhua.gif',':juhua:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(79,'qq','emoji/qq/baiyan.gif',':baiyan:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(80,'qq','emoji/qq/fanu.gif',':fanu:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(81,'qq','emoji/qq/jie.gif',':jie:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(82,'qq','emoji/qq/chi.gif',':chi:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(83,'qq','emoji/qq/kuaikule.gif',':kuaikule:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(84,'qq','emoji/qq/zhuakuang.gif',':zhuakuang:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(85,'qq','emoji/qq/shui.gif',':shui:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(86,'qq','emoji/qq/dan.gif',':dan:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(87,'qq','emoji/qq/aoman.gif',':aoman:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(88,'qq','emoji/qq/fadai.gif',':fadai:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(89,'qq','emoji/qq/leiben.gif',':leiben:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(90,'qq','emoji/qq/tu.gif',':tu:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(91,'qq','emoji/qq/weiqu.gif',':weiqu:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38'),(92,'qq','emoji/qq/xieyanxiao.gif',':xieyanxiao:',0,'2022-07-29 23:42:38','2022-07-29 23:42:38');
/*!40000 ALTER TABLE `ppre_emoji` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_finance`
--

DROP TABLE IF EXISTS `ppre_finance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_finance` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  `income` decimal(10,2) unsigned NOT NULL COMMENT '用户充值金额',
  `withdrawal` decimal(10,2) unsigned NOT NULL COMMENT '用户提现金额',
  `order_count` int(10) unsigned NOT NULL COMMENT '订单数量',
  `order_amount` decimal(10,2) unsigned NOT NULL COMMENT '订单金额',
  `total_profit` decimal(10,2) unsigned NOT NULL COMMENT '平台盈利',
  `register_profit` decimal(10,2) unsigned NOT NULL COMMENT '注册收入',
  `master_portion` decimal(10,2) unsigned NOT NULL COMMENT '打赏贴的分成',
  `withdrawal_profit` decimal(10,2) unsigned NOT NULL COMMENT '提现手续费收入',
  `created_at` date NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_finance`
--

LOCK TABLES `ppre_finance` WRITE;
/*!40000 ALTER TABLE `ppre_finance` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_finance` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_group_paid_users`
--

DROP TABLE IF EXISTS `ppre_group_paid_users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_group_paid_users` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '所属用户',
  `group_id` bigint(20) unsigned NOT NULL COMMENT '用户组 id',
  `order_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '订单 id',
  `operator_id` bigint(20) unsigned DEFAULT NULL COMMENT '操作人',
  `delete_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '删除类型：1到期删除，2管理员修改，3用户复购',
  `expiration_time` datetime NOT NULL COMMENT '用户组到期时间',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_group_paid_users`
--

LOCK TABLES `ppre_group_paid_users` WRITE;
/*!40000 ALTER TABLE `ppre_group_paid_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_group_paid_users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_group_permission`
--

DROP TABLE IF EXISTS `ppre_group_permission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_group_permission` (
  `group_id` bigint(20) unsigned NOT NULL COMMENT '用户组 id',
  `permission` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '权限名称',
  PRIMARY KEY (`group_id`,`permission`),
  CONSTRAINT `ppre_group_permission_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `ppre_groups` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_group_permission`
--

LOCK TABLES `ppre_group_permission` WRITE;
/*!40000 ALTER TABLE `ppre_group_permission` DISABLE KEYS */;
INSERT INTO `ppre_group_permission` VALUES (6,'order.create'),(6,'thread.insertAttachment'),(6,'thread.insertImage'),(6,'trade.pay.order'),(7,'switch.thread.viewPosts'),(7,'switch.viewThreads'),(7,'thread.downloadAttachment'),(7,'thread.viewAttachment'),(7,'thread.viewPosts'),(7,'thread.viewVideo'),(7,'viewThreads'),(8,'switch.thread.viewPosts'),(8,'switch.viewThreads'),(8,'thread.downloadAttachment'),(8,'thread.viewAttachment'),(8,'thread.viewPosts'),(8,'thread.viewVideo'),(8,'viewThreads'),(10,'cash.create'),(10,'createThread'),(10,'dialog.create'),(10,'order.create'),(10,'switch.createThread'),(10,'switch.thread.editOwnThreadOrPost'),(10,'switch.thread.hideOwnThreadOrPost'),(10,'switch.thread.reply'),(10,'switch.thread.viewPosts'),(10,'switch.viewThreads'),(10,'thread.allowAnonymous'),(10,'thread.downloadAttachment'),(10,'thread.editOwnThreadOrPost'),(10,'thread.favorite'),(10,'thread.hideOwnThreadOrPost'),(10,'thread.insertAttachment'),(10,'thread.insertGoods'),(10,'thread.insertImage'),(10,'thread.insertPay'),(10,'thread.insertPosition'),(10,'thread.insertRedPacket'),(10,'thread.insertReward'),(10,'thread.likePosts'),(10,'thread.reply'),(10,'thread.viewAttachment'),(10,'thread.viewPosts'),(10,'thread.viewVideo'),(10,'trade.pay.order'),(10,'user.view'),(10,'userFollow.create'),(10,'viewThreads');
/*!40000 ALTER TABLE `ppre_group_permission` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_group_user`
--

DROP TABLE IF EXISTS `ppre_group_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_group_user` (
  `group_id` bigint(20) unsigned NOT NULL COMMENT '用户组 id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户 id',
  `expiration_time` datetime DEFAULT NULL COMMENT '用户组到期时间',
  PRIMARY KEY (`group_id`,`user_id`),
  KEY `ppre_group_user_user_id_foreign` (`user_id`),
  CONSTRAINT `ppre_group_user_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `ppre_groups` (`id`) ON DELETE CASCADE,
  CONSTRAINT `ppre_group_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `ppre_users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_group_user`
--

LOCK TABLES `ppre_group_user` WRITE;
/*!40000 ALTER TABLE `ppre_group_user` DISABLE KEYS */;
INSERT INTO `ppre_group_user` VALUES (1,1,NULL);
/*!40000 ALTER TABLE `ppre_group_user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_group_user_mqs`
--

DROP TABLE IF EXISTS `ppre_group_user_mqs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_group_user_mqs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `group_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户组id',
  `user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
  `remain_days` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '剩余天数',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_group_user_mqs`
--

LOCK TABLES `ppre_group_user_mqs` WRITE;
/*!40000 ALTER TABLE `ppre_group_user_mqs` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_group_user_mqs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_groups`
--

DROP TABLE IF EXISTS `ppre_groups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_groups` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户组 id',
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户组名称',
  `type` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '类型',
  `color` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '颜色',
  `icon` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'icon',
  `default` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认',
  `is_display` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否显示在用户名后',
  `is_paid` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否收费：0不收费，1收费',
  `fee` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '收费金额',
  `level` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '付费用户组等级',
  `days` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '付费获得天数',
  `scale` double(3,1) NOT NULL DEFAULT '0.0' COMMENT '分成比例',
  `is_subordinate` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否可以 推广下线',
  `is_commission` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否可以 收入提成',
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '特权描述',
  `notice` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '须知',
  `time_range` int(11) NOT NULL DEFAULT '0' COMMENT '访问的时间范围(天)',
  `content_range` int(11) NOT NULL DEFAULT '0' COMMENT '访问的内容范围(天)',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_groups`
--

LOCK TABLES `ppre_groups` WRITE;
/*!40000 ALTER TABLE `ppre_groups` DISABLE KEYS */;
INSERT INTO `ppre_groups` VALUES (1,'管理员','','','',0,0,0,0.00,0,0,0.0,0,0,'','',0,0),(6,'待付费','','','',0,0,0,0.00,0,0,0.0,0,0,'','',0,0),(7,'游客','','','',0,0,0,0.00,0,0,0.0,0,0,'','',0,0),(8,'免费体验','','','',0,0,0,0.00,0,0,0.0,0,0,'','',0,0),(10,'普通会员','','','',1,0,0,0.00,0,0,0.0,0,0,'','',0,0);
/*!40000 ALTER TABLE `ppre_groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_invite_users`
--

DROP TABLE IF EXISTS `ppre_invite_users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_invite_users` (
  `invite_id` int(10) unsigned NOT NULL COMMENT '邀请码id',
  `code` char(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '邀请码',
  `user_id` int(10) unsigned NOT NULL COMMENT '邀请用户 id',
  `to_user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '被邀请用户 id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_invite_users`
--

LOCK TABLES `ppre_invite_users` WRITE;
/*!40000 ALTER TABLE `ppre_invite_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_invite_users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_invites`
--

DROP TABLE IF EXISTS `ppre_invites`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_invites` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '邀请 id',
  `group_id` bigint(20) unsigned NOT NULL COMMENT '默认用户组 id',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '类型:1普通用户2管理员',
  `code` char(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '邀请码',
  `dateline` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '邀请码生效时间',
  `endtime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '邀请码结束时间',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '邀请用户 id',
  `to_user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '被邀请用户 id',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '邀请码状态:0失效1未使用2已使用3已过期',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_code` (`code`),
  KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_invites`
--

LOCK TABLES `ppre_invites` WRITE;
/*!40000 ALTER TABLE `ppre_invites` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_invites` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_migrations`
--

DROP TABLE IF EXISTS `ppre_migrations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_migrations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=169 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_migrations`
--

LOCK TABLES `ppre_migrations` WRITE;
/*!40000 ALTER TABLE `ppre_migrations` DISABLE KEYS */;
INSERT INTO `ppre_migrations` VALUES (1,'2020_01_01_000001_create_users',1),(2,'2020_01_01_000002_create_groups',1),(3,'2020_01_01_000003_create_group_permission',1),(4,'2020_01_01_000004_create_group_user',1),(5,'2020_01_01_000005_create_categories',1),(6,'2020_01_01_000006_create_threads',1),(7,'2020_01_01_000007_create_posts',1),(8,'2020_01_01_000008_create_thread_user',1),(9,'2020_01_01_000009_create_post_user',1),(10,'2020_01_01_000010_create_post_mod',1),(11,'2020_01_01_000011_create_attachments',1),(12,'2020_01_01_000012_create_stop_words',1),(13,'2020_01_01_000013_create_operation_log',1),(14,'2020_01_01_000014_create_orders',1),(15,'2020_01_01_000015_create_pay_notify',1),(16,'2020_01_01_000016_create_user_wechats',1),(17,'2020_01_01_000017_create_user_wallets',1),(18,'2020_01_01_000018_create_user_wallet_cash',1),(19,'2020_01_01_000019_create_user_wallet_logs',1),(20,'2020_01_01_000020_create_user_login_fail_log',1),(21,'2020_01_01_000021_create_emoji',1),(22,'2020_01_01_000022_create_invites',1),(23,'2020_01_01_000023_create_mobile_codes',1),(24,'2020_01_01_000024_create_notifications',1),(25,'2020_01_01_000025_create_settings',1),(26,'2020_01_01_000026_create_user_follow',1),(27,'2020_01_01_000027_create_finance',1),(28,'2020_01_01_000028_create_dialog',1),(29,'2020_01_01_000029_create_dialog_message',1),(30,'2020_01_01_000030_create_notification_tpls',1),(31,'2020_01_01_000031_create_session_tokens',1),(32,'2020_01_01_000032_create_thread_video',1),(33,'2020_03_20_104938_add_order_to_attachments',1),(34,'2020_03_24_183227_create_user_wallet_fail_logs',1),(35,'2020_03_28_012029_alter_users',1),(36,'2020_04_14_101710_add_is_anonymous_to_orders',1),(37,'2020_04_14_104730_update_users_table',1),(38,'2020_04_14_174156_add_liked_count_to_users',1),(39,'2020_04_16_134237_create_post_mentions_user',1),(40,'2020_04_16_162908_add_free_words_to_threads',1),(41,'2020_04_17_152036_add_paid_count_to_threads',1),(42,'2020_04_20_185606_add_read_at_to_dialog',1),(43,'2020_04_23_143614_add_is_display_to_groups',1),(44,'2020_04_23_154946_create_topics',1),(45,'2020_04_23_155120_create_thread_topic',1),(46,'2020_04_26_111725_create_reports',1),(47,'2020_04_26_142056_create_deny_users',1),(48,'2020_04_30_150256_rename_operation_log_to_user_action_logs',1),(49,'2020_04_30_153136_create_operation_logs',1),(50,'2020_05_07_174510_add_location_to_posts',1),(51,'2020_05_08_172741_create_post_goods',1),(52,'2020_05_11_164733_create_group_paid_users',1),(53,'2020_05_11_164907_alter_add_expiration_time_to_groups',1),(54,'2020_05_11_165014_alter_add_groups_paid_mod',1),(55,'2020_05_11_165120_alter_add_group_id_to_orders',1),(56,'2020_05_11_175730_change_thread_video_columns',1),(57,'2020_05_21_191500_alter_user_wechats',1),(58,'2020_06_01_114859_alter_type_to_attachments',1),(59,'2020_06_01_172353_alter_attachment_to_dialog_message',1),(60,'2020_06_03_170416_alter_add_port_to_users',1),(61,'2020_06_03_170507_alter_add_port_to_posts',1),(62,'2020_06_08_155901_create_user_qq',1),(63,'2020_06_08_155901_create_user_qy_wechats',1),(64,'2020_06_10_105230_alter_add_foreign_key_to_user_follow',1),(65,'2020_06_10_115509_alter_bigint_to_all',1),(66,'2020_06_10_190229_alter_foreign_key_to_user_wechats',1),(67,'2020_06_12_185624_create_wechat_offiaccount_replies',1),(68,'2020_06_16_161128_change_threads_free_words_column_length',1),(69,'2020_06_23_170151_change_wechat_offiaccount_replies_column',1),(70,'2020_07_01_143404_change_user_wchats_user_id_to_null',1),(71,'2020_07_03_171957_change_timestamps_to_datetime',1),(72,'2020_07_15_183427_add_posts_reply_post_id_index',1),(73,'2020_07_22_180923_add_duration_to_thread_video',1),(74,'2020_07_24_145712_add_expired_at_to_orders',1),(75,'2020_08_03_183433_change_scale_to_groups',1),(76,'2020_08_04_154120_create_user_distributions',1),(77,'2020_08_05_114608_add_category_id_index_to_threads',1),(78,'2020_08_05_233234_add_be_scale_to_orders',1),(79,'2020_08_07_174108_add_code_unique_to_invites',1),(80,'2020_08_12_142541_create_user_ucenters',1),(81,'2020_08_12_161140_alert_add_recommended_to_topics',1),(82,'2020_08_12_161154_alert_add_recommended_at_to_topics',1),(83,'2020_08_17_111947_add_location_to_threads',1),(84,'2020_08_20_104455_add_is_subordinate_is_commission_to_groups',1),(85,'2020_08_26_181122_add_address_to_threads',1),(86,'2020_09_03_153645_add_moderators_to_categories',1),(87,'2020_09_04_152844_create_questions',1),(88,'2020_09_05_122736_add_question_id_to_user_wallet_logs',1),(89,'2020_09_08_111818_add_cash_type_to_user_wallet_cash',1),(90,'2020_09_09_184716_add_third_party_to_orders',1),(91,'2020_09_09_203924_add_foreign_keys_to_group_permission',1),(92,'2020_09_14_150620_add_is_site_to_threads',1),(93,'2020_09_21_184613_add_attachment_price_to_threads',1),(94,'2020_09_25_164242_add_delete_at_to_dialog',1),(95,'2020_09_27_175432_add_index_to_dialog_message',1),(96,'2020_09_27_184315_add_question_count_to_users',1),(97,'2020_10_12_160100_add_answered_at_to_questions',1),(98,'2020_10_13_190715_change_is_anonymous',1),(99,'2020_10_21_152510_add_signature_and_dialog_to_stop_words',1),(100,'2020_10_26_135924_add_is_display_to_threads',1),(101,'2020_10_26_141128_alter_thread_add_free_percent',1),(102,'2020_11_10_192530_add_some_index_to_user_wechats',1),(103,'2020_11_11_105024_change_price_to_post_goods',1),(104,'2020_12_01_141226_create_admin_sign_in_fields',1),(105,'2020_12_01_141450_create_user_sign_in_fields',1),(106,'2020_12_15_174414_add_comment_ids_to_posts',1),(107,'2021_01_05_152234_add_reject_reason_to_users',1),(108,'2021_01_16_141011_create_admin_action_logs',1),(109,'2021_01_16_171411_add_parentid_to_categories',1),(110,'2021_01_16_173911_add_post_id_to_orders',1),(111,'2021_01_16_174311_create_sequences',1),(112,'2021_01_16_174811_add_is_red_packet_is_draft_to_threads',1),(113,'2021_01_16_175811_create_thread_red_packets',1),(114,'2021_01_16_182011_create_thread_rewards',1),(115,'2021_01_16_183511_add_thread_id_post_id_to_user_wallet_logs',1),(116,'2021_01_21_104847_add_data_to_notification_tpls',1),(117,'2021_01_27_000001_alter_bind_type_to_users',1),(118,'2021_02_03_173216_add_notice_id_to_notification_tpls',1),(119,'2021_02_25_110000_alter_content_to_posts',1),(120,'2021_03_15_210352_add_posted_at_to_threads',1),(121,'2021_03_19_103811_add_error_to_notification_tpls',1),(122,'2021_03_31_000001_create_miniprogram_scheme_manage',1),(123,'2021_03_31_001501_alter_nickname_to_users',1),(124,'2021_04_07_142710_create_thread_tom',1),(125,'2021_04_15_001501_alter_nickname_to_stop_words',1),(126,'2021_04_16_153632_create_thread_tag',1),(127,'2021_04_16_153727_add_share_count_to_threads',1),(128,'2021_04_17_103345_add_refund_to_orders',1),(129,'2021_04_17_103356_create_order_children',1),(130,'2021_04_26_173510_add_back_image_to_users',1),(131,'2021_05_11_175029_alter_read_status_to_dialog_message',1),(132,'2021_05_14_175029_create_attachments_share',1),(133,'2021_05_17_092200_create_username_change',1),(134,'2021_06_18_200700_add_file_height_file_width_to_attachments',1),(135,'2021_06_24_202106_add_status_to_dialog_message',1),(136,'2021_07_02_202107_alter_sequences',1),(137,'2021_08_02_153832_create_thread_vote_table',1),(138,'2021_08_02_154729_create_thread_vote_subitems_table',1),(139,'2021_08_02_155026_create_thread_vote_users_table',1),(140,'2021_08_17_000001_change_nickname_index',1),(141,'2021_08_18_180945_add_source_to_threads',1),(142,'2021_08_18_181532_create_thread_user_view_records',1),(143,'2021_08_31_141920_create_thread_sticks',1),(144,'2021_09_01_154238_create_site_info_daily_table',1),(145,'2021_09_06_154239_add_issue_at_to_threads',1),(146,'2021_09_08_202007_create_plugin_settings',1),(147,'2021_09_08_202024_create_plugin_group_permission',1),(148,'2021_09_09_143017_add_three_terminal_start_to_site_table',1),(149,'2021_09_09_173237_alter_thread_tom',1),(150,'2021_09_10_112512_create_plugin_activity_thread_activity',1),(151,'2021_09_10_130011_create_plugin_activity_user',1),(152,'2021_09_14_184615_add_is_downloaded_to_share',1),(153,'2021_09_16_145205_add_level_to_groups_table',1),(154,'2021_09_16_151415_create_group_user_mqs_table',1),(155,'2021_09_22_125749_add_describe_to_groups',1),(156,'2021_10_08_141951_create_notification_timing',1),(157,'2021_10_08_143054_add_fields_to_notification_tpls',1),(158,'2021_10_20_091120_create_thread_stick_sort_table',1),(159,'2021_10_20_201759_create_plugin_shop_wxshop_products',1),(160,'2021_10_21_114753_add_additional_info_to_activity',1),(161,'2021_10_22_113435_alert_public_value_to_plugin_settings',1),(162,'2021_10_25_102640_add_additional_info_to_plugin_activity_user',1),(163,'2021_10_25_191556_add_receive_account_to_user_wallet_cash',1),(164,'2021_11_03_111533_add_type_to_admin_action_logs',1),(165,'2021_11_03_164934_add_price_type_to_thread_tom_table',1),(166,'2021_11_28_155723_add_fields_to_groups',1),(167,'2021_11_30_153751_create_invite_users',1),(168,'2022_01_10_105925_add_user_subitem_id_to_thread_vote_users_table',1);
/*!40000 ALTER TABLE `ppre_migrations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_miniprogram_scheme_manage`
--

DROP TABLE IF EXISTS `ppre_miniprogram_scheme_manage`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_miniprogram_scheme_manage` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mini_app_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '小程序appid',
  `scheme` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '小程序全局scheme',
  `expired_at` int(11) NOT NULL COMMENT '过期时间',
  `created_at` int(11) NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_miniprogram_scheme_manage`
--

LOCK TABLES `ppre_miniprogram_scheme_manage` WRITE;
/*!40000 ALTER TABLE `ppre_miniprogram_scheme_manage` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_miniprogram_scheme_manage` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_mobile_codes`
--

DROP TABLE IF EXISTS `ppre_mobile_codes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_mobile_codes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '验证码 id',
  `mobile` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '手机号',
  `code` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '验证码',
  `type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '验证类型',
  `state` tinyint(4) NOT NULL DEFAULT '0' COMMENT '验证状态',
  `ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'ip',
  `expired_at` datetime DEFAULT NULL COMMENT '验证码过期时间',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_mobile_codes`
--

LOCK TABLES `ppre_mobile_codes` WRITE;
/*!40000 ALTER TABLE `ppre_mobile_codes` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_mobile_codes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_notification_timing`
--

DROP TABLE IF EXISTS `ppre_notification_timing`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_notification_timing` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增长id',
  `notice_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模板唯一标识ID',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '接收通知的用户id',
  `number` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '通知条数',
  `data` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '通知数据',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `expired_at` timestamp NULL DEFAULT NULL COMMENT '过期时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_notification_timing`
--

LOCK TABLES `ppre_notification_timing` WRITE;
/*!40000 ALTER TABLE `ppre_notification_timing` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_notification_timing` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_notification_tpls`
--

DROP TABLE IF EXISTS `ppre_notification_tpls`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_notification_tpls` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `notice_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '模板唯一标识ID',
  `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '模板状态:1开启0关闭',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '通知类型:0系统1微信2短信',
  `type_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '类型名称',
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '标题',
  `content` text COLLATE utf8mb4_unicode_ci COMMENT '内容',
  `vars` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '可选的变量',
  `template_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '模板ID',
  `first_data` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'first.DATA',
  `keywords_data` text COLLATE utf8mb4_unicode_ci COMMENT 'keywords.DATA',
  `remark_data` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'remark.DATA',
  `color` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'data color',
  `redirect_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '跳转类型：0无跳转 1跳转H5 2跳转小程序',
  `redirect_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '跳转地址',
  `page_path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '跳转路由',
  `is_error` tinyint(4) NOT NULL DEFAULT '0' COMMENT '模板是否配置错误',
  `error_msg` text COLLATE utf8mb4_unicode_ci COMMENT '错误信息',
  `push_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '消息推送类型(0:即时推送,1:间隔推送)',
  `delay_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '间隔推送延迟时间(秒)',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_notice_id` (`notice_id`)
) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_notification_tpls`
--

LOCK TABLES `ppre_notification_tpls` WRITE;
/*!40000 ALTER TABLE `ppre_notification_tpls` DISABLE KEYS */;
INSERT INTO `ppre_notification_tpls` VALUES (1,'system.registered.passed',1,0,'新用户注册通知','欢迎加入{sitename}','{username}你好，你已经成为{sitename} 的{groupname} ，请你在发表言论时，遵守当地法律法规。祝你在这里玩的愉快。','a:4:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:10:\"{sitename}\";s:12:\"站点名称\";s:11:\"{groupname}\";s:9:\"用户组\";}','','',NULL,'','',0,'','',0,NULL,0,0),(2,'system.registered.approved',1,0,'注册审核通过通知','注册审核通知','{username}你好，你的注册申请已审核通过。','a:2:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";}','','',NULL,'','',0,'','',0,NULL,0,0),(3,'system.registered.unapproved',1,0,'注册审核不通过通知','注册审核通知','{username}你好，你的注册申请审核不通过，原因：{reason}','a:3:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:8:\"{reason}\";s:6:\"原因\";}','','',NULL,'','',0,'','',0,NULL,0,0),(4,'system.post.unapproved',1,0,'内容审核不通过通知','内容审核通知','{username}你好，你发布的内容 \"{content}\" 审核不通过，原因：{reason}','a:4:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:9:\"{content}\";s:6:\"内容\";s:8:\"{reason}\";s:6:\"原因\";}','','',NULL,'','',0,'','',0,NULL,0,0),(5,'system.post.approved',1,0,'内容审核通过通知','内容审核通知','{username}你好，你发布的内容 \"{content}\" 审核通过','a:3:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:9:\"{content}\";s:6:\"内容\";}','','',NULL,'','',0,'','',0,NULL,0,0),(6,'system.post.deleted',1,0,'内容删除通知','内容通知','{username}你好，你发布的内容 \"{content} \" 已删除，原因：{reason}','a:4:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:9:\"{content}\";s:6:\"内容\";s:8:\"{reason}\";s:6:\"原因\";}','','',NULL,'','',0,'','',0,NULL,0,0),(7,'system.post.essence',1,0,'内容精华通知','内容通知','{username}你好，你发布的内容 \"{content}\" 已设为精华','a:3:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:9:\"{content}\";s:6:\"内容\";}','','',NULL,'','',0,'','',0,NULL,0,0),(8,'system.post.sticky',1,0,'内容置顶通知','内容通知','{username}你好，你发布的内容 \"{content}\" 已置顶','a:3:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:9:\"{content}\";s:6:\"内容\";}','','',NULL,'','',0,'','',0,NULL,0,0),(9,'system.post.update',1,0,'内容修改通知','内容通知','{username}你好，你发布的内容 \"{content}\" 已被修改','a:3:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:9:\"{content}\";s:6:\"内容\";}','','',NULL,'','',0,'','',0,NULL,0,0),(10,'system.user.disable',1,0,'用户禁用通知','用户通知','{username}你好，你的帐号已禁用，原因：{reason}','a:3:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:8:\"{reason}\";s:6:\"原因\";}','','',NULL,'','',0,'','',0,NULL,0,0),(11,'system.user.normal',1,0,'用户解除禁用通知','用户通知','{username}你好，你的帐号已解除禁用','a:2:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";}','','',NULL,'','',0,'','',0,NULL,0,0),(12,'system.user.group',1,0,'用户角色调整通知','角色通知','{username}你好，你的角色由{oldgroupname}变更为{newgroupname}','a:4:{s:10:\"{username}\";s:9:\"用户名\";s:10:\"{nickname}\";s:6:\"昵称\";s:14:\"{oldgroupname}\";s:12:\"老用户组\";s:14:\"{newgroupname}\";s:12:\"新用户组\";}','','',NULL,'','',0,'','',0,NULL,0,0),(13,'system.post.replied',1,0,'内容回复通知','内容通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(14,'system.post.liked',1,0,'内容点赞通知','内容通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(15,'system.post.paid',1,0,'内容支付通知','内容通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(16,'system.post.reminded',1,0,'内容@通知','内容通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(17,'system.withdraw.noticed',1,0,'提现通知','财务通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(18,'system.withdraw.withdraw',1,0,'提现失败通知','财务通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(19,'system.divide.income',1,0,'分成收入通知','内容通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(20,'system.question.asked',1,0,'问答提问通知','问答通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(21,'system.question.answered',1,0,'问答回答通知','问答通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(22,'system.question.expired',1,0,'问答过期通知','内容通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(23,'system.red_packet.gotten',1,0,'得到红包通知','红包通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(24,'system.question.rewarded',1,0,'悬赏问答通知','悬赏通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(25,'system.question.rewarded.expired',1,0,'悬赏过期通知','悬赏通知','','','','',NULL,'','',0,'','',0,NULL,0,0),(26,'system.system.user.group.upgrade',1,0,'用户组升级通知','账号升级通知','【{nickname}】恭喜你，成功升级为【{groupname}】！','a:2:{s:10:\"{nickname}\";s:12:\"用户昵称\";s:11:\"{groupname}\";s:15:\"升级用户组\";}','','',NULL,'','',0,'','',0,NULL,0,0),(27,'system.system.user.group.expired',1,0,'站点续费用户组续费通知','续费通知','【{nickname}】，您购买的【{groupname}】即将过期，过期后将无法享受当前权益，请及时续费。','a:2:{s:10:\"{nickname}\";s:12:\"用户昵称\";s:11:\"{groupname}\";s:12:\"老用户组\";}','','',NULL,'','',0,'','',0,NULL,0,0),(28,'wechat.registered.passed',0,1,'新用户注册通知','微信注册通知',NULL,'','','',NULL,'','',0,'','/pages/home/index',0,NULL,0,0),(29,'wechat.registered.approved',0,1,'注册审核通过通知','微信注册审核通知',NULL,'','','',NULL,'','',0,'','/pages/home/index',0,NULL,0,0),(30,'wechat.registered.unapproved',0,1,'注册审核不通过通知','微信注册审核通知',NULL,'','','',NULL,'','',0,'','/pages/home/index',0,NULL,0,0),(31,'wechat.post.approved',0,1,'内容审核通过通知','微信内容审核通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(32,'wechat.post.unapproved',0,1,'内容审核不通过通知','微信内容审核通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(33,'wechat.post.deleted',0,1,'内容删除通知','微信内容通知',NULL,'','','',NULL,'','',0,'','/pages/home/index',0,NULL,0,0),(34,'wechat.post.essence',0,1,'内容精华通知','微信内容通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(35,'wechat.post.sticky',0,1,'内容置顶通知','微信内容通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(36,'wechat.post.update',0,1,'内容修改通知','微信内容通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(37,'wechat.user.disable',0,1,'用户禁用通知','微信用户通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=系统通知&type=system',0,NULL,0,0),(38,'wechat.user.normal',0,1,'用户解除禁用通知','微信用户通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=系统通知&type=system',0,NULL,0,0),(39,'wechat.user.group',0,1,'用户角色调整通知','微信角色通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=系统通知&type=system',0,NULL,0,0),(40,'wechat.post.replied',0,1,'内容回复通知','微信内容通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=回复我的&type=replied',0,NULL,0,0),(41,'wechat.post.liked',0,1,'内容点赞通知','微信内容通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=点赞我的&type=liked',0,NULL,0,0),(42,'wechat.post.paid',0,1,'内容支付通知','微信内容通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=财务通知&type=rewarded,withdrawal',0,NULL,0,0),(43,'wechat.post.reminded',0,1,'内容@通知','微信内容通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(44,'wechat.withdraw.noticed',0,1,'提现通知','微信财务通知',NULL,'','','',NULL,'','',0,'','/pages/my/withdrawalslist',0,NULL,0,0),(45,'wechat.withdraw.withdraw',0,1,'提现失败通知','微信财务通知',NULL,'','','',NULL,'','',0,'','/pages/my/withdrawalslist',0,NULL,0,0),(46,'wechat.divide.income',0,1,'分成收入通知','微信内容通知',NULL,'','','',NULL,'','',0,'','/pages/my/walletlist',0,NULL,0,0),(47,'wechat.question.asked',0,1,'问答提问通知','微信问答通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(48,'wechat.question.answered',0,1,'问答回答通知','微信问答通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(49,'wechat.question.expired',0,1,'问答过期通知','微信问答通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(50,'wechat.red_packet.gotten',0,1,'得到红包通知','微信红包通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(51,'wechat.question.rewarded',0,1,'悬赏问答通知','微信悬赏通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(52,'wechat.question.rewarded.expired',0,1,'悬赏过期通知','微信悬赏通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(53,'miniprogram.registered.passed',0,4,'新用户注册通知','小程序注册通知',NULL,'','','',NULL,'','',0,'','/pages/home/index',0,NULL,0,0),(54,'miniprogram.registered.approved',0,4,'注册审核通过通知','小程序注册审核通知',NULL,'','','',NULL,'','',0,'','/pages/home/index',0,NULL,0,0),(55,'miniprogram.registered.unapproved',0,4,'注册审核不通过通知','小程序注册审核通知',NULL,'','','',NULL,'','',0,'','/pages/home/index',0,NULL,0,0),(56,'miniprogram.post.approved',0,4,'内容审核通过通知','小程序内容审核通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(57,'miniprogram.post.unapproved',0,4,'内容审核不通过通知','小程序内容审核通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(58,'miniprogram.post.deleted',0,4,'内容删除通知','小程序内容通知',NULL,'','','',NULL,'','',0,'','/pages/home/index',0,NULL,0,0),(59,'miniprogram.post.essence',0,4,'内容精华通知','小程序内容通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(60,'miniprogram.post.sticky',0,4,'内容置顶通知','小程序内容通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(61,'miniprogram.post.update',0,4,'内容修改通知','小程序内容通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(62,'miniprogram.user.disable',0,4,'用户禁用通知','小程序用户通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=系统通知&type=system',0,NULL,0,0),(63,'miniprogram.user.normal',0,4,'用户解除禁用通知','小程序用户通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=系统通知&type=system',0,NULL,0,0),(64,'miniprogram.user.group',0,4,'用户角色调整通知','小程序角色通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=系统通知&type=system',0,NULL,0,0),(65,'miniprogram.post.replied',0,4,'内容回复通知','小程序内容通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=回复我的&type=replied',0,NULL,0,0),(66,'miniprogram.post.liked',0,4,'内容点赞通知','小程序内容通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=点赞我的&type=liked',0,NULL,0,0),(67,'miniprogram.post.paid',0,4,'内容支付通知','小程序内容通知',NULL,'','','',NULL,'','',0,'','/pages/notice/notice?title=财务通知&type=rewarded,withdrawal',0,NULL,0,0),(68,'miniprogram.post.reminded',0,4,'内容@通知','小程序内容通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(69,'miniprogram.withdraw.noticed',0,4,'提现通知','小程序财务通知',NULL,'','','',NULL,'','',0,'','/pages/my/withdrawalslist',0,NULL,0,0),(70,'miniprogram.withdraw.withdraw',0,4,'提现失败通知','小程序财务通知',NULL,'','','',NULL,'','',0,'','/pages/my/withdrawalslist',0,NULL,0,0),(71,'miniprogram.divide.income',0,4,'分成收入通知','小程序内容通知',NULL,'','','',NULL,'','',0,'','/pages/my/walletlist',0,NULL,0,0),(72,'miniprogram.question.asked',0,4,'问答提问通知','小程序问答通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(73,'miniprogram.question.answered',0,4,'问答回答通知','小程序问答通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(74,'miniprogram.question.expired',0,4,'问答过期通知','小程序问答通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(75,'miniprogram.red_packet.gotten',0,4,'得到红包通知','小程序红包通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(76,'miniprogram.question.rewarded',0,4,'悬赏问答通知','小程序悬赏通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(77,'miniprogram.question.rewarded.expired',0,4,'悬赏过期通知','小程序悬赏通知',NULL,'','','',NULL,'','',0,'','/topic/index?id={$thread_id}',0,NULL,0,0),(78,'sms.registered.passed',0,2,'新用户注册通知','短信注册通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(79,'sms.registered.approved',0,2,'注册审核通过通知','短信注册审核通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(80,'sms.registered.unapproved',0,2,'注册审核不通过通知','短信注册审核通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(81,'sms.post.approved',0,2,'内容审核通过通知','短信内容审核通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(82,'sms.post.unapproved',0,2,'内容审核不通过通知','短信内容审核通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(83,'sms.post.deleted',0,2,'内容删除通知','短信内容通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(84,'sms.post.essence',0,2,'内容精华通知','短信内容通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(85,'sms.post.sticky',0,2,'内容置顶通知','短信内容通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(86,'sms.post.update',0,2,'内容修改通知','短信内容通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(87,'sms.user.disable',0,2,'用户禁用通知','短信用户通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(88,'sms.user.normal',0,2,'用户解除禁用通知','短信用户通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(89,'sms.user.group',0,2,'用户角色调整通知','短信角色通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(90,'sms.post.replied',0,2,'内容回复通知','短信内容通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(91,'sms.post.liked',0,2,'内容点赞通知','短信内容通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(92,'sms.post.paid',0,2,'内容支付通知','短信内容通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(93,'sms.post.reminded',0,2,'内容@通知','短信内容通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(94,'sms.withdraw.noticed',0,2,'提现通知','短信财务通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(95,'sms.withdraw.withdraw',0,2,'提现失败通知','短信财务通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(96,'sms.divide.income',0,2,'分成收入通知','短信内容通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(97,'sms.question.asked',0,2,'问答提问通知','短信问答通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(98,'sms.question.answered',0,2,'问答回答通知','短信问答通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(99,'sms.question.expired',0,2,'问答过期通知','短信问答通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(100,'sms.red_packet.gotten',0,2,'得到红包通知','短信红包通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(101,'sms.question.rewarded',0,2,'悬赏问答通知','短信悬赏通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0),(102,'sms.question.rewarded.expired',0,2,'悬赏过期通知','短信悬赏通知',NULL,'','','',NULL,'','',0,'','',0,NULL,0,0);
/*!40000 ALTER TABLE `ppre_notification_tpls` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_notifications`
--

DROP TABLE IF EXISTS `ppre_notifications`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_notifications` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '通知 id',
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '通知类型',
  `notifiable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_id` bigint(20) unsigned NOT NULL,
  `data` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '通知内容',
  `read_at` datetime DEFAULT NULL COMMENT '通知阅读时间',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `ppre_notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_notifications`
--

LOCK TABLES `ppre_notifications` WRITE;
/*!40000 ALTER TABLE `ppre_notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_notifications` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_operation_logs`
--

DROP TABLE IF EXISTS `ppre_operation_logs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_operation_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '日志 id',
  `user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '用户 id',
  `path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'url路径',
  `method` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '请求方式',
  `ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'ip 地址',
  `input` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'body请求数据',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '日志类型:0后台操作',
  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `idx_user` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_operation_logs`
--

LOCK TABLES `ppre_operation_logs` WRITE;
/*!40000 ALTER TABLE `ppre_operation_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_operation_logs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_order_children`
--

DROP TABLE IF EXISTS `ppre_order_children`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_order_children` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `order_sn` char(22) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '订单编号',
  `thread_id` bigint(20) unsigned DEFAULT '0' COMMENT '关联的threads主键ID',
  `type` int(10) unsigned NOT NULL COMMENT '订单类型：1注册，2打赏，3购买主题，4购买权限组，5付费提问，6问答围观，7购买附件，8站点付费，9红包，10悬赏，11合并订单',
  `status` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '订单状态：0待付款，1已付款，2取消，3支付失败，4过期，5部分退款，10全额退款，11异常订单',
  `amount` decimal(10,2) unsigned NOT NULL COMMENT '金额',
  `refund` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '退款金额',
  `return_at` timestamp NULL DEFAULT NULL COMMENT '退款时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_order_children`
--

LOCK TABLES `ppre_order_children` WRITE;
/*!40000 ALTER TABLE `ppre_order_children` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_order_children` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_orders`
--

DROP TABLE IF EXISTS `ppre_orders`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_orders` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '订单 id',
  `order_sn` char(22) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '订单编号',
  `payment_sn` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '支付编号',
  `amount` decimal(10,2) unsigned NOT NULL COMMENT '订单总金额',
  `master_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '站长分成金额',
  `author_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '作者分成金额',
  `third_party_amount` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '第三者收益金额',
  `be_scale` double(3,1) NOT NULL DEFAULT '0.0' COMMENT '作者受邀时的分成比例',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '付款人 id',
  `payee_id` bigint(20) unsigned NOT NULL COMMENT '收款人 id',
  `third_party_id` bigint(20) unsigned DEFAULT NULL COMMENT '第三者收益人 id',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '交易类型：1注册、2打赏、3付费主题、4付费用户组',
  `group_id` bigint(20) unsigned DEFAULT NULL COMMENT '用户组 id',
  `thread_id` bigint(20) unsigned DEFAULT NULL COMMENT '主题 id',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '订单状态：0待付款；1已付款；2.取消订单；3支付失败；4订单过期',
  `payment_type` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '付款方式：微信（10：pc扫码，11：h5支付，12：微信内支付',
  `is_anonymous` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否匿名(0否1是)',
  `post_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '关联的posts主键ID',
  `refund` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '退款金额',
  `expired_at` datetime DEFAULT NULL COMMENT '付费注册过期时长',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `return_at` timestamp NULL DEFAULT NULL COMMENT '退款时间',
  PRIMARY KEY (`id`),
  KEY `ppre_orders_thread_id_index` (`thread_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_orders`
--

LOCK TABLES `ppre_orders` WRITE;
/*!40000 ALTER TABLE `ppre_orders` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_orders` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_pay_notify`
--

DROP TABLE IF EXISTS `ppre_pay_notify`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_pay_notify` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '支付通知 id',
  `payment_sn` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '支付编号',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '付款人 id',
  `trade_no` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '商户平台交易号',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0未接受到通知，1收到通知',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_pay_notify`
--

LOCK TABLES `ppre_pay_notify` WRITE;
/*!40000 ALTER TABLE `ppre_pay_notify` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_pay_notify` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_plugin_activity_thread_activity`
--

DROP TABLE IF EXISTS `ppre_plugin_activity_thread_activity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_plugin_activity_thread_activity` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户id',
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '帖子id',
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '活动名称',
  `content` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '活动内容',
  `activity_start_time` datetime NOT NULL COMMENT '活动开始时间',
  `activity_end_time` datetime NOT NULL COMMENT '活动结束时间',
  `register_start_time` datetime DEFAULT NULL COMMENT '报名开始时间',
  `register_end_time` datetime DEFAULT NULL COMMENT '报名结束时间',
  `total_number` int(11) NOT NULL DEFAULT '0' COMMENT '报名人数上限 0:不限制',
  `address` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '地址信息',
  `location` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '位置信息',
  `longitude` decimal(10,7) NOT NULL DEFAULT '0.0000000' COMMENT '经度',
  `latitude` decimal(10,7) NOT NULL DEFAULT '0.0000000' COMMENT '纬度',
  `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0:无效 1：有效',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `additional_info_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '{}' COMMENT '报名必填信息；1：姓名、2：手机号、3：微信号、4：地址；数据形式：{1,2,3,4}',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_plugin_activity_thread_activity`
--

LOCK TABLES `ppre_plugin_activity_thread_activity` WRITE;
/*!40000 ALTER TABLE `ppre_plugin_activity_thread_activity` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_plugin_activity_thread_activity` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_plugin_activity_user`
--

DROP TABLE IF EXISTS `ppre_plugin_activity_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_plugin_activity_user` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '主题id',
  `activity_id` bigint(20) unsigned NOT NULL COMMENT '活动id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户id',
  `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0:无效 1：有效',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `additional_info` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '报名必填信息',
  PRIMARY KEY (`id`),
  KEY `ppre_plugin_activity_user_thread_id_index` (`thread_id`),
  KEY `ppre_plugin_activity_user_activity_id_user_id_index` (`activity_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_plugin_activity_user`
--

LOCK TABLES `ppre_plugin_activity_user` WRITE;
/*!40000 ALTER TABLE `ppre_plugin_activity_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_plugin_activity_user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_plugin_group_permission`
--

DROP TABLE IF EXISTS `ppre_plugin_group_permission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_plugin_group_permission` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `group_id` int(11) NOT NULL COMMENT '用户组id',
  `app_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '插件id',
  `permission` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '权限描述符',
  `status` smallint(6) NOT NULL DEFAULT '1' COMMENT '0 关闭 1 启用',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `ppre_plugin_group_permission_app_id_index` (`app_id`),
  KEY `ppre_plugin_group_permission_permission_index` (`permission`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_plugin_group_permission`
--

LOCK TABLES `ppre_plugin_group_permission` WRITE;
/*!40000 ALTER TABLE `ppre_plugin_group_permission` DISABLE KEYS */;
INSERT INTO `ppre_plugin_group_permission` VALUES (1,1,'612f4217ae890','canInsert',1,'2022-07-29 15:42:38','2022-07-29 15:42:38'),(2,8,'612f4217ae890','canInsert',1,'2022-07-29 15:42:38','2022-07-29 15:42:38'),(3,10,'612f4217ae890','canInsert',1,'2022-07-29 15:42:38','2022-07-29 15:42:38');
/*!40000 ALTER TABLE `ppre_plugin_group_permission` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_plugin_settings`
--

DROP TABLE IF EXISTS `ppre_plugin_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_plugin_settings` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `app_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '插件应用id',
  `app_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '插件唯一英文名',
  `type` tinyint(4) NOT NULL COMMENT '插件类型',
  `private_value` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '私有数据',
  `public_value` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'JSON存储配置信息',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `ppre_plugin_settings_app_id_unique` (`app_id`),
  UNIQUE KEY `ppre_plugin_settings_app_name_unique` (`app_name`),
  KEY `ppre_plugin_settings_app_id_type_index` (`app_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_plugin_settings`
--

LOCK TABLES `ppre_plugin_settings` WRITE;
/*!40000 ALTER TABLE `ppre_plugin_settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_plugin_settings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_plugin_shop_wxshop_products`
--

DROP TABLE IF EXISTS `ppre_plugin_shop_wxshop_products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_plugin_shop_wxshop_products` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `app_id` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商店appid',
  `product_id` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '微信小商店商品id',
  `title` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品名',
  `image_path` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品图片',
  `price` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '价格',
  `path` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品原path',
  `detail_url` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '微信url，小程序，h5直接跳',
  `detail_qrcode` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '外部url，扫码跳',
  `is_remote` int(11) NOT NULL COMMENT '是否放在远程0不1是',
  `attach_file_name` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '附件文件名',
  `attach_file_path` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '附件全路径',
  `detail_scheme` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '外部url，点击跳转',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `index_app_product_id` (`app_id`,`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_plugin_shop_wxshop_products`
--

LOCK TABLES `ppre_plugin_shop_wxshop_products` WRITE;
/*!40000 ALTER TABLE `ppre_plugin_shop_wxshop_products` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_plugin_shop_wxshop_products` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_post_goods`
--

DROP TABLE IF EXISTS `ppre_post_goods`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_post_goods` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '商品 id',
  `user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '用户 id',
  `post_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帖子 id',
  `platform_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '平台商品 id',
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '商品标题',
  `price` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '价格',
  `image_path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '商品封面图',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '商品来源:0淘宝 1天猫 2京东 等',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '商品状态:0正常 1失效/下架',
  `ready_content` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '预解析内容',
  `detail_content` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '解析详情页地址',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`),
  KEY `idx_user` (`user_id`),
  KEY `idx_post` (`post_id`),
  KEY `idx_platform` (`platform_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_post_goods`
--

LOCK TABLES `ppre_post_goods` WRITE;
/*!40000 ALTER TABLE `ppre_post_goods` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_post_goods` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_post_mentions_user`
--

DROP TABLE IF EXISTS `ppre_post_mentions_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_post_mentions_user` (
  `post_id` bigint(20) unsigned NOT NULL,
  `mentions_user_id` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`post_id`,`mentions_user_id`),
  KEY `ppre_post_mentions_user_mentions_user_id_foreign` (`mentions_user_id`),
  CONSTRAINT `ppre_post_mentions_user_mentions_user_id_foreign` FOREIGN KEY (`mentions_user_id`) REFERENCES `ppre_users` (`id`) ON DELETE CASCADE,
  CONSTRAINT `ppre_post_mentions_user_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `ppre_posts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_post_mentions_user`
--

LOCK TABLES `ppre_post_mentions_user` WRITE;
/*!40000 ALTER TABLE `ppre_post_mentions_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_post_mentions_user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_post_mod`
--

DROP TABLE IF EXISTS `ppre_post_mod`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_post_mod` (
  `post_id` bigint(20) unsigned NOT NULL COMMENT '帖子 id',
  `stop_word` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '触发的敏感词，半角逗号隔开',
  PRIMARY KEY (`post_id`),
  CONSTRAINT `ppre_post_mod_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `ppre_posts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_post_mod`
--

LOCK TABLES `ppre_post_mod` WRITE;
/*!40000 ALTER TABLE `ppre_post_mod` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_post_mod` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_post_user`
--

DROP TABLE IF EXISTS `ppre_post_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_post_user` (
  `post_id` bigint(20) unsigned NOT NULL COMMENT '帖子 id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户 id',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`post_id`,`user_id`),
  KEY `ppre_post_user_user_id_foreign` (`user_id`),
  CONSTRAINT `ppre_post_user_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `ppre_posts` (`id`) ON DELETE CASCADE,
  CONSTRAINT `ppre_post_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `ppre_users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_post_user`
--

LOCK TABLES `ppre_post_user` WRITE;
/*!40000 ALTER TABLE `ppre_post_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_post_user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_posts`
--

DROP TABLE IF EXISTS `ppre_posts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_posts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '回复 id',
  `user_id` bigint(20) unsigned DEFAULT NULL COMMENT '发表用户 id',
  `thread_id` bigint(20) unsigned DEFAULT NULL COMMENT '关联主题 id',
  `reply_post_id` bigint(20) unsigned DEFAULT NULL COMMENT '回复 id',
  `reply_user_id` bigint(20) unsigned DEFAULT NULL COMMENT '回复用户 id',
  `comment_post_id` bigint(20) unsigned DEFAULT NULL COMMENT '评论回复 id',
  `comment_user_id` bigint(20) unsigned DEFAULT NULL COMMENT '评论回复用户 id',
  `content` mediumtext COLLATE utf8mb4_unicode_ci COMMENT '内容',
  `ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'ip 地址',
  `port` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '端口',
  `reply_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '关联回复数',
  `like_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '喜欢数',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  `deleted_user_id` bigint(20) unsigned DEFAULT NULL COMMENT '删除用户 id',
  `is_first` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否首个回复',
  `is_comment` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否是回复回帖的内容',
  `is_approved` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '是否合法',
  PRIMARY KEY (`id`),
  KEY `ppre_posts_user_id_foreign` (`user_id`),
  KEY `ppre_posts_deleted_user_id_foreign` (`deleted_user_id`),
  KEY `ppre_posts_thread_id_index` (`thread_id`),
  KEY `idx_reply_post_id` (`reply_post_id`),
  CONSTRAINT `ppre_posts_deleted_user_id_foreign` FOREIGN KEY (`deleted_user_id`) REFERENCES `ppre_users` (`id`) ON DELETE SET NULL,
  CONSTRAINT `ppre_posts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `ppre_users` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_posts`
--

LOCK TABLES `ppre_posts` WRITE;
/*!40000 ALTER TABLE `ppre_posts` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_posts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_questions`
--

DROP TABLE IF EXISTS `ppre_questions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_questions` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `thread_id` bigint(20) unsigned DEFAULT NULL COMMENT '主题 id',
  `user_id` bigint(20) unsigned DEFAULT NULL COMMENT '提问人用户 id',
  `be_user_id` bigint(20) unsigned DEFAULT NULL COMMENT '被提问的用户 id',
  `content` text COLLATE utf8mb4_unicode_ci COMMENT '回答内容',
  `ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '回答人 ip 地址',
  `port` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '回答人端口',
  `price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '问答价格',
  `onlooker_unit_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '围观单价',
  `onlooker_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '当前围观总价格',
  `onlooker_number` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '当前围观总人数',
  `is_onlooker` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否允许围观',
  `is_answer` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否已回答 0未回答 1已回答 2已过期',
  `is_approved` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '回答内容是否合法',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `expired_at` datetime NOT NULL COMMENT '过期时间',
  `answered_at` datetime DEFAULT NULL COMMENT '回答时间',
  PRIMARY KEY (`id`),
  KEY `idx_thread_id` (`thread_id`),
  KEY `idx_user_id` (`user_id`),
  KEY `idx_be_user_id` (`be_user_id`),
  CONSTRAINT `ppre_questions_thread_id_foreign` FOREIGN KEY (`thread_id`) REFERENCES `ppre_threads` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_questions`
--

LOCK TABLES `ppre_questions` WRITE;
/*!40000 ALTER TABLE `ppre_questions` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_questions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_reports`
--

DROP TABLE IF EXISTS `ppre_reports`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_reports` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '举报 id',
  `user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '用户 id',
  `thread_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '主题 id',
  `post_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '回复 id',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '举报类型:0个人主页 1主题 2评论/回复',
  `reason` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '举报理由',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '举报状态:0未处理 1已处理',
  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `idx_user` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_reports`
--

LOCK TABLES `ppre_reports` WRITE;
/*!40000 ALTER TABLE `ppre_reports` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_reports` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_sequences`
--

DROP TABLE IF EXISTS `ppre_sequences`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_sequences` (
  `category_ids` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '内容分类ID',
  `group_ids` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户角色ID',
  `user_ids` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户ID',
  `topic_ids` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '话题ID',
  `thread_ids` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '主题ID/帖子',
  `block_user_ids` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '阻止显示的用户ID',
  `block_topic_ids` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '阻止显示的话题ID',
  `block_thread_ids` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '阻止显示的主题ID/帖子'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_sequences`
--

LOCK TABLES `ppre_sequences` WRITE;
/*!40000 ALTER TABLE `ppre_sequences` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_sequences` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_session_tokens`
--

DROP TABLE IF EXISTS `ppre_session_tokens`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_session_tokens` (
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'token',
  `scope` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '作用域',
  `payload` text COLLATE utf8mb4_unicode_ci COMMENT '负载',
  `user_id` int(10) unsigned DEFAULT NULL COMMENT '用户 id',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `expired_at` datetime NOT NULL COMMENT '过期时间',
  UNIQUE KEY `ppre_session_tokens_token_unique` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_session_tokens`
--

LOCK TABLES `ppre_session_tokens` WRITE;
/*!40000 ALTER TABLE `ppre_session_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_session_tokens` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_settings`
--

DROP TABLE IF EXISTS `ppre_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_settings` (
  `key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设置项 key',
  `value` text COLLATE utf8mb4_unicode_ci COMMENT '设置项 value',
  `tag` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default' COMMENT '设置项 tag',
  PRIMARY KEY (`key`,`tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_settings`
--

LOCK TABLES `ppre_settings` WRITE;
/*!40000 ALTER TABLE `ppre_settings` DISABLE KEYS */;
INSERT INTO `ppre_settings` VALUES ('api_freq','{\"get\":{\"freq\":500,\"forbidden\":20},\"post\":{\"freq\":200,\"forbidden\":30}}','default'),('is_need_transition','1','default'),('miniprogram_video','0','wx_miniprogram'),('open_api_log','0','default'),('password_length','6','default'),('password_strength','0','default'),('qcloud_sms','0','qcloud'),('qcloud_vod','0','qcloud'),('qcloud_vod_auto_play','1','qcloud'),('register_close','1','default'),('register_validate','0','default'),('site_author','1','default'),('site_author_scale','10','default'),('site_close','0','default'),('site_create_thread0','1','default'),('site_create_thread1','1','default'),('site_create_thread2','1','default'),('site_create_thread3','1','default'),('site_create_thread4','1','default'),('site_create_thread5','0','default'),('site_create_thread6','1','default'),('site_install','2022-07-29 23:42:38','default'),('site_manage','[{\"key\":1,\"desc\":\"PC端\",\"value\":true},{\"key\":2,\"desc\":\"H5端\",\"value\":true},{\"key\":3,\"desc\":\"小程序端\",\"value\":true}]','default'),('site_master_scale','0','default'),('site_mode','public','default'),('site_name','dzqtitle','default'),('site_open_sort','0','default'),('support_file_ext','doc,docx,pdf,zip','default'),('support_img_ext','png,gif,jpg,jpeg,heic,heif','default'),('support_max_size','5','default'),('user_count','1','default');
/*!40000 ALTER TABLE `ppre_settings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_site_info_dailies`
--

DROP TABLE IF EXISTS `ppre_site_info_dailies`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_site_info_dailies` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL COMMENT '统计日期',
  `mini_active_users` int(11) NOT NULL DEFAULT '0' COMMENT '小程序活跃用户数',
  `pc_active_users` int(11) NOT NULL DEFAULT '0' COMMENT 'PC端活跃用户数',
  `h5_active_users` int(11) NOT NULL DEFAULT '0' COMMENT 'h5端活跃用户数',
  `new_users` int(11) NOT NULL DEFAULT '0' COMMENT '新增用户数',
  `mini_threads` int(11) NOT NULL DEFAULT '0' COMMENT '小程序发帖数',
  `pc_threads` int(11) NOT NULL DEFAULT '0' COMMENT 'pc发帖数',
  `h5_threads` int(11) NOT NULL DEFAULT '0' COMMENT 'h5发帖数',
  `mini_posts` int(11) NOT NULL DEFAULT '0' COMMENT '小程序回帖数',
  `pc_posts` int(11) NOT NULL DEFAULT '0' COMMENT 'pc回帖数',
  `h5_posts` int(11) NOT NULL DEFAULT '0' COMMENT 'h5回帖数',
  `threads_sum` int(11) NOT NULL DEFAULT '0' COMMENT '总发帖数',
  `posts_sum` int(11) NOT NULL DEFAULT '0' COMMENT '总回复数',
  `start_count` int(11) NOT NULL DEFAULT '0' COMMENT '启动数',
  `pc_start_count` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'pc端启动数',
  `h5_start_count` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'h5端启动数',
  `mini_start_peoples` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '小程序端启动人数',
  `mini_start_count` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '小程序端启动数',
  `start_peoples` int(11) NOT NULL DEFAULT '0' COMMENT '启动人数',
  `pc_start_peoples` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'pc端启动人数',
  `h5_start_peoples` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'h5端启动人数',
  `orders_count` int(11) NOT NULL DEFAULT '0' COMMENT '订单数',
  `orders_money` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '订单金额',
  `withdrawal_profit` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '提现收付费收入',
  `order_royalty` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '打赏提成收入',
  `total_register_profit` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '注册加入收入',
  `is_upload` tinyint(4) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_site_info_dailies`
--

LOCK TABLES `ppre_site_info_dailies` WRITE;
/*!40000 ALTER TABLE `ppre_site_info_dailies` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_site_info_dailies` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_stop_words`
--

DROP TABLE IF EXISTS `ppre_stop_words`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_stop_words` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '敏感词 id',
  `user_id` bigint(20) unsigned DEFAULT NULL COMMENT '创建用户 id',
  `ugc` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户内容处理方式',
  `username` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名处理方式',
  `nickname` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户昵称',
  `signature` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户签名处理方式',
  `dialog` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '短消息处理方式',
  `find` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '敏感词或查找方式',
  `replacement` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '替换词或替换规则',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_stop_words`
--

LOCK TABLES `ppre_stop_words` WRITE;
/*!40000 ALTER TABLE `ppre_stop_words` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_stop_words` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_red_packets`
--

DROP TABLE IF EXISTS `ppre_thread_red_packets`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_red_packets` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '红包ID',
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '关联的threads主键ID',
  `post_id` bigint(20) unsigned NOT NULL COMMENT '关联的posts主键ID',
  `rule` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '发放规则，0定额，1随机',
  `condition` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '领取红包条件，0回复，1集赞',
  `likenum` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '若红包领取条件为集赞，必填集赞数',
  `money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '红包总金额',
  `number` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '红包个数',
  `remain_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '剩余红包总额',
  `remain_number` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '剩余红包个数',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0:红包已过期,1:红包未过期',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_red_packets`
--

LOCK TABLES `ppre_thread_red_packets` WRITE;
/*!40000 ALTER TABLE `ppre_thread_red_packets` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_red_packets` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_rewards`
--

DROP TABLE IF EXISTS `ppre_thread_rewards`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_rewards` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '悬赏帖ID',
  `thread_id` bigint(20) unsigned DEFAULT NULL COMMENT '关联的threads主键ID',
  `post_id` bigint(20) unsigned DEFAULT NULL COMMENT '关联的posts主键ID',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0为所有人回答，1为指定人回答',
  `user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '用户 id',
  `answer_id` bigint(20) unsigned DEFAULT NULL COMMENT '被指定人ID，可为空',
  `money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '悬赏金额',
  `remain_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '剩余的悬赏金额',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `expired_at` timestamp NULL DEFAULT NULL COMMENT '过期时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_rewards`
--

LOCK TABLES `ppre_thread_rewards` WRITE;
/*!40000 ALTER TABLE `ppre_thread_rewards` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_rewards` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_stick_sort`
--

DROP TABLE IF EXISTS `ppre_thread_stick_sort`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_stick_sort` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '置顶排序 id',
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '主题 id',
  `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_stick_sort`
--

LOCK TABLES `ppre_thread_stick_sort` WRITE;
/*!40000 ALTER TABLE `ppre_thread_stick_sort` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_stick_sort` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_sticks`
--

DROP TABLE IF EXISTS `ppre_thread_sticks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_sticks` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `user_id` bigint(20) unsigned NOT NULL,
  `thread_id` bigint(20) unsigned NOT NULL,
  `status` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `index_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_sticks`
--

LOCK TABLES `ppre_thread_sticks` WRITE;
/*!40000 ALTER TABLE `ppre_thread_sticks` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_sticks` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_tag`
--

DROP TABLE IF EXISTS `ppre_thread_tag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_tag` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '帖子id',
  `tag` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标签 TEXT/IMAGE/AUDIO/VIDEO/QA/GOODS...',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `thread_id_tag` (`thread_id`,`tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_tag`
--

LOCK TABLES `ppre_thread_tag` WRITE;
/*!40000 ALTER TABLE `ppre_thread_tag` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_tag` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_tom`
--

DROP TABLE IF EXISTS `ppre_thread_tom`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_tom` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '帖子id',
  `tom_type` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '帖子插件id',
  `key` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '元数据索引 $0,$1,$2 资源占位符',
  `value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '资源结构化数据',
  `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '-1：删除 0：正常',
  `price_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '插件/组件是否部分付费',
  `price_ids` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '{}' COMMENT '插件/组件部分付费id集合',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `thread_id_key` (`thread_id`,`tom_type`,`key`,`status`),
  KEY `tom_type` (`tom_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_tom`
--

LOCK TABLES `ppre_thread_tom` WRITE;
/*!40000 ALTER TABLE `ppre_thread_tom` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_tom` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_topic`
--

DROP TABLE IF EXISTS `ppre_thread_topic`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_topic` (
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '主题ID',
  `topic_id` bigint(20) unsigned NOT NULL COMMENT '话题ID',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`thread_id`,`topic_id`),
  KEY `ppre_thread_topic_topic_id_foreign` (`topic_id`),
  CONSTRAINT `ppre_thread_topic_thread_id_foreign` FOREIGN KEY (`thread_id`) REFERENCES `ppre_threads` (`id`) ON DELETE CASCADE,
  CONSTRAINT `ppre_thread_topic_topic_id_foreign` FOREIGN KEY (`topic_id`) REFERENCES `ppre_topics` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_topic`
--

LOCK TABLES `ppre_thread_topic` WRITE;
/*!40000 ALTER TABLE `ppre_thread_topic` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_topic` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_user`
--

DROP TABLE IF EXISTS `ppre_thread_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_user` (
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '主题 id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户 id',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`thread_id`,`user_id`),
  KEY `ppre_thread_user_user_id_foreign` (`user_id`),
  CONSTRAINT `ppre_thread_user_thread_id_foreign` FOREIGN KEY (`thread_id`) REFERENCES `ppre_threads` (`id`) ON DELETE CASCADE,
  CONSTRAINT `ppre_thread_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `ppre_users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_user`
--

LOCK TABLES `ppre_thread_user` WRITE;
/*!40000 ALTER TABLE `ppre_thread_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_user_view_records`
--

DROP TABLE IF EXISTS `ppre_thread_user_view_records`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_user_view_records` (
  `thread_id` bigint(20) unsigned NOT NULL,
  `user_id` bigint(20) unsigned NOT NULL,
  `view_at` datetime NOT NULL COMMENT '浏览时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_user_view_records`
--

LOCK TABLES `ppre_thread_user_view_records` WRITE;
/*!40000 ALTER TABLE `ppre_thread_user_view_records` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_user_view_records` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_video`
--

DROP TABLE IF EXISTS `ppre_thread_video`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_video` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '音视频 id',
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '主题 id',
  `post_id` bigint(20) unsigned NOT NULL COMMENT '帖子 id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户 id',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '类型：0 视频 1 音频',
  `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '音视频状态：0 转码中 1 转码完成 2 转码失败',
  `reason` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '转码失败原因',
  `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '文件名',
  `file_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '媒体文件唯一标识',
  `height` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '视频高',
  `width` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '视频宽',
  `duration` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '视频时长',
  `media_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '媒体播放地址',
  `cover_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '媒体封面地址',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `ppre_thread_video_thread_id_index` (`thread_id`),
  KEY `ppre_thread_video_post_id_index` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_video`
--

LOCK TABLES `ppre_thread_video` WRITE;
/*!40000 ALTER TABLE `ppre_thread_video` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_video` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_vote_subitems`
--

DROP TABLE IF EXISTS `ppre_thread_vote_subitems`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_vote_subitems` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '投票选项 id',
  `thread_vote_id` bigint(20) unsigned NOT NULL COMMENT '投票主题 id',
  `content` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '内容',
  `vote_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '投票数量',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted_at` timestamp NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_vote_subitems`
--

LOCK TABLES `ppre_thread_vote_subitems` WRITE;
/*!40000 ALTER TABLE `ppre_thread_vote_subitems` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_vote_subitems` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_vote_users`
--

DROP TABLE IF EXISTS `ppre_thread_vote_users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_vote_users` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned NOT NULL COMMENT '投票用户 id',
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '投票主题 id',
  `thread_vote_subitem_id` bigint(20) unsigned NOT NULL COMMENT '投票选项 id',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_subitem_id` (`user_id`,`thread_vote_subitem_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_vote_users`
--

LOCK TABLES `ppre_thread_vote_users` WRITE;
/*!40000 ALTER TABLE `ppre_thread_vote_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_vote_users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_thread_votes`
--

DROP TABLE IF EXISTS `ppre_thread_votes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_thread_votes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '投票 id',
  `thread_id` bigint(20) unsigned NOT NULL COMMENT '主题 id',
  `vote_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '投票标题',
  `choice_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '选择类型；1：单选、2：多选',
  `vote_users` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '参与人数',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `expired_at` timestamp NULL DEFAULT NULL COMMENT '过期时间',
  `deleted_at` timestamp NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_thread_votes`
--

LOCK TABLES `ppre_thread_votes` WRITE;
/*!40000 ALTER TABLE `ppre_thread_votes` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_thread_votes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_threads`
--

DROP TABLE IF EXISTS `ppre_threads`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_threads` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主题 id',
  `user_id` bigint(20) unsigned DEFAULT NULL COMMENT '创建用户 id',
  `last_posted_user_id` bigint(20) unsigned DEFAULT NULL COMMENT '最后回复用户 id',
  `category_id` int(10) unsigned DEFAULT NULL COMMENT '分类 id',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '类型：0普通 1长文 2视频 3图片',
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '标题',
  `price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '价格',
  `attachment_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '附件价格',
  `free_words` double unsigned NOT NULL DEFAULT '0' COMMENT '免费字数百分比',
  `post_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '回复数',
  `view_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '查看数',
  `rewarded_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '打赏数',
  `paid_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '付费数',
  `share_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '分享数',
  `longitude` decimal(10,7) NOT NULL DEFAULT '0.0000000' COMMENT '经度',
  `latitude` decimal(10,7) NOT NULL DEFAULT '0.0000000' COMMENT '纬度',
  `address` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '地址',
  `location` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '位置',
  `posted_at` datetime DEFAULT NULL COMMENT '最新评论时间',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  `issue_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '帖子首次发布、草稿箱发布、审核通过发布，重新编辑内容发布，四种变更的时间记录',
  `deleted_user_id` bigint(20) unsigned DEFAULT NULL COMMENT '删除用户 id',
  `is_approved` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '是否合法',
  `is_sticky` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否置顶',
  `is_essence` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否加精',
  `is_site` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否推荐到首页（0否 1是）',
  `is_anonymous` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否匿名 0否 1是',
  `is_display` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示 0否 1是',
  `is_red_packet` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否添加红包，0未添加，1添加',
  `is_draft` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否为草稿，0不是，1是',
  `source` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0 站内;1 微博;2 贴吧;3 豆瓣',
  PRIMARY KEY (`id`),
  KEY `ppre_threads_user_id_foreign` (`user_id`),
  KEY `ppre_threads_last_posted_user_id_foreign` (`last_posted_user_id`),
  KEY `ppre_threads_deleted_user_id_foreign` (`deleted_user_id`),
  KEY `idx_category_id` (`category_id`),
  KEY `idx_is_sticky` (`is_sticky`),
  CONSTRAINT `ppre_threads_deleted_user_id_foreign` FOREIGN KEY (`deleted_user_id`) REFERENCES `ppre_users` (`id`) ON DELETE SET NULL,
  CONSTRAINT `ppre_threads_last_posted_user_id_foreign` FOREIGN KEY (`last_posted_user_id`) REFERENCES `ppre_users` (`id`) ON DELETE SET NULL,
  CONSTRAINT `ppre_threads_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `ppre_users` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_threads`
--

LOCK TABLES `ppre_threads` WRITE;
/*!40000 ALTER TABLE `ppre_threads` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_threads` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_topics`
--

DROP TABLE IF EXISTS `ppre_topics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_topics` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '话题ID',
  `user_id` bigint(20) unsigned DEFAULT NULL COMMENT 'user_id',
  `content` text COLLATE utf8mb4_unicode_ci COMMENT '话题名称',
  `thread_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '主题数',
  `view_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '阅读数',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `recommended` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否推荐',
  `recommended_at` datetime DEFAULT NULL COMMENT '推荐时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_topics`
--

LOCK TABLES `ppre_topics` WRITE;
/*!40000 ALTER TABLE `ppre_topics` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_topics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_action_logs`
--

DROP TABLE IF EXISTS `ppre_user_action_logs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_action_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '日志 id',
  `user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '操作用户 id',
  `action` char(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作',
  `message` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  `log_able_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '模型 id',
  `log_able_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '模型',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_action_logs`
--

LOCK TABLES `ppre_user_action_logs` WRITE;
/*!40000 ALTER TABLE `ppre_user_action_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_action_logs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_distributions`
--

DROP TABLE IF EXISTS `ppre_user_distributions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_distributions` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `pid` bigint(20) unsigned DEFAULT NULL COMMENT '父级id',
  `user_id` bigint(20) unsigned DEFAULT NULL COMMENT '用户ID',
  `be_scale` double(3,1) NOT NULL DEFAULT '0.0' COMMENT '受邀时的分成比例',
  `level` tinyint(4) NOT NULL DEFAULT '1' COMMENT '当前用户所处深度',
  `is_subordinate` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否可以 推广下线',
  `is_commission` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '是否可以 收入提成',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `idx_user` (`user_id`),
  CONSTRAINT `ppre_user_distributions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `ppre_users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_distributions`
--

LOCK TABLES `ppre_user_distributions` WRITE;
/*!40000 ALTER TABLE `ppre_user_distributions` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_distributions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_follow`
--

DROP TABLE IF EXISTS `ppre_user_follow`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_follow` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  `from_user_id` bigint(20) unsigned NOT NULL COMMENT '关注人',
  `to_user_id` bigint(20) unsigned NOT NULL COMMENT '被关注人',
  `is_mutual` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否互相关注：0否 1是',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `from_user_id` (`from_user_id`),
  KEY `to_user_id` (`to_user_id`),
  CONSTRAINT `ppre_user_follow_from_user_id_foreign` FOREIGN KEY (`from_user_id`) REFERENCES `ppre_users` (`id`) ON DELETE CASCADE,
  CONSTRAINT `ppre_user_follow_to_user_id_foreign` FOREIGN KEY (`to_user_id`) REFERENCES `ppre_users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_follow`
--

LOCK TABLES `ppre_user_follow` WRITE;
/*!40000 ALTER TABLE `ppre_user_follow` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_follow` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_login_fail_log`
--

DROP TABLE IF EXISTS `ppre_user_login_fail_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_login_fail_log` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '日志 id',
  `ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'ip 地址',
  `user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '用户 id',
  `username` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '用户名',
  `count` tinyint(4) NOT NULL DEFAULT '1' COMMENT '错误次数',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `ppre_user_login_fail_log_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_login_fail_log`
--

LOCK TABLES `ppre_user_login_fail_log` WRITE;
/*!40000 ALTER TABLE `ppre_user_login_fail_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_login_fail_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_qq`
--

DROP TABLE IF EXISTS `ppre_user_qq`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_qq` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户 id',
  `openid` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'openid',
  `nickname` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'qq昵称',
  `sex` tinyint(4) NOT NULL DEFAULT '0' COMMENT '性别',
  `province` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '省份',
  `city` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '城市',
  `headimgurl` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '头像',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_qq`
--

LOCK TABLES `ppre_user_qq` WRITE;
/*!40000 ALTER TABLE `ppre_user_qq` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_qq` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_qy_wechats`
--

DROP TABLE IF EXISTS `ppre_user_qy_wechats`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_qy_wechats` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户 id',
  `qy_userid` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '企业微信企业用户id, corpid_userid联合全局唯一',
  `nickname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '企业微信昵称',
  `sex` tinyint(4) NOT NULL DEFAULT '0' COMMENT '性别',
  `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '邮箱',
  `mobile` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '电话',
  `address` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '地址',
  `headimgurl` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '头像',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_qy_wechats`
--

LOCK TABLES `ppre_user_qy_wechats` WRITE;
/*!40000 ALTER TABLE `ppre_user_qy_wechats` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_qy_wechats` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_sign_in_fields`
--

DROP TABLE IF EXISTS `ppre_user_sign_in_fields`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_sign_in_fields` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户user_id',
  `name` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户端显示的字段名称',
  `type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0:单行文本框 1:多行文本框 2:单选 3:复选 4:图片上传 5:附件上传',
  `fields_ext` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段扩展信息，Json表示选项内容',
  `fields_desc` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '字段介绍',
  `remark` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '审核意见',
  `sort` tinyint(4) NOT NULL DEFAULT '1' COMMENT '自定义显示顺序',
  `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0:废弃 1:待审核 2:驳回 3:审核通过',
  `required` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否必填项 0:否 1:是',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `ppre_user_sign_in_fields_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_sign_in_fields`
--

LOCK TABLES `ppre_user_sign_in_fields` WRITE;
/*!40000 ALTER TABLE `ppre_user_sign_in_fields` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_sign_in_fields` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_ucenters`
--

DROP TABLE IF EXISTS `ppre_user_ucenters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_ucenters` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户 id',
  `ucenter_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'uc用户 id',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `ppre_user_ucenters_user_id_index` (`user_id`),
  KEY `ppre_user_ucenters_ucenter_id_index` (`ucenter_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_ucenters`
--

LOCK TABLES `ppre_user_ucenters` WRITE;
/*!40000 ALTER TABLE `ppre_user_ucenters` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_ucenters` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_wallet_cash`
--

DROP TABLE IF EXISTS `ppre_user_wallet_cash`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_wallet_cash` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '提现 id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '提现用户 id',
  `cash_sn` bigint(20) unsigned NOT NULL COMMENT '提现交易编号',
  `cash_charge` decimal(10,2) unsigned NOT NULL COMMENT '提现手续费',
  `cash_actual_amount` decimal(10,2) unsigned NOT NULL COMMENT '实际提现金额',
  `cash_apply_amount` decimal(10,2) unsigned NOT NULL COMMENT '提现申请金额',
  `cash_status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '提现状态：1：待审核，2：审核通过，3：审核不通过，4：待打款， 5，已打款， 6：打款失败',
  `cash_mobile` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '提现到账手机号码',
  `cash_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '提现转账类型：0：人工转账， 1：企业零钱付款',
  `remark` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注或原因',
  `trade_time` datetime DEFAULT NULL COMMENT '交易时间',
  `trade_no` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '交易号',
  `error_code` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '错误代码',
  `error_message` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '交易失败描叙',
  `refunds_status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '返款状态，0未返款，1已返款',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `receive_account` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '收款账号',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_wallet_cash`
--

LOCK TABLES `ppre_user_wallet_cash` WRITE;
/*!40000 ALTER TABLE `ppre_user_wallet_cash` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_wallet_cash` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_wallet_fail_logs`
--

DROP TABLE IF EXISTS `ppre_user_wallet_fail_logs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_wallet_fail_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '日志 id',
  `ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'ip 地址',
  `user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '用户 id',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `ppre_user_wallet_fail_logs_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_wallet_fail_logs`
--

LOCK TABLES `ppre_user_wallet_fail_logs` WRITE;
/*!40000 ALTER TABLE `ppre_user_wallet_fail_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_wallet_fail_logs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_wallet_logs`
--

DROP TABLE IF EXISTS `ppre_user_wallet_logs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_wallet_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '钱包明细 id',
  `user_id` bigint(20) unsigned NOT NULL COMMENT '明细所属用户 id',
  `source_user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '金额来源用户',
  `change_available_amount` decimal(10,2) NOT NULL COMMENT '变动可用金额',
  `change_freeze_amount` decimal(10,2) NOT NULL COMMENT '变动冻结金额',
  `change_type` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '10：提现冻结，11：提现成功，12：撤销提现解冻； 31：打赏收入，32：人工收入； 50：人工支出',
  `change_desc` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '变动描述',
  `order_id` bigint(20) unsigned DEFAULT NULL COMMENT '关联订单记录ID',
  `user_wallet_cash_id` bigint(20) unsigned DEFAULT NULL COMMENT '关联提现记录ID',
  `question_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '关联问答记录 id',
  `thread_id` bigint(20) unsigned DEFAULT NULL COMMENT '关联的threads主键ID',
  `post_id` bigint(20) unsigned DEFAULT NULL COMMENT '关联的posts主键ID',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_wallet_logs`
--

LOCK TABLES `ppre_user_wallet_logs` WRITE;
/*!40000 ALTER TABLE `ppre_user_wallet_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_wallet_logs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_wallets`
--

DROP TABLE IF EXISTS `ppre_user_wallets`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_wallets` (
  `user_id` bigint(20) unsigned NOT NULL COMMENT '钱包所属人 id',
  `available_amount` decimal(10,2) unsigned NOT NULL COMMENT '可用金额',
  `freeze_amount` decimal(10,2) unsigned NOT NULL COMMENT '冻结金额',
  `wallet_status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '钱包状态:0正常，1冻结提现',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_wallets`
--

LOCK TABLES `ppre_user_wallets` WRITE;
/*!40000 ALTER TABLE `ppre_user_wallets` DISABLE KEYS */;
INSERT INTO `ppre_user_wallets` VALUES (1,0.00,0.00,0,'2022-07-29 23:42:38','2022-07-29 23:42:38');
/*!40000 ALTER TABLE `ppre_user_wallets` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_user_wechats`
--

DROP TABLE IF EXISTS `ppre_user_wechats`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_user_wechats` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned DEFAULT NULL COMMENT '用户 id',
  `mp_openid` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '公众号openid',
  `dev_openid` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '开放平台openid',
  `min_openid` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '小程序openid',
  `nickname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '微信昵称',
  `sex` tinyint(4) NOT NULL DEFAULT '0' COMMENT '性别',
  `province` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '省份',
  `city` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '城市',
  `country` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '国家',
  `headimgurl` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '头像',
  `privilege` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户特权信息',
  `unionid` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `idx_mp_openid` (`mp_openid`),
  KEY `idx_dev_openid` (`dev_openid`),
  KEY `idx_min_openid` (`min_openid`),
  KEY `idx_unionid` (`unionid`),
  CONSTRAINT `ppre_user_wechats_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `ppre_users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_user_wechats`
--

LOCK TABLES `ppre_user_wechats` WRITE;
/*!40000 ALTER TABLE `ppre_user_wechats` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_user_wechats` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_username_change`
--

DROP TABLE IF EXISTS `ppre_username_change`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_username_change` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
  `number` int(10) unsigned DEFAULT NULL COMMENT '次数',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_username_change`
--

LOCK TABLES `ppre_username_change` WRITE;
/*!40000 ALTER TABLE `ppre_username_change` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_username_change` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_users`
--

DROP TABLE IF EXISTS `ppre_users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_users` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户 id',
  `username` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户名',
  `password` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '密码',
  `nickname` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户昵称',
  `pay_password` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '支付密码',
  `mobile` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '手机号',
  `signature` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '签名',
  `last_login_ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '最后登录 ip 地址',
  `last_login_port` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后登录端口',
  `register_ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '注册ip',
  `register_port` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册端口',
  `register_reason` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '注册原因',
  `reject_reason` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '审核拒绝原因',
  `username_bout` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户名修改次数',
  `thread_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '主题数',
  `follow_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '关注数',
  `fans_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '粉丝数',
  `liked_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '点赞数',
  `question_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '提问数',
  `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户状态：0正常 1禁用 2审核中 3审核拒绝 4审核忽略',
  `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '头像地址',
  `background` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '背景图地址',
  `identity` char(18) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '身份证号码',
  `realname` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '身份证姓名',
  `avatar_at` datetime DEFAULT NULL COMMENT '头像修改时间',
  `login_at` datetime DEFAULT NULL COMMENT '最后登录时间',
  `joined_at` datetime DEFAULT NULL COMMENT '付费加入时间',
  `expired_at` datetime DEFAULT NULL COMMENT '付费到期时间',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `bind_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '登录绑定类型；0：默认或微信；2：qq登录；',
  PRIMARY KEY (`id`),
  UNIQUE KEY `ppre_users_username_unique` (`username`),
  KEY `nickname` (`nickname`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_users`
--

LOCK TABLES `ppre_users` WRITE;
/*!40000 ALTER TABLE `ppre_users` DISABLE KEYS */;
INSERT INTO `ppre_users` VALUES (1,'adminuser','$2y$10$T2UEqs9vKjYvupjpO5GmkekveDRQI2Fc5qTYrdRf1EpyvOrFkwN/2','adminuser','','','','172.17.0.1',60978,'172.17.0.1',60978,'','',0,0,0,0,0,0,0,'','','','',NULL,NULL,NULL,NULL,'2022-07-29 23:42:38','2022-07-29 23:42:38',0);
/*!40000 ALTER TABLE `ppre_users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ppre_wechat_offiaccount_replies`
--

DROP TABLE IF EXISTS `ppre_wechat_offiaccount_replies`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ppre_wechat_offiaccount_replies` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '规则名',
  `keyword` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '关键词',
  `match_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '匹配类型:0全匹配1半匹配',
  `reply_type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '消息回复类型',
  `content` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '回复文本内容',
  `media_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '素材ID',
  `media_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '素材类型:1图片2视频3语音4图文',
  `type` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '数据类型:0被关注回复1消息回复2关键词回复',
  `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否开启:0关闭1开启',
  `created_at` datetime NOT NULL COMMENT '创建时间',
  `updated_at` datetime NOT NULL COMMENT '更新时间',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`),
  KEY `idx_keyword` (`keyword`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `ppre_wechat_offiaccount_replies`
--

LOCK TABLES `ppre_wechat_offiaccount_replies` WRITE;
/*!40000 ALTER TABLE `ppre_wechat_offiaccount_replies` DISABLE KEYS */;
/*!40000 ALTER TABLE `ppre_wechat_offiaccount_replies` 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 2022-07-29 15:42:40
