1 Star 0 Fork 14

culiuxiang/无聊书城-python端-UNIAPP端-PHP接口

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
testtest.sql 5.27 KB
一键复制 编辑 原始数据 按行查看 历史
奔跑的乌龟 提交于 2021-12-02 12:51 . 整合了前后端
/*
Navicat Premium Data Transfer
Source Server : testtest
Source Server Type : MySQL
Source Server Version : 50650
Source Host : 129.211.170.138:3306
Source Schema : testtest
Target Server Type : MySQL
Target Server Version : 50650
File Encoding : 65001
Date: 19/11/2021 12:34:28
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for novel_books
-- ----------------------------
DROP TABLE IF EXISTS `novel_books`;
CREATE TABLE `novel_books` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`book_id` int(11) NULL DEFAULT NULL COMMENT '书籍号',
`author` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '作者',
`title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '书名',
`type` varchar(60) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '类型',
`photo` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT '封面',
`synopsis` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '简介',
PRIMARY KEY (`Id`) USING BTREE,
UNIQUE INDEX `bookid`(`book_id`) USING BTREE,
INDEX `booknumber`(`book_id`) USING BTREE,
INDEX `type`(`type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3928 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for novel_chapter
-- ----------------------------
DROP TABLE IF EXISTS `novel_chapter`;
CREATE TABLE `novel_chapter` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`book_id` int(11) NOT NULL COMMENT '编号',
`chaptertitle` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '章节标题',
`content` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文章内容',
`addtime` timestamp(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `book_id`(`book_id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 251563 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for novel_classification
-- ----------------------------
DROP TABLE IF EXISTS `novel_classification`;
CREATE TABLE `novel_classification` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(36) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `name`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for novel_collect
-- ----------------------------
DROP TABLE IF EXISTS `novel_collect`;
CREATE TABLE `novel_collect` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL COMMENT '用户id',
`book_id` int(11) NOT NULL COMMENT '书籍id',
`status` bit(1) NULL DEFAULT NULL COMMENT '收藏状态',
`read_chapter` int(11) NOT NULL DEFAULT 1 COMMENT '当前阅读章节',
`addtime` int(10) NOT NULL COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 161 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for novel_like
-- ----------------------------
DROP TABLE IF EXISTS `novel_like`;
CREATE TABLE `novel_like` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`book_id` int(11) NOT NULL COMMENT '书籍id',
`user_id` int(11) NOT NULL COMMENT '用户id',
`status` bit(1) NOT NULL DEFAULT b'0',
`addtime` int(10) NULL DEFAULT NULL COMMENT '添加时间',
`like_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `like_id`(`like_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `book_id`(`book_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 59 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for novel_user
-- ----------------------------
DROP TABLE IF EXISTS `novel_user`;
CREATE TABLE `novel_user` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`wx_openid` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`username` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名',
`email` varchar(36) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`mobile` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机号',
`head` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '头像',
`password` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '密码',
`ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '最后一次登录ip',
`register_time` int(10) NOT NULL COMMENT '注册时间',
`login_time` int(10) NULL DEFAULT NULL COMMENT '最后一次登录时间',
`register_ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '注册ip',
PRIMARY KEY (`user_id`) USING BTREE,
INDEX `email`(`email`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
SET FOREIGN_KEY_CHECKS = 1;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/itliuxiangyu/python.git
[email protected]:itliuxiangyu/python.git
itliuxiangyu
python
无聊书城-python端-UNIAPP端-PHP接口
master

搜索帮助