/*
|
Navicat Premium Data Transfer
|
|
Source Server : 主机
|
Source Server Type : MySQL
|
Source Server Version : 50718 (5.7.18-log)
|
Source Host : localhost:3306
|
Source Schema : la_article
|
|
Target Server Type : MySQL
|
Target Server Version : 50718 (5.7.18-log)
|
File Encoding : 65001
|
|
Date: 16/05/2024 11:05:56
|
*/
|
|
SET NAMES utf8mb4;
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
-- ----------------------------
|
-- Table structure for t_article
|
-- ----------------------------
|
DROP TABLE IF EXISTS `t_article`;
|
CREATE TABLE `t_article` (
|
`id` bigint(20) NOT NULL COMMENT '资讯id',
|
`article_type` tinyint(4) NULL DEFAULT NULL COMMENT '资讯类型 1=平台发布 2=用户发布',
|
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资讯标题',
|
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资讯内容',
|
`images` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '资讯图片 [\'a\',\'b\',\'c\',\'d\',\'e\']',
|
`video_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资讯视频',
|
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态 1=待审核 2=已通过 3=已拒绝',
|
`report_status` tinyint(4) NULL DEFAULT NULL COMMENT '举报状态 0=正常 1=被举报',
|
`report_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '举报用户',
|
`reported_time` datetime NULL DEFAULT NULL COMMENT '举报时间',
|
`like_count` int(11) NULL DEFAULT NULL COMMENT '点赞数',
|
`create_by` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
`update_by` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
`del_flag` tinyint(4) NULL DEFAULT 0 COMMENT '删除标志(0代表存在 1代表删除)',
|
PRIMARY KEY (`id`) USING BTREE
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资讯表' ROW_FORMAT = Dynamic;
|
|
-- ----------------------------
|
-- Records of t_article
|
-- ----------------------------
|
|
-- ----------------------------
|
-- Table structure for t_article_comments
|
-- ----------------------------
|
DROP TABLE IF EXISTS `t_article_comments`;
|
CREATE TABLE `t_article_comments` (
|
`id` bigint(20) NOT NULL COMMENT '资讯评论id',
|
`article_id` bigint(20) NULL DEFAULT NULL COMMENT '资讯id',
|
`reply_id` bigint(20) NULL DEFAULT NULL COMMENT '评论id',
|
`member_id` bigint(20) NULL DEFAULT NULL COMMENT '会员id',
|
`content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '评论',
|
`create_by` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
`update_by` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
`del_flag` tinyint(4) NULL DEFAULT 0 COMMENT '删除标志(0代表存在 1代表删除)',
|
PRIMARY KEY (`id`) USING BTREE
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资讯评论回复表' ROW_FORMAT = Dynamic;
|
|
-- ----------------------------
|
-- Records of t_article_comments
|
-- ----------------------------
|
|
-- ----------------------------
|
-- Table structure for t_sensitive_words
|
-- ----------------------------
|
DROP TABLE IF EXISTS `t_sensitive_words`;
|
CREATE TABLE `t_sensitive_words` (
|
`id` bigint(20) NOT NULL,
|
`word` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '敏感词',
|
`create_by` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
|
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
`update_by` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
|
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
`del_flag` tinyint(4) NULL DEFAULT 0 COMMENT '删除标志(0代表存在 1代表删除)',
|
PRIMARY KEY (`id`) USING BTREE
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '敏感词管理' ROW_FORMAT = Dynamic;
|
|
-- ----------------------------
|
-- Records of t_sensitive_words
|
-- ----------------------------
|
|
-- ----------------------------
|
-- Table structure for undo_log
|
-- ----------------------------
|
DROP TABLE IF EXISTS `undo_log`;
|
CREATE TABLE `undo_log` (
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
`branch_id` bigint(20) NOT NULL,
|
`xid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
`context` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
`rollback_info` longblob NOT NULL,
|
`log_status` int(11) NOT NULL,
|
`log_created` datetime NOT NULL,
|
`log_modified` datetime NOT NULL,
|
`ext` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
PRIMARY KEY (`id`) USING BTREE,
|
UNIQUE INDEX `ux_undo_log`(`xid`, `branch_id`) USING BTREE
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
|
-- ----------------------------
|
-- Records of undo_log
|
-- ----------------------------
|
|
SET FOREIGN_KEY_CHECKS = 1;
|