@@ -1,165 +1,22 @@
-- 玉宗 - 珠宝设计大师 数据库初始化脚本(全量数据)
-- 玉宗珠宝设计系统 全量 数据库初始化脚本
-- 使用前请先创建数据库: CREATE DATABASE yssjs CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- 自动生成,包含建表语句和全量数据
-- 导入命令: mysql --default-character-set=utf8mb4 -u yssjs -pyssjs yssjs < init_data.sql
-- 包含全量数据( users、system_configs 含真实 API Key)
SET NAMES utf8mb4 ;
SET NAMES utf8mb4 ;
SET FOREIGN_KEY_CHECKS = 0 ;
SET FOREIGN_KEY_CHECKS = 0 ;
-- ========================================
-- ----------------------------
-- 清空所有表数据(保证每次导入都是全新数据)
-- Table: categories
-- ========================================
-- ----------------------------
TRUNCATE TABLE ` design_imag es` ;
DROP TABLE IF EXISTS ` categori es` ;
TRUNC ATE TABLE ` designs ` ;
CRE ATE TABLE ` categories ` (
TRUNCATE TABLE ` prompt_mappings ` ;
` id ` int NOT NULL AUTO_INCREMENT COMMENT ' 品类ID ' ,
TRUNCATE TABLE ` prompt_templates ` ;
` name ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' 品类名称 ' ,
TRUNCATE TABLE ` system_configs ` ;
` icon ` varchar ( 255 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ' 品类图标 ' ,
TRUNCATE TABLE ` colors ` ;
` sort_order ` int DEFAULT NULL COMMENT ' 排序 ' ,
TRUNCATE TABLE ` sub_types ` ;
` flow_type ` varchar ( 20 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' 流程类型: full/size_color/simple ' ,
TRUNCATE TABLE ` categories ` ;
PRIMARY KEY ( ` id ` )
TRUNCATE TABLE ` users ` ;
) ENGINE = InnoDB AUTO_INCREMENT = 14 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- ========================================
-- 建表: users
-- ========================================
CREATE TABLE IF NOT EXISTS ` users ` (
` id ` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT ' 用户ID ' ,
` username ` VARCHAR ( 50 ) NOT NULL UNIQUE COMMENT ' 用户名 ' ,
` phone ` VARCHAR ( 20 ) DEFAULT NULL UNIQUE COMMENT ' 手机号 ' ,
` hashed_password ` VARCHAR ( 255 ) NOT NULL COMMENT ' 加密密码 ' ,
` nickname ` VARCHAR ( 50 ) DEFAULT NULL COMMENT ' 昵称 ' ,
` avatar ` VARCHAR ( 255 ) DEFAULT NULL COMMENT ' 头像URL ' ,
` is_admin ` TINYINT ( 1 ) NOT NULL DEFAULT 0 COMMENT ' 是否管理员 ' ,
` created_at ` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
` updated_at ` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 '
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = ' 用户表 ' ;
-- ========================================
-- 数据: users
-- ========================================
INSERT INTO ` users ` ( ` id ` , ` username ` , ` phone ` , ` hashed_password ` , ` nickname ` , ` avatar ` , ` is_admin ` , ` created_at ` , ` updated_at ` ) VALUES ( 1 , ' demo ' , NULL , ' $2b$12$bHrcm45CwD0wbQVZIQxOmuZcx/B/MEbGYFTGpPawinDkDWI.jilY2 ' , ' 演示用户 ' , NULL , 1 , ' 2026-03-27 04:20:30 ' , ' 2026-03-27 04:20:30 ' ) ;
INSERT INTO ` users ` ( ` id ` , ` username ` , ` phone ` , ` hashed_password ` , ` nickname ` , ` avatar ` , ` is_admin ` , ` created_at ` , ` updated_at ` ) VALUES ( 2 , ' test1 ' , NULL , ' $2b$12$BG5/I4CVswjNWhfdIP9kJeVqbqLEcWkRq8ioxdpwON7eitL.lSVMW ' , ' 测试用户 ' , NULL , 0 , ' 2026-03-27 04:21:36 ' , ' 2026-03-27 04:21:36 ' ) ;
-- ========================================
-- 建表: categories
-- ========================================
CREATE TABLE IF NOT EXISTS ` categories ` (
` id ` INT AUTO_INCREMENT PRIMARY KEY COMMENT ' 品类ID ' ,
` name ` VARCHAR ( 50 ) NOT NULL COMMENT ' 品类名称 ' ,
` icon ` VARCHAR ( 255 ) DEFAULT NULL COMMENT ' 品类图标 ' ,
` sort_order ` INT DEFAULT 0 COMMENT ' 排序 ' ,
` flow_type ` VARCHAR ( 20 ) NOT NULL COMMENT ' 流程类型: full/size_color/simple '
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = ' 品类表 ' ;
-- ========================================
-- 建表: sub_types
-- ========================================
CREATE TABLE IF NOT EXISTS ` sub_types ` (
` id ` INT AUTO_INCREMENT PRIMARY KEY COMMENT ' 子类型ID ' ,
` category_id ` INT NOT NULL COMMENT ' 所属品类 ' ,
` name ` VARCHAR ( 50 ) NOT NULL COMMENT ' 名称 ' ,
` description ` VARCHAR ( 255 ) DEFAULT NULL COMMENT ' 描述 ' ,
` preview_image ` VARCHAR ( 255 ) DEFAULT NULL COMMENT ' 预览图 ' ,
` sort_order ` INT DEFAULT 0 COMMENT ' 排序 ' ,
CONSTRAINT ` fk_sub_types_category ` FOREIGN KEY ( ` category_id ` ) REFERENCES ` categories ` ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = ' 子类型表 ' ;
-- ========================================
-- 建表: colors
-- ========================================
CREATE TABLE IF NOT EXISTS ` colors ` (
` id ` INT AUTO_INCREMENT PRIMARY KEY COMMENT ' 颜色ID ' ,
` category_id ` INT NOT NULL COMMENT ' 适用品类 ' ,
` name ` VARCHAR ( 50 ) NOT NULL COMMENT ' 颜色名称 ' ,
` hex_code ` VARCHAR ( 7 ) NOT NULL COMMENT ' 色值 ' ,
` sort_order ` INT DEFAULT 0 COMMENT ' 排序 ' ,
CONSTRAINT ` fk_colors_category ` FOREIGN KEY ( ` category_id ` ) REFERENCES ` categories ` ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = ' 颜色表 ' ;
-- ========================================
-- 建表: designs
-- ========================================
CREATE TABLE IF NOT EXISTS ` designs ` (
` id ` BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT ' 设计ID ' ,
` user_id ` BIGINT NOT NULL COMMENT ' 用户ID ' ,
` category_id ` INT NOT NULL COMMENT ' 品类ID ' ,
` sub_type_id ` INT DEFAULT NULL COMMENT ' 子类型ID ' ,
` color_id ` INT DEFAULT NULL COMMENT ' 颜色ID ' ,
` prompt ` TEXT NOT NULL COMMENT ' 设计需求 ' ,
` carving_technique ` VARCHAR ( 50 ) DEFAULT NULL COMMENT ' 雕刻工艺 ' ,
` design_style ` VARCHAR ( 50 ) DEFAULT NULL COMMENT ' 设计风格 ' ,
` motif ` VARCHAR ( 100 ) DEFAULT NULL COMMENT ' 题材纹样 ' ,
` size_spec ` VARCHAR ( 100 ) DEFAULT NULL COMMENT ' 尺寸规格 ' ,
` surface_finish ` VARCHAR ( 50 ) DEFAULT NULL COMMENT ' 表面处理 ' ,
` usage_scene ` VARCHAR ( 50 ) DEFAULT NULL COMMENT ' 用途场景 ' ,
` image_url ` TEXT DEFAULT NULL COMMENT ' 设计图URL ' ,
` video_url ` TEXT DEFAULT NULL COMMENT ' 360度展示视频URL ' ,
` status ` VARCHAR ( 20 ) DEFAULT ' generating ' COMMENT ' 状态 ' ,
` created_at ` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
` updated_at ` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 ' ,
CONSTRAINT ` fk_designs_user ` FOREIGN KEY ( ` user_id ` ) REFERENCES ` users ` ( ` id ` ) ,
CONSTRAINT ` fk_designs_category ` FOREIGN KEY ( ` category_id ` ) REFERENCES ` categories ` ( ` id ` ) ,
CONSTRAINT ` fk_designs_sub_type ` FOREIGN KEY ( ` sub_type_id ` ) REFERENCES ` sub_types ` ( ` id ` ) ,
CONSTRAINT ` fk_designs_color ` FOREIGN KEY ( ` color_id ` ) REFERENCES ` colors ` ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = ' 设计作品表 ' ;
-- ========================================
-- 建表: design_images( 如不存在)
-- ========================================
CREATE TABLE IF NOT EXISTS design_images (
id BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT ' 图片ID ' ,
design_id BIGINT NOT NULL COMMENT ' 关联设计ID ' ,
view_name VARCHAR ( 20 ) NOT NULL COMMENT ' 视角名称: 效果图/正面图/侧面图/背面图 ' ,
image_url TEXT DEFAULT NULL COMMENT ' 图片URL路径 ' ,
model_used VARCHAR ( 50 ) DEFAULT NULL COMMENT ' 使用的AI模型 ' ,
prompt_used TEXT DEFAULT NULL COMMENT ' 实际使用的英文prompt ' ,
sort_order INT DEFAULT 0 COMMENT ' 排序 ' ,
model_3d_url TEXT DEFAULT NULL COMMENT ' 3D模型URL(.glb) ' ,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
CONSTRAINT fk_design_images_design FOREIGN KEY ( design_id ) REFERENCES designs ( id ) ON DELETE CASCADE ,
INDEX idx_design_images_design_id ( design_id )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = ' AI多视角设计图 ' ;
-- ========================================
-- 建表: system_configs( 如不存在)
-- ========================================
CREATE TABLE IF NOT EXISTS system_configs (
id BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT ' 配置ID ' ,
config_key VARCHAR ( 100 ) NOT NULL UNIQUE COMMENT ' 配置键 ' ,
config_value TEXT COMMENT ' 配置值 ' ,
description VARCHAR ( 255 ) COMMENT ' 配置说明 ' ,
config_group VARCHAR ( 50 ) NOT NULL DEFAULT ' general ' COMMENT ' 配置分组: ai/general ' ,
is_secret CHAR ( 1 ) NOT NULL DEFAULT ' N ' COMMENT ' 是否敏感信息(Y/N) ' ,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 '
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = ' 系统配置表 ' ;
-- ========================================
-- 建表: prompt_mappings( 如不存在)
-- ========================================
CREATE TABLE IF NOT EXISTS prompt_mappings (
id BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT ' ID ' ,
mapping_type VARCHAR ( 20 ) NOT NULL COMMENT ' 映射类型: category/color/view/carving/style/motif/finish/scene/sub_type ' ,
cn_key VARCHAR ( 50 ) NOT NULL COMMENT ' 中文键 ' ,
en_value TEXT NOT NULL COMMENT ' 英文值 ' ,
sort_order INT DEFAULT 0 COMMENT ' 排序 ' ,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 ' ,
UNIQUE KEY uk_type_key ( mapping_type , cn_key )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = ' 中英文提示词映射表 ' ;
-- ========================================
-- 建表: prompt_templates( 如不存在)
-- ========================================
CREATE TABLE IF NOT EXISTS prompt_templates (
id BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT ' ID ' ,
template_key VARCHAR ( 50 ) NOT NULL UNIQUE COMMENT ' 模板键 ' ,
template_value TEXT NOT NULL COMMENT ' 模板内容 ' ,
description VARCHAR ( 255 ) COMMENT ' 说明 ' ,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 '
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = ' 提示词模板表 ' ;
-- ========================================
-- categories 数据 (12 条)
-- ========================================
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 1 , ' 牌子 ' , NULL , 1 , ' full ' ) ;
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 1 , ' 牌子 ' , NULL , 1 , ' full ' ) ;
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 2 , ' 珠子 ' , NULL , 2 , ' size_color ' ) ;
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 2 , ' 珠子 ' , NULL , 2 , ' size_color ' ) ;
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 3 , ' 手把件 ' , NULL , 3 , ' full ' ) ;
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 3 , ' 手把件 ' , NULL , 3 , ' full ' ) ;
@@ -174,81 +31,21 @@ INSERT INTO `categories` (`id`, `name`, `icon`, `sort_order`, `flow_type`) VALUE
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 12 , ' 表带 ' , NULL , 12 , ' size_color ' ) ;
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 12 , ' 表带 ' , NULL , 12 , ' size_color ' ) ;
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 13 , ' 随形 ' , NULL , 13 , ' simple ' ) ;
INSERT INTO ` categories ` ( ` id ` , ` name ` , ` icon ` , ` sort_order ` , ` flow_type ` ) VALUES ( 13 , ' 随形 ' , NULL , 13 , ' simple ' ) ;
-- ========================================
-- ----------------------------
-- sub_types 数据 (68 条)
-- Table: colors
-- ========================================
-- ----------------------------
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 1 , 1 , ' 二五牌 ' , NULL , NULL , 1 ) ;
DROP TABLE IF EXISTS ` colors ` ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 2 , 1 , ' 三角牌 ' , NULL , NULL , 2 ) ;
CREATE TABLE ` colors ` (
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 3 , 1 , ' 三五牌 ' , NULL , NULL , 3 ) ;
` id ` int NOT NULL AUTO_INCREMENT COMMENT ' 颜色ID ' ,
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 4 , 1 , ' 四六牌 ' , NULL , NULL , 4 ) ;
` category_id ` int NOT NULL COMMENT ' 适用品类 ' ,
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 5 , 1 , ' 正方形 ' , NULL , NULL , 5 ) ;
` name ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' 颜色名称 ' ,
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 6 , 1 , ' 椭圆形 ' , NULL , NULL , 6 ) ;
` hex_code ` varchar ( 7 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' 色值 ' ,
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 7 , 2 , ' 4mm ' , NULL , NULL , 1 ) ;
` sort_order ` int DEFAULT NULL COMMENT ' 排序 ' ,
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 8 , 2 , ' 6mm ' , NULL , NULL , 2 ) ;
PRIMARY KEY ( ` id ` ) ,
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 9 , 2 , ' 8mm ' , NULL , NULL , 3 ) ;
KEY ` category_id ` ( ` category_id ` ) ,
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 10 , 2 , ' 10mm ' , NULL , NULL , 4 ) ;
CONSTRA INT ` colors_ibfk_1 ` FOREIGN KEY ( ` category_id ` ) REFERENCES ` categories ` ( ` id ` )
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 11 , 2 , ' 12mm ' , NULL , NULL , 5 ) ;
) ENGINE = InnoDB AUTO_INCREMENT = 132 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 12 , 2 , ' 14mm ' , NULL , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 13 , 2 , ' 16mm ' , NULL , NULL , 7 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 14 , 2 , ' 18mm ' , NULL , NULL , 8 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 15 , 2 , ' 20mm ' , NULL , NULL , 9 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 16 , 3 , ' 山水手把件 ' , ' 山水意境题材 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 17 , 3 , ' 动物手把件 ' , ' 动物造型题材 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 18 , 3 , ' 瑞兽手把件 ' , ' 貔貅、麒麟等瑞兽 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 19 , 3 , ' 人物手把件 ' , ' 人物造型题材 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 20 , 3 , ' 花鸟手把件 ' , ' 花鸟自然题材 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 21 , 3 , ' 佛像手把件 ' , ' 佛教题材 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 22 , 4 , ' 山水雕刻 ' , ' 山水意境雕刻 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 23 , 4 , ' 花鸟雕刻 ' , ' 花鸟自然雕刻 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 24 , 4 , ' 人物雕刻 ' , ' 人物造型雕刻 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 25 , 4 , ' 佛像雕刻 ' , ' 佛教题材雕刻 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 26 , 4 , ' 瑞兽雕刻 ' , ' 瑞兽神兽雕刻 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 27 , 4 , ' 仿古雕刻 ' , ' 仿古纹饰雕刻 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 28 , 5 , ' 山水摆件 ' , ' 山水意境摆件 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 29 , 5 , ' 人物摆件 ' , ' 人物造型摆件 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 30 , 5 , ' 动物摆件 ' , ' 动物造型摆件 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 31 , 5 , ' 佛像摆件 ' , ' 佛教题材摆件 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 32 , 5 , ' 花鸟摆件 ' , ' 花鸟自然摆件 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 33 , 5 , ' 器皿摆件 ' , ' 香炉、花瓶等器皿 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 34 , 6 , ' 平安镯 ' , ' 内平外圆,最经典的镯型 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 35 , 6 , ' 福镯 ' , ' 内圆外圆,圆条造型 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 36 , 6 , ' 贵妃镯 ' , ' 椭圆形,贴合手腕 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 37 , 6 , ' 美人镯 ' , ' 条杆纤细,秀气典雅 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 38 , 6 , ' 方镯 ' , ' 方形截面,棱角分明 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 39 , 6 , ' 雕花镯 ' , ' 表面雕刻纹饰 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 40 , 7 , ' 圆形耳钉 ' , ' 经典圆形造型 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 41 , 7 , ' 水滴形耳钉 ' , ' 水滴形优雅造型 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 42 , 7 , ' 方形耳钉 ' , ' 方形简约造型 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 43 , 7 , ' 花朵形耳钉 ' , ' 花朵造型 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 44 , 7 , ' 心形耳钉 ' , ' 心形浪漫造型 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 45 , 7 , ' 几何形耳钉 ' , ' 几何抽象造型 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 46 , 8 , ' 耳环 ' , ' 圆环形耳饰 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 47 , 8 , ' 耳坠 ' , ' 垂坠型耳饰 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 48 , 8 , ' 耳夹 ' , ' 无需耳洞的耳饰 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 49 , 8 , ' 流苏耳饰 ' , ' 长款流苏造型 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 50 , 9 , ' 6mm ' , NULL , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 51 , 9 , ' 8mm ' , NULL , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 52 , 9 , ' 10mm ' , NULL , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 53 , 9 , ' 12mm ' , NULL , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 54 , 9 , ' 14mm ' , NULL , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 55 , 10 , ' 锁骨链 ' , ' 短款锁骨链 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 56 , 10 , ' 吊坠项链 ' , ' 搭配玉石吊坠 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 57 , 10 , ' 串珠项链 ' , ' 玉珠串联而成 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 58 , 10 , ' 编绳项链 ' , ' 编织绳搭配玉石 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 59 , 10 , ' 毛衣链 ' , ' 长款毛衣链 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 60 , 11 , ' 素面戒指 ' , ' 光面简约戒指 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 61 , 11 , ' 镶嵌戒指 ' , ' 金属镶嵌玉石 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 62 , 11 , ' 雕花戒指 ' , ' 表面雕刻纹饰 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 63 , 11 , ' 扳指 ' , ' 传统扳指造型 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 64 , 11 , ' 指环 ' , ' 环形简约指环 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 65 , 12 , ' 18mm ' , NULL , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 66 , 12 , ' 20mm ' , NULL , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 67 , 12 , ' 22mm ' , NULL , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 68 , 12 , ' 24mm ' , NULL , NULL , 4 ) ;
-- ========================================
-- colors 数据 (121 条)
-- ========================================
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 1 , 2 , ' 糖白 ' , ' #F5F0E8 ' , 1 ) ;
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 1 , 2 , ' 糖白 ' , ' #F5F0E8 ' , 1 ) ;
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 2 , 2 , ' 白玉 ' , ' #FEFEF2 ' , 2 ) ;
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 2 , 2 , ' 白玉 ' , ' #FEFEF2 ' , 2 ) ;
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 3 , 2 , ' 碧玉 ' , ' #2D5F2D ' , 3 ) ;
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 3 , 2 , ' 碧玉 ' , ' #2D5F2D ' , 3 ) ;
@@ -381,9 +178,85 @@ INSERT INTO `colors` (`id`, `category_id`, `name`, `hex_code`, `sort_order`) VAL
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 130 , 13 , ' 藕粉 ' , ' #E8B4B8 ' , 9 ) ;
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 130 , 13 , ' 藕粉 ' , ' #E8B4B8 ' , 9 ) ;
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 131 , 13 , ' 烟紫 ' , ' #8B7D9B ' , 10 ) ;
INSERT INTO ` colors ` ( ` id ` , ` category_id ` , ` name ` , ` hex_code ` , ` sort_order ` ) VALUES ( 131 , 13 , ' 烟紫 ' , ' #8B7D9B ' , 10 ) ;
-- ========================================
-- ----------------------------
-- prompt_mappings 数据 (93 条)
-- Table: design_images
-- ========================================
-- ----------------------------
DROP TABLE IF EXISTS ` design_images ` ;
CREATE TABLE ` design_images ` (
` id ` bigint NOT NULL AUTO_INCREMENT ,
` design_id ` bigint NOT NULL ,
` view_name ` varchar ( 20 ) COLLATE utf8mb4_unicode_ci NOT NULL ,
` image_url ` text COLLATE utf8mb4_unicode_ci ,
` model_used ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` prompt_used ` text COLLATE utf8mb4_unicode_ci ,
` sort_order ` int DEFAULT ' 0 ' ,
` model_3d_url ` text COLLATE utf8mb4_unicode_ci COMMENT ' 3D模型URL(.glb) ' ,
` created_at ` datetime DEFAULT CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
KEY ` idx_design_images_design_id ` ( ` design_id ` ) ,
CONSTRAINT ` fk_design_images_design ` FOREIGN KEY ( ` design_id ` ) REFERENCES ` designs ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 33 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
INSERT INTO ` design_images ` ( ` id ` , ` design_id ` , ` view_name ` , ` image_url ` , ` model_used ` , ` prompt_used ` , ` sort_order ` , ` model_3d_url ` , ` created_at ` ) VALUES ( 26 , 24 , ' 效果图 ' , ' https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/021774603662634abef7db0e51ae42a75ef9551e31b2ffa297e1d_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260327%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260327T092814Z&X-Tos-Expires=86400&X-Tos-Signature=4c45a7e5cd9deab6608a0a088896b66ea86b978f80c22d725c5cdbdd8d48e72c&X-Tos-SignedHeaders=host ' , ' seedream-5.0 ' , ' Chinese Hetian nephrite jade pendant plaque, rectangular tablet shape, square shaped plaque, pure white nephrite jade, milky translucent, warm ivory tone, featuring Pixiu mythical beast, Chinese fortune guardian creature, relief carving with raised design emerging from surface, classical traditional Chinese style, antique aesthetic, heritage craftsmanship, high-gloss mirror polish, reflective glossy surface, designed for daily wear, comfortable and practical, size approximately 60x40x12mm, design concept: 桌子上, three-quarter view, 45-degree angle, hero shot, dramatic perspective showing depth and dimension, professional jewelry product photography, studio lighting setup, pure white background, ultra-detailed, sharp focus, 8K resolution, photorealistic rendering, high-end commercial quality ' , 0 , NULL , ' 2026-03-27 09:29:10 ' ) ;
INSERT INTO ` design_images ` ( ` id ` , ` design_id ` , ` view_name ` , ` image_url ` , ` model_used ` , ` prompt_used ` , ` sort_order ` , ` model_3d_url ` , ` created_at ` ) VALUES ( 27 , 24 , ' 正面图 ' , ' https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/021774603695370cd417e3a5d5f9b5e363d704a28c424928021b1_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260327%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260327T092844Z&X-Tos-Expires=86400&X-Tos-Signature=c6782b121c95d03ce6a06e492a5cc388232220c6b3647052e21ae7861090c1f8&X-Tos-SignedHeaders=host ' , ' seedream-5.0 ' , ' Chinese Hetian nephrite jade pendant plaque, rectangular tablet shape, square shaped plaque, pure white nephrite jade, milky translucent, warm ivory tone, featuring Pixiu mythical beast, Chinese fortune guardian creature, relief carving with raised design emerging from surface, classical traditional Chinese style, antique aesthetic, heritage craftsmanship, high-gloss mirror polish, reflective glossy surface, designed for daily wear, comfortable and practical, size approximately 60x40x12mm, design concept: 桌子上, front view, straight-on, flat lay centered, facing camera directly, professional jewelry product photography, studio lighting setup, pure white background, ultra-detailed, sharp focus, 8K resolution, photorealistic rendering, high-end commercial quality ' , 1 , NULL , ' 2026-03-27 09:29:10 ' ) ;
INSERT INTO ` design_images ` ( ` id ` , ` design_id ` , ` view_name ` , ` image_url ` , ` model_used ` , ` prompt_used ` , ` sort_order ` , ` model_3d_url ` , ` created_at ` ) VALUES ( 28 , 24 , ' 背面图 ' , ' https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/0217746037252401fad3a044f20103f8e4b726dec7c2fa48ca5da_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260327%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260327T092910Z&X-Tos-Expires=86400&X-Tos-Signature=4736a14a81377c899dd03fbbf28f2d70f4447c16368ea656517a260fc89c91f0&X-Tos-SignedHeaders=host ' , ' seedream-5.0 ' , ' Chinese Hetian nephrite jade pendant plaque, rectangular tablet shape, square shaped plaque, pure white nephrite jade, milky translucent, warm ivory tone, featuring Pixiu mythical beast, Chinese fortune guardian creature, relief carving with raised design emerging from surface, classical traditional Chinese style, antique aesthetic, heritage craftsmanship, high-gloss mirror polish, reflective glossy surface, designed for daily wear, comfortable and practical, size approximately 60x40x12mm, design concept: 桌子上, back view, rear side, showing reverse surface and texture, professional jewelry product photography, studio lighting setup, pure white background, ultra-detailed, sharp focus, 8K resolution, photorealistic rendering, high-end commercial quality ' , 2 , NULL , ' 2026-03-27 09:29:10 ' ) ;
INSERT INTO ` design_images ` ( ` id ` , ` design_id ` , ` view_name ` , ` image_url ` , ` model_used ` , ` prompt_used ` , ` sort_order ` , ` model_3d_url ` , ` created_at ` ) VALUES ( 29 , 27 , ' 效果图 ' , ' https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/0217746123473820b865ba46ab853a653f94346fa59dc1da3cf44_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260327%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260327T115254Z&X-Tos-Expires=86400&X-Tos-Signature=1d5da361de1e5113a0bb5d01840b388f0fd80f358ed559f28ceb3da5e75a3ee3&X-Tos-SignedHeaders=host ' , ' seedream-5.0 ' , ' Chinese Hetian nephrite jade freeform sculpture, organic natural shape following the raw stone contour, artistic interpretation of the original rough jade form, celadon nephrite jade, muted sage green, natural earthy green, featuring Maitreya laughing Buddha, jovial happy Buddha figure, relief carving with raised design emerging from surface, classical traditional Chinese style, antique aesthetic, heritage craftsmanship, high-gloss mirror polish, reflective glossy surface, designed for daily wear, comfortable and practical, size approximately 小(约60mm), design concept: 形状:原石随形,自由发挥, three-quarter view, 45-degree angle, hero shot, dramatic perspective showing depth and dimension, professional jewelry product photography, studio lighting setup, pure white background, ultra-detailed, sharp focus, 8K resolution, photorealistic rendering, high-end commercial quality ' , 0 , ' /uploads/models/506909359d6c45fe9e43108ee7765a9a.glb ' , ' 2026-03-27 11:54:22 ' ) ;
INSERT INTO ` design_images ` ( ` id ` , ` design_id ` , ` view_name ` , ` image_url ` , ` model_used ` , ` prompt_used ` , ` sort_order ` , ` model_3d_url ` , ` created_at ` ) VALUES ( 30 , 27 , ' 正面图 ' , ' https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/021774612375050be847cf78a18700c7c5f1c903c2ea6d9bd058e_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260327%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260327T115322Z&X-Tos-Expires=86400&X-Tos-Signature=8436646d32886371fb2693a7d2a43476f2df124c0c6c821b64c1adb63649964e&X-Tos-SignedHeaders=host ' , ' seedream-5.0 ' , ' Chinese Hetian nephrite jade freeform sculpture, organic natural shape following the raw stone contour, artistic interpretation of the original rough jade form, celadon nephrite jade, muted sage green, natural earthy green, featuring Maitreya laughing Buddha, jovial happy Buddha figure, relief carving with raised design emerging from surface, classical traditional Chinese style, antique aesthetic, heritage craftsmanship, high-gloss mirror polish, reflective glossy surface, designed for daily wear, comfortable and practical, size approximately 小(约60mm), design concept: 形状:原石随形,自由发挥, front view, straight-on, flat lay centered, facing camera directly, professional jewelry product photography, studio lighting setup, pure white background, ultra-detailed, sharp focus, 8K resolution, photorealistic rendering, high-end commercial quality ' , 1 , NULL , ' 2026-03-27 11:54:22 ' ) ;
INSERT INTO ` design_images ` ( ` id ` , ` design_id ` , ` view_name ` , ` image_url ` , ` model_used ` , ` prompt_used ` , ` sort_order ` , ` model_3d_url ` , ` created_at ` ) VALUES ( 31 , 27 , ' 侧面图 ' , ' https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/02177461240230991172dea4c1343f5a1ee75fbf798a6b0d4fd26_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260327%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260327T115351Z&X-Tos-Expires=86400&X-Tos-Signature=3d15b4eb02c16e32b3c5ea6bf0c65966e97822edf9da84f072d0f9e54665f777&X-Tos-SignedHeaders=host ' , ' seedream-5.0 ' , ' Chinese Hetian nephrite jade freeform sculpture, organic natural shape following the raw stone contour, artistic interpretation of the original rough jade form, celadon nephrite jade, muted sage green, natural earthy green, featuring Maitreya laughing Buddha, jovial happy Buddha figure, relief carving with raised design emerging from surface, classical traditional Chinese style, antique aesthetic, heritage craftsmanship, high-gloss mirror polish, reflective glossy surface, designed for daily wear, comfortable and practical, size approximately 小(约60mm), design concept: 形状:原石随形,自由发挥, side profile view, 90-degree lateral angle, showing thickness and contour, professional jewelry product photography, studio lighting setup, pure white background, ultra-detailed, sharp focus, 8K resolution, photorealistic rendering, high-end commercial quality ' , 2 , NULL , ' 2026-03-27 11:54:22 ' ) ;
INSERT INTO ` design_images ` ( ` id ` , ` design_id ` , ` view_name ` , ` image_url ` , ` model_used ` , ` prompt_used ` , ` sort_order ` , ` model_3d_url ` , ` created_at ` ) VALUES ( 32 , 27 , ' 背面图 ' , ' https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/021774612432177ca53c98b4a9847edf4b59a94723c611efd12a3_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260327%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260327T115422Z&X-Tos-Expires=86400&X-Tos-Signature=0be7759a2bfc3b6b323417c29665910745a2d687996fb2d889a525c56b4c80ee&X-Tos-SignedHeaders=host ' , ' seedream-5.0 ' , ' Chinese Hetian nephrite jade freeform sculpture, organic natural shape following the raw stone contour, artistic interpretation of the original rough jade form, celadon nephrite jade, muted sage green, natural earthy green, featuring Maitreya laughing Buddha, jovial happy Buddha figure, relief carving with raised design emerging from surface, classical traditional Chinese style, antique aesthetic, heritage craftsmanship, high-gloss mirror polish, reflective glossy surface, designed for daily wear, comfortable and practical, size approximately 小(约60mm), design concept: 形状:原石随形,自由发挥, back view, rear side, showing reverse surface and texture, professional jewelry product photography, studio lighting setup, pure white background, ultra-detailed, sharp focus, 8K resolution, photorealistic rendering, high-end commercial quality ' , 3 , NULL , ' 2026-03-27 11:54:22 ' ) ;
-- ----------------------------
-- Table: designs
-- ----------------------------
DROP TABLE IF EXISTS ` designs ` ;
CREATE TABLE ` designs ` (
` id ` bigint NOT NULL AUTO_INCREMENT COMMENT ' 设计ID ' ,
` user_id ` bigint NOT NULL COMMENT ' 用户ID ' ,
` category_id ` int NOT NULL COMMENT ' 品类ID ' ,
` sub_type_id ` int DEFAULT NULL COMMENT ' 子类型ID ' ,
` color_id ` int DEFAULT NULL COMMENT ' 颜色ID ' ,
` prompt ` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' 设计需求 ' ,
` usage_scene ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` surface_finish ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` size_spec ` varchar ( 100 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` motif ` varchar ( 100 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` design_style ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` carving_technique ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` image_url ` text COLLATE utf8mb4_unicode_ci ,
` video_url ` text COLLATE utf8mb4_unicode_ci COMMENT ' 360度展示视频URL ' ,
` status ` varchar ( 20 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ' 状态 ' ,
` created_at ` datetime DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
` updated_at ` datetime DEFAULT CURRENT_TIMESTAMP COMMENT ' 更新时间 ' ,
PRIMARY KEY ( ` id ` ) ,
KEY ` user_id ` ( ` user_id ` ) ,
KEY ` category_id ` ( ` category_id ` ) ,
KEY ` sub_type_id ` ( ` sub_type_id ` ) ,
KEY ` color_id ` ( ` color_id ` ) ,
CONSTRAINT ` designs_ibfk_1 ` FOREIGN KEY ( ` user_id ` ) REFERENCES ` users ` ( ` id ` ) ,
CONSTRAINT ` designs_ibfk_2 ` FOREIGN KEY ( ` category_id ` ) REFERENCES ` categories ` ( ` id ` ) ,
CONSTRAINT ` designs_ibfk_3 ` FOREIGN KEY ( ` sub_type_id ` ) REFERENCES ` sub_types ` ( ` id ` ) ,
CONSTRAINT ` designs_ibfk_4 ` FOREIGN KEY ( ` color_id ` ) REFERENCES ` colors ` ( ` id ` )
) ENGINE = InnoDB AUTO_INCREMENT = 28 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
INSERT INTO ` designs ` ( ` id ` , ` user_id ` , ` category_id ` , ` sub_type_id ` , ` color_id ` , ` prompt ` , ` usage_scene ` , ` surface_finish ` , ` size_spec ` , ` motif ` , ` design_style ` , ` carving_technique ` , ` image_url ` , ` video_url ` , ` status ` , ` created_at ` , ` updated_at ` ) VALUES ( 24 , 1 , 1 , 5 , 4 , ' 桌子上 ' , ' 日常佩戴 ' , ' 高光抛光 ' , ' 60x40x12mm ' , ' 貔貅 ' , ' 古典传统 ' , ' 浮雕 ' , ' https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/021774603662634abef7db0e51ae42a75ef9551e31b2ffa297e1d_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260327%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260327T092814Z&X-Tos-Expires=86400&X-Tos-Signature=4c45a7e5cd9deab6608a0a088896b66ea86b978f80c22d725c5cdbdd8d48e72c&X-Tos-SignedHeaders=host ' , NULL , ' completed ' , ' 2026-03-27 09:27:42 ' , ' 2026-03-27 09:29:10 ' ) ;
INSERT INTO ` designs ` ( ` id ` , ` user_id ` , ` category_id ` , ` sub_type_id ` , ` color_id ` , ` prompt ` , ` usage_scene ` , ` surface_finish ` , ` size_spec ` , ` motif ` , ` design_style ` , ` carving_technique ` , ` image_url ` , ` video_url ` , ` status ` , ` created_at ` , ` updated_at ` ) VALUES ( 26 , 1 , 13 , NULL , 124 , ' 形状:原石随形,自由发挥 ' , ' 日常佩戴 ' , ' 高光抛光 ' , ' 小(约60mm) ' , ' 弥勒 ' , ' 古典传统 ' , ' 浮雕 ' , ' /uploads/designs/26.png ' , NULL , ' completed ' , ' 2026-03-27 11:50:56 ' , ' 2026-03-27 11:50:56 ' ) ;
INSERT INTO ` designs ` ( ` id ` , ` user_id ` , ` category_id ` , ` sub_type_id ` , ` color_id ` , ` prompt ` , ` usage_scene ` , ` surface_finish ` , ` size_spec ` , ` motif ` , ` design_style ` , ` carving_technique ` , ` image_url ` , ` video_url ` , ` status ` , ` created_at ` , ` updated_at ` ) VALUES ( 27 , 1 , 13 , NULL , 124 , ' 形状:原石随形,自由发挥 ' , ' 日常佩戴 ' , ' 高光抛光 ' , ' 小(约60mm) ' , ' 弥勒 ' , ' 古典传统 ' , ' 浮雕 ' , ' https://ark-acg-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-5-0/0217746123473820b865ba46ab853a653f94346fa59dc1da3cf44_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260327%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260327T115254Z&X-Tos-Expires=86400&X-Tos-Signature=1d5da361de1e5113a0bb5d01840b388f0fd80f358ed559f28ceb3da5e75a3ee3&X-Tos-SignedHeaders=host ' , ' /uploads/videos/6ed3f33421a44876b303c7671c1597d5.mp4 ' , ' completed ' , ' 2026-03-27 11:52:27 ' , ' 2026-03-27 16:16:40 ' ) ;
-- ----------------------------
-- Table: prompt_mappings
-- ----------------------------
DROP TABLE IF EXISTS ` prompt_mappings ` ;
CREATE TABLE ` prompt_mappings ` (
` id ` bigint NOT NULL AUTO_INCREMENT ,
` mapping_type ` varchar ( 50 ) NOT NULL COMMENT ' 映射类型 ' ,
` cn_key ` varchar ( 100 ) NOT NULL COMMENT ' 中文键 ' ,
` en_value ` text NOT NULL COMMENT ' 英文描述 ' ,
` sort_order ` int DEFAULT ' 0 ' COMMENT ' 排序 ' ,
` updated_at ` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` uk_type_key ` ( ` mapping_type ` , ` cn_key ` )
) ENGINE = InnoDB AUTO_INCREMENT = 94 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = ' 提示词映射 ' ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 1 , ' category ' , ' 牌子 ' , ' Chinese Hetian nephrite jade pendant plaque, rectangular tablet shape ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 1 , ' category ' , ' 牌子 ' , ' Chinese Hetian nephrite jade pendant plaque, rectangular tablet shape ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 2 , ' category ' , ' 珠子 ' , ' Chinese Hetian nephrite jade bead, perfectly round sphere ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 2 , ' category ' , ' 珠子 ' , ' Chinese Hetian nephrite jade bead, perfectly round sphere ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 3 , ' category ' , ' 手把件 ' , ' Chinese Hetian nephrite jade hand piece (palm stone), ergonomic carved ornament for hand play ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 3 , ' category ' , ' 手把件 ' , ' Chinese Hetian nephrite jade hand piece (palm stone), ergonomic carved ornament for hand play ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
@@ -396,7 +269,6 @@ INSERT INTO `prompt_mappings` (`id`, `mapping_type`, `cn_key`, `en_value`, `sort
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 10 , ' category ' , ' 项链 ' , ' Chinese Hetian nephrite jade necklace, elegant pendant on chain ' , 9 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 10 , ' category ' , ' 项链 ' , ' Chinese Hetian nephrite jade necklace, elegant pendant on chain ' , 9 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 11 , ' category ' , ' 戒指 ' , ' Chinese Hetian nephrite jade ring, polished jade mounted on band ' , 10 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 11 , ' category ' , ' 戒指 ' , ' Chinese Hetian nephrite jade ring, polished jade mounted on band ' , 10 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 12 , ' category ' , ' 表带 ' , ' Chinese Hetian nephrite jade watch strap, segmented jade links ' , 11 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 12 , ' category ' , ' 表带 ' , ' Chinese Hetian nephrite jade watch strap, segmented jade links ' , 11 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 93 , ' category ' , ' 随形 ' , ' Chinese Hetian nephrite jade freeform sculpture, organic natural shape following the raw stone contour, artistic interpretation of the original rough jade form ' , 12 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 13 , ' color ' , ' 白玉 ' , ' pure white nephrite jade, milky translucent, warm ivory tone ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 13 , ' color ' , ' 白玉 ' , ' pure white nephrite jade, milky translucent, warm ivory tone ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 14 , ' color ' , ' 青白玉 ' , ' celadon-white nephrite jade, pale greenish-white, subtle cool tone ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 14 , ' color ' , ' 青白玉 ' , ' celadon-white nephrite jade, pale greenish-white, subtle cool tone ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 15 , ' color ' , ' 青玉 ' , ' celadon nephrite jade, muted sage green, natural earthy green ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 15 , ' color ' , ' 青玉 ' , ' celadon nephrite jade, muted sage green, natural earthy green ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
@@ -408,10 +280,10 @@ INSERT INTO `prompt_mappings` (`id`, `mapping_type`, `cn_key`, `en_value`, `sort
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 21 , ' color ' , ' 藕粉 ' , ' lotus-pink nephrite jade, soft blush pink, delicate pastel rose ' , 8 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 21 , ' color ' , ' 藕粉 ' , ' lotus-pink nephrite jade, soft blush pink, delicate pastel rose ' , 8 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 22 , ' color ' , ' 烟紫 ' , ' smoky purple nephrite jade, muted lavender grey, subtle violet ' , 9 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 22 , ' color ' , ' 烟紫 ' , ' smoky purple nephrite jade, muted lavender grey, subtle violet ' , 9 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 23 , ' color ' , ' 糖白 ' , ' sugar-white nephrite jade, creamy white with light brown edges ' , 10 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 23 , ' color ' , ' 糖白 ' , ' sugar-white nephrite jade, creamy white with light brown edges ' , 10 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 24 , ' view ' , ' 效果图 ' , ' three-quarter view, 45-degree angle, hero shot, dramatic perspective showing depth and dimension ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 24 , ' view ' , ' 效果图 ' , ' three-quarter view at 45-degree angle, hero shot showing the complete jade artwork with depth and dimension, single object on pure white background ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 25 , ' view ' , ' 正面图 ' , ' front view, straight-on, flat lay centered, facing camera directly ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 25 , ' view ' , ' 正面图 ' , ' front view, camera positioned directly in front of the object facing it straight-on, showing only the front carved surface, single object on pure white background ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 26 , ' view ' , ' 侧面图 ' , ' side profile view, 90- degree lateral angle, showing thickness and contour ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 26 , ' view ' , ' 侧面图 ' , ' side view, camera positioned at exactly 90 degrees to the left of the object, showing the edge profile and thickness, single object on pure white background ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 27 , ' view ' , ' 背面图 ' , ' back view, rear side , showing reverse surface and texture ' , 3 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 27 , ' view ' , ' 背面图 ' , ' back view, camera positioned directly behind the object at 180 degrees , showing the reverse side, single object on pure white background ' , 3 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 28 , ' carving ' , ' 浮雕 ' , ' relief carving with raised design emerging from surface ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 28 , ' carving ' , ' 浮雕 ' , ' relief carving with raised design emerging from surface ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 29 , ' carving ' , ' 圆雕 ' , ' full three-dimensional round carving, sculptural in the round ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 29 , ' carving ' , ' 圆雕 ' , ' full three-dimensional round carving, sculptural in the round ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 30 , ' carving ' , ' 镂空雕 ' , ' openwork pierced carving, intricate hollow cutout patterns ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 30 , ' carving ' , ' 镂空雕 ' , ' openwork pierced carving, intricate hollow cutout patterns ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
@@ -436,7 +308,7 @@ INSERT INTO `prompt_mappings` (`id`, `mapping_type`, `cn_key`, `en_value`, `sort
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 49 , ' motif ' , ' 人物 ' , ' human figure motif, classical Chinese character portrayal ' , 8 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 49 , ' motif ' , ' 人物 ' , ' human figure motif, classical Chinese character portrayal ' , 8 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 50 , ' motif ' , ' 回纹 ' , ' Greek key fret pattern, Chinese meander geometric border ' , 9 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 50 , ' motif ' , ' 回纹 ' , ' Greek key fret pattern, Chinese meander geometric border ' , 9 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 51 , ' motif ' , ' 如意 ' , ' Ruyi scepter motif, auspicious cloud-head wish-granting symbol ' , 10 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 51 , ' motif ' , ' 如意 ' , ' Ruyi scepter motif, auspicious cloud-head wish-granting symbol ' , 10 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 52 , ' motif ' , ' 平安扣 ' , ' Ping\ 'an buckle motif , smooth circular safety and peace symbol ' , 11, ' 2026- 03 - 27 07 : 20 : 55' );
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 52 , ' motif ' , ' 平安扣 ' , ' Ping '' an buckle motif, smooth circular safety and peace symbol ' , 11 , ' 2026-03-27 07:20: 55' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 53 , ' finish ' , ' 高光抛光 ' , ' high-gloss mirror polish, reflective glossy surface ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 53 , ' finish ' , ' 高光抛光 ' , ' high-gloss mirror polish, reflective glossy surface ' , 0 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 54 , ' finish ' , ' 亚光/哑光 ' , ' matte satin finish, soft non-reflective surface ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 54 , ' finish ' , ' 亚光/哑光 ' , ' matte satin finish, soft non-reflective surface ' , 1 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 55 , ' finish ' , ' 磨砂 ' , ' frosted textured finish, fine granular surface ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 55 , ' finish ' , ' 磨砂 ' , ' frosted textured finish, fine granular surface ' , 2 , ' 2026-03-27 07:20:55 ' ) ;
@@ -477,32 +349,164 @@ INSERT INTO `prompt_mappings` (`id`, `mapping_type`, `cn_key`, `en_value`, `sort
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 90 , ' sub_type ' , ' 串珠项链 ' , ' beaded jade strand necklace ' , 29 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 90 , ' sub_type ' , ' 串珠项链 ' , ' beaded jade strand necklace ' , 29 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 91 , ' sub_type ' , ' 编绳项链 ' , ' braided cord necklace with jade ' , 30 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 91 , ' sub_type ' , ' 编绳项链 ' , ' braided cord necklace with jade ' , 30 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 92 , ' sub_type ' , ' 毛衣链 ' , ' long sweater chain necklace ' , 31 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 92 , ' sub_type ' , ' 毛衣链 ' , ' long sweater chain necklace ' , 31 , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_mappings ` ( ` id ` , ` mapping_type ` , ` cn_key ` , ` en_value ` , ` sort_order ` , ` updated_at ` ) VALUES ( 93 , ' category ' , ' 随形 ' , ' Chinese Hetian nephrite jade freeform sculpture, organic natural shape following the raw stone contour, artistic interpretation of the original rough jade form ' , 12 , ' 2026-03-27 11:38:59 ' ) ;
-- ----------------------------
-- Table: prompt_templates
-- ----------------------------
DROP TABLE IF EXISTS ` prompt_templates ` ;
CREATE TABLE ` prompt_templates ` (
` id ` bigint NOT NULL AUTO_INCREMENT ,
` template_key ` varchar ( 100 ) NOT NULL COMMENT ' 模板键 ' ,
` template_value ` text NOT NULL COMMENT ' 模板内容 ' ,
` description ` varchar ( 255 ) DEFAULT NULL COMMENT ' 说明 ' ,
` updated_at ` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` template_key ` ( ` template_key ` )
) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = ' 提示词模板 ' ;
-- ========================================
-- prompt_templates 数据 (3 条)
-- ========================================
INSERT INTO ` prompt_templates ` ( ` id ` , ` template_key ` , ` template_value ` , ` description ` , ` updated_at ` ) VALUES ( 1 , ' main_template ' , ' {subject}, {sub_type}, {color}, {motif}, {carving}, {style}, {finish}, {scene}, {size}, {user_prompt}, {view}, {quality} ' , ' 主提示词模板 - 用变量拼接最终prompt。可用变量: {subject}品类主体, {sub_type}子类型, {color}颜色, {motif}题材, {carving}工艺, {style}风格, {finish}表面处理, {scene}用途, {size}尺寸, {user_prompt}用户描述, {view}视角, {quality}质量后缀 ' , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_templates ` ( ` id ` , ` template_key ` , ` template_value ` , ` description ` , ` updated_at ` ) VALUES ( 1 , ' main_template ' , ' {subject}, {sub_type}, {color}, {motif}, {carving}, {style}, {finish}, {scene}, {size}, {user_prompt}, {view}, {quality} ' , ' 主提示词模板 - 用变量拼接最终prompt。可用变量: {subject}品类主体, {sub_type}子类型, {color}颜色, {motif}题材, {carving}工艺, {style}风格, {finish}表面处理, {scene}用途, {size}尺寸, {user_prompt}用户描述, {view}视角, {quality}质量后缀 ' , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_templates ` ( ` id ` , ` template_key ` , ` template_value ` , ` description ` , ` updated_at ` ) VALUES ( 2 , ' quality_suffix ' , ' professional jewelry product photography, studio lighting setup, pure white background, ultra-detailed, sharp focus, 8K resolution, photorealistic rendering, high-end commercial quality ' , ' 质量后缀标签 - 附加在prompt末尾的通用质量描述 ' , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_templates ` ( ` id ` , ` template_key ` , ` template_value ` , ` description ` , ` updated_at ` ) VALUES ( 2 , ' quality_suffix ' , ' professional jewelry product photography, studio lighting setup, pure white background, ultra-detailed, sharp focus, 8K resolution, photorealistic rendering, high-end commercial quality ' , ' 质量后缀标签 - 附加在prompt末尾的通用质量描述 ' , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_templates ` ( ` id ` , ` template_key ` , ` template_value ` , ` description ` , ` updated_at ` ) VALUES ( 3 , ' default_color ' , ' natural Hetian nephrite jade with warm luster ' , ' 未选择颜色时的默认颜色描述 ' , ' 2026-03-27 07:20:55 ' ) ;
INSERT INTO ` prompt_templates ` ( ` id ` , ` template_key ` , ` template_value ` , ` description ` , ` updated_at ` ) VALUES ( 3 , ' default_color ' , ' natural Hetian nephrite jade with warm luster ' , ' 未选择颜色时的默认颜色描述 ' , ' 2026-03-27 07:20:55 ' ) ;
-- ========================================
-- ----------------------------
-- system_configs 数据 (6 条)
-- Table: sub_types
-- ========================================
-- ----------------------------
DROP TABLE IF EXISTS ` sub_types ` ;
CREATE TABLE ` sub_types ` (
` id ` int NOT NULL AUTO_INCREMENT COMMENT ' 子类型ID ' ,
` category_id ` int NOT NULL COMMENT ' 所属品类 ' ,
` name ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' 名称 ' ,
` description ` varchar ( 255 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ' 描述 ' ,
` preview_image ` varchar ( 255 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ' 预览图 ' ,
` sort_order ` int DEFAULT NULL COMMENT ' 排序 ' ,
PRIMARY KEY ( ` id ` ) ,
KEY ` category_id ` ( ` category_id ` ) ,
CONSTRAINT ` sub_types_ibfk_1 ` FOREIGN KEY ( ` category_id ` ) REFERENCES ` categories ` ( ` id ` )
) ENGINE = InnoDB AUTO_INCREMENT = 69 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 1 , 1 , ' 二五牌 ' , NULL , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 2 , 1 , ' 三角牌 ' , NULL , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 3 , 1 , ' 三五牌 ' , NULL , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 4 , 1 , ' 四六牌 ' , NULL , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 5 , 1 , ' 正方形 ' , NULL , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 6 , 1 , ' 椭圆形 ' , NULL , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 7 , 2 , ' 4mm ' , NULL , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 8 , 2 , ' 6mm ' , NULL , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 9 , 2 , ' 8mm ' , NULL , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 10 , 2 , ' 10mm ' , NULL , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 11 , 2 , ' 12mm ' , NULL , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 12 , 2 , ' 14mm ' , NULL , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 13 , 2 , ' 16mm ' , NULL , NULL , 7 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 14 , 2 , ' 18mm ' , NULL , NULL , 8 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 15 , 2 , ' 20mm ' , NULL , NULL , 9 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 16 , 3 , ' 山水手把件 ' , ' 山水意境题材 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 17 , 3 , ' 动物手把件 ' , ' 动物造型题材 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 18 , 3 , ' 瑞兽手把件 ' , ' 貔貅、麒麟等瑞兽 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 19 , 3 , ' 人物手把件 ' , ' 人物造型题材 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 20 , 3 , ' 花鸟手把件 ' , ' 花鸟自然题材 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 21 , 3 , ' 佛像手把件 ' , ' 佛教题材 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 22 , 4 , ' 山水雕刻 ' , ' 山水意境雕刻 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 23 , 4 , ' 花鸟雕刻 ' , ' 花鸟自然雕刻 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 24 , 4 , ' 人物雕刻 ' , ' 人物造型雕刻 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 25 , 4 , ' 佛像雕刻 ' , ' 佛教题材雕刻 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 26 , 4 , ' 瑞兽雕刻 ' , ' 瑞兽神兽雕刻 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 27 , 4 , ' 仿古雕刻 ' , ' 仿古纹饰雕刻 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 28 , 5 , ' 山水摆件 ' , ' 山水意境摆件 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 29 , 5 , ' 人物摆件 ' , ' 人物造型摆件 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 30 , 5 , ' 动物摆件 ' , ' 动物造型摆件 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 31 , 5 , ' 佛像摆件 ' , ' 佛教题材摆件 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 32 , 5 , ' 花鸟摆件 ' , ' 花鸟自然摆件 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 33 , 5 , ' 器皿摆件 ' , ' 香炉、花瓶等器皿 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 34 , 6 , ' 平安镯 ' , ' 内平外圆,最经典的镯型 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 35 , 6 , ' 福镯 ' , ' 内圆外圆,圆条造型 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 36 , 6 , ' 贵妃镯 ' , ' 椭圆形,贴合手腕 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 37 , 6 , ' 美人镯 ' , ' 条杆纤细,秀气典雅 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 38 , 6 , ' 方镯 ' , ' 方形截面,棱角分明 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 39 , 6 , ' 雕花镯 ' , ' 表面雕刻纹饰 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 40 , 7 , ' 圆形耳钉 ' , ' 经典圆形造型 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 41 , 7 , ' 水滴形耳钉 ' , ' 水滴形优雅造型 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 42 , 7 , ' 方形耳钉 ' , ' 方形简约造型 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 43 , 7 , ' 花朵形耳钉 ' , ' 花朵造型 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 44 , 7 , ' 心形耳钉 ' , ' 心形浪漫造型 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 45 , 7 , ' 几何形耳钉 ' , ' 几何抽象造型 ' , NULL , 6 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 46 , 8 , ' 耳环 ' , ' 圆环形耳饰 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 47 , 8 , ' 耳坠 ' , ' 垂坠型耳饰 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 48 , 8 , ' 耳夹 ' , ' 无需耳洞的耳饰 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 49 , 8 , ' 流苏耳饰 ' , ' 长款流苏造型 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 50 , 9 , ' 6mm ' , NULL , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 51 , 9 , ' 8mm ' , NULL , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 52 , 9 , ' 10mm ' , NULL , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 53 , 9 , ' 12mm ' , NULL , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 54 , 9 , ' 14mm ' , NULL , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 55 , 10 , ' 锁骨链 ' , ' 短款锁骨链 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 56 , 10 , ' 吊坠项链 ' , ' 搭配玉石吊坠 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 57 , 10 , ' 串珠项链 ' , ' 玉珠串联而成 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 58 , 10 , ' 编绳项链 ' , ' 编织绳搭配玉石 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 59 , 10 , ' 毛衣链 ' , ' 长款毛衣链 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 60 , 11 , ' 素面戒指 ' , ' 光面简约戒指 ' , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 61 , 11 , ' 镶嵌戒指 ' , ' 金属镶嵌玉石 ' , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 62 , 11 , ' 雕花戒指 ' , ' 表面雕刻纹饰 ' , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 63 , 11 , ' 扳指 ' , ' 传统扳指造型 ' , NULL , 4 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 64 , 11 , ' 指环 ' , ' 环形简约指环 ' , NULL , 5 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 65 , 12 , ' 18mm ' , NULL , NULL , 1 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 66 , 12 , ' 20mm ' , NULL , NULL , 2 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 67 , 12 , ' 22mm ' , NULL , NULL , 3 ) ;
INSERT INTO ` sub_types ` ( ` id ` , ` category_id ` , ` name ` , ` description ` , ` preview_image ` , ` sort_order ` ) VALUES ( 68 , 12 , ' 24mm ' , NULL , NULL , 4 ) ;
-- ----------------------------
-- Table: system_configs
-- ----------------------------
DROP TABLE IF EXISTS ` system_configs ` ;
CREATE TABLE ` system_configs ` (
` id ` bigint NOT NULL AUTO_INCREMENT COMMENT ' 配置ID ' ,
` config_key ` varchar ( 100 ) NOT NULL COMMENT ' 配置键 ' ,
` config_value ` text COMMENT ' 配置值 ' ,
` description ` varchar ( 255 ) DEFAULT NULL COMMENT ' 配置说明 ' ,
` config_group ` varchar ( 50 ) NOT NULL DEFAULT ' general ' COMMENT ' 配置分组 ' ,
` is_secret ` char ( 1 ) NOT NULL DEFAULT ' N ' COMMENT ' 是否敏感信息(Y/N) ' ,
` updated_at ` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ' 更新时间 ' ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` config_key ` ( ` config_key ` )
) ENGINE = InnoDB AUTO_INCREMENT = 17 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = ' 系统配置表 ' ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 1 , ' SILICONFLOW_API_KEY ' , ' sk-gvszgchguyhhpevafchnimpljasvtuxxuoxeilhiqzlhyvpq ' , ' SiliconFlow API Key ' , ' ai ' , ' Y ' , ' 2026-03-27 07:43:07 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 1 , ' SILICONFLOW_API_KEY ' , ' sk-gvszgchguyhhpevafchnimpljasvtuxxuoxeilhiqzlhyvpq ' , ' SiliconFlow API Key ' , ' ai ' , ' Y ' , ' 2026-03-27 07:43:07 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 2 , ' SILICONFLOW_BASE_URL ' , ' https://api.siliconflow.cn/v1 ' , ' SiliconFlow 接口地址 ' , ' ai ' , ' N ' , ' 2026-03-27 07:09:05 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 2 , ' SILICONFLOW_BASE_URL ' , ' https://api.siliconflow.cn/v1 ' , ' SiliconFlow 接口地址 ' , ' ai ' , ' N ' , ' 2026-03-27 07:09:05 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 3 , ' VOLCENGINE_API_KEY ' , ' 8598f9a9-0d0b-4963-b116-d7ef5b230e04 ' , ' 火山引擎 API Key ' , ' ai ' , ' Y ' , ' 2026-03-27 08:13:23 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 3 , ' VOLCENGINE_API_KEY ' , ' 8598f9a9-0d0b-4963-b116-d7ef5b230e04 ' , ' 火山引擎 API Key ' , ' ai ' , ' Y ' , ' 2026-03-27 08:13:23 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 4 , ' VOLCENGINE_BASE_URL ' , ' https://ark.cn-beijing.volces.com/api/v3 ' , ' 火山引擎接口地址 ' , ' ai ' , ' N ' , ' 2026-03-27 07:09:05 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 4 , ' VOLCENGINE_BASE_URL ' , ' https://ark.cn-beijing.volces.com/api/v3 ' , ' 火山引擎接口地址 ' , ' ai ' , ' N ' , ' 2026-03-27 07:09:05 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 5 , ' AI_IMAGE_MODEL ' , ' seedream-5.0 ' , ' 默认AI生图模型 (flux-dev / seedream-4.5) ' , ' ai ' , ' N ' , ' 2026-03-27 08:20:02 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 5 , ' AI_IMAGE_MODEL ' , ' seedream-5.0 ' , ' 默认AI生图模型 (flux-dev / seedream-4.5) ' , ' ai ' , ' N ' , ' 2026-03-27 08:20:02 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 6 , ' AI_IMAGE_SIZE ' , ' 1024 ' , ' AI生图默认尺寸 ' , ' ai ' , ' N ' , ' 2026-03-27 07:09:05 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 6 , ' AI_IMAGE_SIZE ' , ' 1024 ' , ' AI生图默认尺寸 ' , ' ai ' , ' N ' , ' 2026-03-27 07:09:05 ' ) ;
INSERT INTO `system_configs` (`id`, `config_key`, `config_value`, `description`, `config_group`, `is_secret`, `updated_at`) VALUES (7, ' TENCENT_SECRET_ID ' , '' , ' 腾 讯 云 SecretId ( 用 于 混 元 3 D模型生成 ) ' , ' ai' , ' Y' , ' 2026- 03 - 27 07 : 09 : 05 ' );
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 7 , ' TRIPO_API_KEY ' , ' ' , ' Tripo3D API Key (用于图生3D模型) ' , ' ai' , ' Y' , ' 2026-03-27 12:20:57 ' ) ;
INSERT INTO `system_configs` (`id`, `config_key`, `config_value`, `description`, `config_group`, `is_secret`, `updated_at`) VALUES (13, ' TENCENT_SECRET _KEY' , '' , ' 腾 讯 云 SecretKey ( 用 于 混 元 3 D模型生成 ) ' , ' ai' , ' Y ' , ' 2026- 03 - 27 07 : 09 : 05 ' );
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 8 , ' VOLC_ACCESS _KEY' , ' AKLTOGI4NTIxNTJkZGUzNGUwMmJjMTdmYTcwOTE4ZDE0MDg ' , ' 火山引擎 Access Key (用于即梦视频生成) ' , ' ai' , ' Y ' , ' 2026-03-27 12:53:19 ' ) ;
INSERT INTO `system_configs` (`id`, `config_key`, `config_value`, `description`, `config_group`, `is_secret`, `updated_at`) VALUES (8, ' VOLC_ACCESS _KEY' , '' , ' 火 山 引 擎 Access Key ( 用 于 即 梦 视 频 生 成 ) ' , ' ai' , ' Y ' , ' 2026- 03 - 27 07 : 09 : 05 ' );
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 9 , ' VOLC_SECRET _KEY' , ' TlRJMFpEZG1OMk0wWW1aak5ERTRNamcxT1dKbU5UazNPR00yWXpGbE1tSQ== ' , ' 火山引擎 Secret Key (用于即梦视频生成) ' , ' ai' , ' Y ' , ' 2026-03-27 12:53:19 ' ) ;
INSERT INTO `system_configs` (`id`, `config_key`, `config_value`, `description`, `config_group`, `is_secret`, `updated_at`) VALUES (9, ' VOLC_SECRET_KEY ' , '' , ' 火 山 引 擎 Secret Key ( 用 于 即 梦 视 频 生 成 ) ' , ' ai' , ' Y ' , ' 2026- 03 - 27 07 : 09 : 05 ' );
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 10 , ' VIDEO_PROMPT ' , ' 玉雕作品在摄影棚内缓慢旋转360度展示全貌, 专业珠宝摄影灯光, 纯白色背景, 平稳旋转, 展示正面、侧面、背面各个角度, 电影级画质 ' , ' 视频生成默认提示词 (即梦 3.0 Pro 图生视频) ' , ' ai' , ' N ' , ' 2026-03-27 13:45:55 ' ) ;
INSERT INTO `system_configs` (`id`, `config_key`, `config_value`, `description`, `config_group`, `is_secret`, `updated_at`) VALUES (10, ' VIDEO _PROMPT' , ' 玉 雕 作 品 在 摄 影 棚 内 缓 慢 旋 转 360 度 展 示 全 貌 , 专 业 珠 宝 摄 影 灯 光 , 纯 白 色 背 景 , 平 稳 旋 转 , 展 示 正 面 、 侧 面 、 背 面 各 个 角 度 , 电 影 级 画 质 ' , ' 视 频 生 成 默 认 提 示 词 ( 即 梦 3 . 0 Pro 图 生 视 频 ) ' , ' ai' , ' N' , ' 2026- 03 - 27 07 : 09 : 05 ' );
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 11 , ' MODEL3D _PROMPT' , ' ' , ' 3D模型生成默认提示词 (Tripo3D备用) ' , ' ai' , ' N' , ' 2026-03-27 12:55:39 ' ) ;
INSERT INTO `system_configs` (`id`, `config_key`, `config_value`, `description`, `config_group`, `is_secret`, `updated_at`) VALUES (11, ' MODEL3D_PROMPT ' , '' , ' 3 D模型生成默认提示词 ( 混 元 3 D备用 ) ' , ' ai ' , ' N' , ' 2026- 03 - 27 07 : 09 : 05 ' );
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 12 , ' VIDEO_FRAMES ' , ' 121 ' , ' 视频帧数: 49=2秒, 121=5秒 ' , ' ai ' , ' N' , ' 2026-03-27 13:02:32 ' ) ;
INSERT INTO `system_configs` (`id`, `config_key`, `config_value`, `description`, `config_group`, `is_secret`, `updated_at`) VALUES (12, ' VIDEO_FRAMES ' , ' 121 ' , ' 视 频 帧 数 : 49 = 2 秒 , 121 = 5 秒 ' , ' ai ' , ' N ' , ' 2026- 03 - 27 07 : 09 : 05 ' );
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 13 , ' TENCENT_SECRET_ID ' , ' AKID31oQoyyqVwCl7FALL8h9OQHxvhGfrrdB ' , NULL , ' general ' , ' N ' , ' 2026-03-27 14:26:02 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 14 , ' TENCENT_SECRET_KEY ' , ' QeeR1Umqh9QULyWrzwiHeqrhLoAJF5Wn ' , NULL , ' general ' , ' N ' , ' 2026-03-27 14:26:02 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 15 , ' KLING_ACCESS_KEY ' , ' Anra4QJQLD9hhbNdpMmypHKhYpta4HYJ ' , NULL , ' general ' , ' N ' , ' 2026-03-27 16:08:09 ' ) ;
INSERT INTO ` system_configs ` ( ` id ` , ` config_key ` , ` config_value ` , ` description ` , ` config_group ` , ` is_secret ` , ` updated_at ` ) VALUES ( 16 , ' KLING_SECRET_KEY ' , ' pkLQffCMC4epEb38PkRArBdd4Jg8C3hL ' , NULL , ' general ' , ' N ' , ' 2026-03-27 16:08:09 ' ) ;
-- ----------------------------
-- Table: users
-- ----------------------------
DROP TABLE IF EXISTS ` users ` ;
CREATE TABLE ` users ` (
` id ` bigint NOT NULL AUTO_INCREMENT COMMENT ' 用户ID ' ,
` username ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' 用户名 ' ,
` phone ` varchar ( 20 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ' 手机号 ' ,
` hashed_password ` varchar ( 255 ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' 加密密码 ' ,
` nickname ` varchar ( 50 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ' 昵称 ' ,
` avatar ` varchar ( 255 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ' 头像URL ' ,
` is_admin ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' COMMENT ' 是否管理员 ' ,
` created_at ` datetime DEFAULT CURRENT_TIMESTAMP COMMENT ' 创建时间 ' ,
` updated_at ` datetime DEFAULT CURRENT_TIMESTAMP COMMENT ' 更新时间 ' ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` username ` ( ` username ` ) ,
UNIQUE KEY ` phone ` ( ` phone ` )
) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
INSERT INTO ` users ` ( ` id ` , ` username ` , ` phone ` , ` hashed_password ` , ` nickname ` , ` avatar ` , ` is_admin ` , ` created_at ` , ` updated_at ` ) VALUES ( 1 , ' demo ' , NULL , ' $2b$12$bHrcm45CwD0wbQVZIQxOmuZcx/B/MEbGYFTGpPawinDkDWI.jilY2 ' , ' 演示用户 ' , NULL , 1 , ' 2026-03-27 04:20:30 ' , ' 2026-03-27 04:20:30 ' ) ;
INSERT INTO ` users ` ( ` id ` , ` username ` , ` phone ` , ` hashed_password ` , ` nickname ` , ` avatar ` , ` is_admin ` , ` created_at ` , ` updated_at ` ) VALUES ( 2 , ' test1 ' , NULL , ' $2b$12$BG5/I4CVswjNWhfdIP9kJeVqbqLEcWkRq8ioxdpwON7eitL.lSVMW ' , ' 测试用户 ' , NULL , 0 , ' 2026-03-27 04:21:36 ' , ' 2026-03-27 04:21:36 ' ) ;
SET FOREIGN_KEY_CHECKS = 1 ;
SET FOREIGN_KEY_CHECKS = 1 ;
-- users 表添加 is_admin 字段(如果不存在)
-- ALTER TABLE users ADD COLUMN is_admin TINYINT(1) NOT NULL DEFAULT 0 COMMENT ' 是 否 管 理 员 ' AFTER avatar;