-- MySQL dump 10.13  Distrib 5.7.44, for Linux (x86_64)
--
-- Host: localhost    Database: sonic-shark
-- ------------------------------------------------------
-- Server version	5.7.44-log

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

--
-- Table structure for table `t_blurry_img_record`
--

DROP TABLE IF EXISTS `t_blurry_img_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_blurry_img_record` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `biz_type` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '业务类型（ALBUM 相册、TOPIC 帖子）',
  `biz_id` bigint(20) NOT NULL COMMENT '业务ID',
  `source_img_path` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '原始图片路径',
  `img_path` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '图片的相对路径',
  `img1` longtext COLLATE utf8mb4_unicode_ci COMMENT '模糊图片地址全路径（尺寸：468*600）',
  `img2` longtext COLLATE utf8mb4_unicode_ci COMMENT '模糊图片地址全路径（尺寸：800*800）',
  `img3` longtext COLLATE utf8mb4_unicode_ci COMMENT '模糊图片地址全路径（备用）',
  `creator_id` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `_idx_t_blurry_img_record_biz_type_biz_id` (`biz_type`,`biz_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=205 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='模糊图片访问地址生成记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `t_file_upload_log`
--

DROP TABLE IF EXISTS `t_file_upload_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_file_upload_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `bucket_name` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'bucketName名称',
  `file_path` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件相对路径',
  `full_path` varchar(126) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件全路径（包含host可直接访问）',
  `nsfw_status` tinyint(4) DEFAULT NULL COMMENT '是否鉴黄通过（0 否、1 是、空代表未鉴黄）',
  `nsfw_content` varchar(300) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '鉴黄的结果内容',
  `ip_addr` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'IP地址',
  `endpoint` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '端点来源',
  `biz_confirm_status` tinyint(4) DEFAULT NULL COMMENT '业务确认状态(0 false未确认、1 true 已经确认)',
  `is_delete` tinyint(4) DEFAULT '0' COMMENT '是否删除（0 否 、1 是）',
  `creator_id` bigint(20) DEFAULT NULL COMMENT '创建人ID',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `editor_id` bigint(20) DEFAULT NULL COMMENT '编辑人',
  `edit_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `_idx_t_file_upload_log_creator_id` (`creator_id`) USING BTREE,
  KEY `_idx_t_file_upload_log_create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4088 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='业务文件上传持久化保存记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `t_nsfw_config`
--

DROP TABLE IF EXISTS `t_nsfw_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_nsfw_config` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `category` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '类别',
  `taxonomy_level` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '分类等级（1/2/3）',
  `category_desc` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '类别的中文描述',
  `score` float(18,14) DEFAULT NULL COMMENT '得分判断的阀值',
  `parent_id` bigint(20) DEFAULT NULL COMMENT '父级ID',
  `parent_category` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父级类别',
  `parent_category_desc` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父级类别的中文描述',
  `definitions` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '定义',
  `version_type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '版本类型（空或DEFAULT为默认类型、AI 为AI图片）',
  PRIMARY KEY (`id`),
  KEY `_idx_t_nsfw_config_category` (`category`)
) ENGINE=InnoDB AUTO_INCREMENT=9910004001 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='图鉴鉴黄标签配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `t_nsfw_log`
--

DROP TABLE IF EXISTS `t_nsfw_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_nsfw_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  `bucket_name` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '存储桶的名称',
  `url` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '图片全路径',
  `nsfw_label` text COLLATE utf8mb4_unicode_ci COMMENT 'nsfw的标签',
  `trace_id` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '日志ID',
  `is_delete` tinyint(4) DEFAULT NULL COMMENT '是否删除',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `_idx_t_nsfw_log_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='图鉴鉴黄日志表';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 2025-11-13  2:23:14
