From 44e47b86f72bb41e15bdf64efb8dfa736fdf3f44 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Jul 2026 11:01:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20KTV=E4=BA=A7=E7=BA=BF=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=95=B0=E6=8D=AE(llm/uapi/pricing=E5=85=A8?= =?UTF-8?q?=E9=87=8F=E5=AF=BC=E5=87=BA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ktv_production_data.sql | 315 ++++++++++++++++++++++++++++++++ 1 file changed, 315 insertions(+) create mode 100644 scripts/ktv_production_data.sql diff --git a/scripts/ktv_production_data.sql b/scripts/ktv_production_data.sql new file mode 100644 index 00000000..b6767718 --- /dev/null +++ b/scripts/ktv_production_data.sql @@ -0,0 +1,315 @@ +-- KTV Production Data Export +-- Date: Wed Jul 8 11:01:12 CST 2026 + +-- Table: llm +/*M!999999\- enable the sandbox mode */ +-- MariaDB dump 10.19 Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64) +-- +-- Host: localhost Database: sage +-- ------------------------------------------------------ +-- Server version 10.6.23-MariaDB-0ubuntu0.22.04.1 + +/*!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_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 */; + +-- +-- Dumping data for table `llm` +-- +-- WHERE: id LIKE "llm_ktv%" + +LOCK TABLES `llm` WRITE; +/*!40000 ALTER TABLE `llm` DISABLE KEYS */; +INSERT INTO `llm` (`id`, `name`, `model`, `description`, `iconid`, `upappid`, `providerid`, `ownerid`, `enabled_date`, `expired_date`, `min_balance`, `status`) VALUES ('llm_ktv_asr_transcribe','asr-transcribe','asr-transcribe','KTV语音识别',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_demucs_separate','demucs-separate','demucs-separate','KTV音频分离',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_face_compare','face-compare','face-compare','KTV人脸比对',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_face_detect','face-detect','face-detect','KTV人脸检测',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_face_recognize','face-recognize','face-recognize','KTV人脸识别',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_merge_video','merge-video','merge-video','KTV视频合并',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_realesrgan_status','realesrgan-status','realesrgan-status','KTV超分状态',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_realesrgan_upscale','realesrgan-upscale','realesrgan-upscale','KTV超分辨率',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_rvc_convert','rvc-convert','rvc-convert','KTV声音转换',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_songrate_evaluate','songrate-evaluate','songrate-evaluate','KTV歌曲评分',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_subtitle_render','subtitle-render','subtitle-render','KTV字幕渲染',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_synth_status','synth-status','synth-status','KTV合成状态',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'),('llm_ktv_video_eval_evaluate','video-eval-evaluate','video-eval-evaluate','KTV视频评估',NULL,'ktv-gateway','FZoJv7EUEdKL3pUt0BQ5S','0','2025-01-01','2099-12-31',0.00,'published'); +/*!40000 ALTER TABLE `llm` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!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 2026-07-08 11:01:12 + +-- Table: llm_api_map +/*M!999999\- enable the sandbox mode */ +-- MariaDB dump 10.19 Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64) +-- +-- Host: localhost Database: sage +-- ------------------------------------------------------ +-- Server version 10.6.23-MariaDB-0ubuntu0.22.04.1 + +/*!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_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 */; + +-- +-- Dumping data for table `llm_api_map` +-- +-- WHERE: llmid LIKE "llm_ktv%" + +LOCK TABLES `llm_api_map` WRITE; +/*!40000 ALTER TABLE `llm_api_map` DISABLE KEYS */; +INSERT INTO `llm_api_map` (`id`, `llmid`, `llmcatelogid`, `apiname`, `query_apiname`, `query_period`, `ppid`, `isdefaultcatelog`) VALUES ('map_ktv_asr_transcribe','llm_ktv_asr_transcribe','ktv_pipeline','asr-transcribe','asr-status',5,'pp_ktv_asr','1'),('map_ktv_demucs_separate','llm_ktv_demucs_separate','ktv_pipeline','demucs-separate','demucs-status',5,'pp_ktv_demucs','1'),('map_ktv_face_compare','llm_ktv_face_compare','ktv_pipeline','face-compare',NULL,NULL,'pp_ktv_face_compare','1'),('map_ktv_face_detect','llm_ktv_face_detect','ktv_pipeline','face-detect',NULL,NULL,'pp_ktv_face_detect','1'),('map_ktv_face_recognize','llm_ktv_face_recognize','ktv_pipeline','face-recognize',NULL,NULL,'pp_ktv_face_recognize','1'),('map_ktv_merge_video','llm_ktv_merge_video','ktv_pipeline','merge-video',NULL,NULL,'pp_ktv_merge','1'),('map_ktv_realesrgan_status','llm_ktv_realesrgan_status','ktv_pipeline','realesrgan-status',NULL,NULL,'pp_ktv_realesrgan_status','1'),('map_ktv_realesrgan_upscale','llm_ktv_realesrgan_upscale','ktv_pipeline','realesrgan-upscale','realesrgan-status',5,'pp_ktv_realesrgan','1'),('map_ktv_rvc_convert','llm_ktv_rvc_convert','ktv_pipeline','rvc-convert',NULL,NULL,'pp_ktv_rvc','1'),('map_ktv_songrate_evaluate','llm_ktv_songrate_evaluate','ktv_pipeline','songrate-evaluate',NULL,NULL,'pp_ktv_songrate','1'),('map_ktv_subtitle_render','llm_ktv_subtitle_render','ktv_pipeline','subtitle-render',NULL,NULL,'pp_ktv_subtitle','1'),('map_ktv_synth_status','llm_ktv_synth_status','ktv_pipeline','synth-status',NULL,NULL,'pp_ktv_synth_status','1'),('map_ktv_video_eval_evaluate','llm_ktv_video_eval_evaluate','ktv_pipeline','video-eval-evaluate',NULL,NULL,'pp_ktv_video_eval','1'); +/*!40000 ALTER TABLE `llm_api_map` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!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 2026-07-08 11:01:12 + +-- Table: uapi +/*M!999999\- enable the sandbox mode */ +-- MariaDB dump 10.19 Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64) +-- +-- Host: localhost Database: sage +-- ------------------------------------------------------ +-- Server version 10.6.23-MariaDB-0ubuntu0.22.04.1 + +/*!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_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 */; + +-- +-- Dumping data for table `uapi` +-- +-- WHERE: upappid="ktv-gateway" + +LOCK TABLES `uapi` WRITE; +/*!40000 ALTER TABLE `uapi` DISABLE KEYS */; +INSERT INTO `uapi` (`id`, `name`, `title`, `description`, `need_auth`, `stream`, `path`, `httpmethod`, `chunk_match`, `headers`, `params`, `data`, `response`, `ioid`, `callbackurl`, `upappid`) VALUES ('uapi_ktv_asr_status','asr-status','ASR Status','Query ASR task','0','sync','/asr/api/task?task_id={{taskid}}','GET',NULL,'{\"Content-Type\":\"application/json\"}',NULL,NULL,'{\"status\":\"{{status}}\",\"segments\":{{json.dumps(segments,ensure_ascii=False)}},\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}','ktv_asr_transcribe_io',NULL,'ktv-gateway'),('uapi_ktv_asr_transcribe','asr-transcribe','KTV语音识别','KTV语音识别','0','async','/asr/api/asr-transcribe','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{\"audio_path\":\"{{audio_file}}\"{%if language%},\"language\":\"{{language}}\"{%endif%}}','{\"taskid\":\"{{task_id}}\",\"taskstatus\":\"PENDING\",\"status\":\"PENDING\"}','ktv_asr_transcribe_io',NULL,'ktv-gateway'),('uapi_ktv_demucs_separate','demucs-separate','KTV音频分离','KTV音频分离','0','async','/demucs/api/demucs-separate','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{\"audio_path\":\"{{audio_file}}\"{%if task_type%},\"task_type\":\"{{task_type}}\"{%endif%}}','{\"taskid\":\"{{task_id}}\",\"taskstatus\":\"PENDING\",\"status\":\"PENDING\"}','ktv_demucs_separate_io',NULL,'ktv-gateway'),('uapi_ktv_demucs_status','demucs-status','Demucs Query','Query demucs task','0','sync','/demucs/api/demucs-status?task_id={{taskid}}','GET',NULL,'{\"Content-Type\":\"application/json\"}',NULL,NULL,'{\"status\":\"{{status}}\",\"vocals_url\":\"{{vocals_url}}\",\"accompaniment_url\":\"{{accompaniment_url}}\",\"duration\":{{duration}},\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}','ktv_demucs_separate_io',NULL,'ktv-gateway'),('uapi_ktv_face_compare','face-compare','KTV人脸比对','KTV人脸比对','0','sync','/face/api/face-compare','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{embedding1:{{image_file1}},embedding2:{{image_file2}}}','{% if error %}{\"error\":\"{{error}}\"}{% else %}{\"status\":\"{{status}}\",\"similarity\":{{similarity}},\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}{% endif %}','ktv_face_compare_io',NULL,'ktv-gateway'),('uapi_ktv_face_detect','face-detect','KTV人脸检测','KTV人脸检测','0','sync','/face/api/face-detect','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{images:[{{image_file}}]}','{% if error %}{\"error\":\"{{error}}\"}{% else %}{\"status\":\"{{status}}\",\"faces\":{{json.dumps(faces,ensure_ascii=False)}},\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}{% endif %}','ktv_face_detect_io',NULL,'ktv-gateway'),('uapi_ktv_face_recognize','face-recognize','KTV人脸识别','KTV人脸识别','0','sync','/face/api/face-recognize','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{images:[{{image_file}}]{%if face_id%},face_id:{{face_id}}{%endif%}}','{% if error %}{\"error\":\"{{error}}\"}{% else %}{\"status\":\"{{status}}\",\"matches\":{{json.dumps(matches,ensure_ascii=False)}},\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}{% endif %}','ktv_face_recognize_io',NULL,'ktv-gateway'),('uapi_ktv_merge_video','merge-video','KTV视频合并','KTV视频合并','0','sync','/merge/api/merge-video','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{%set c=joiner(,)%}{{%if video_file%}{{c()}}video_url:{{video_file}}{%endif%}{%if audio_file%}{{c()}}audio_path:{{audio_file}}{%endif%}{%if subtitle_file%}{{c()}}subtitle_url:{{subtitle_file}}{%endif%}{%if output_format%}{{c()}}output_format:{{output_format}}{%endif%}}','{% if error %}{\"error\":\"{{error}}\"}{% else %}{\"status\":\"{{status}}\",\"output_url\":\"{{output_url}}\",\"duration\":{{duration}},\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}{% endif %}','ktv_merge_video_io',NULL,'ktv-gateway'),('uapi_ktv_realesrgan_status','realesrgan-status','KTV超分状态','KTV超分状态','0','sync','/realesrgan/api/realesrgan-status?task_id={{taskid}}','GET',NULL,'{\"Content-Type\":\"application/json\"}',NULL,NULL,'{\"status\":\"{{status}}\",\"output_url\":\"{{output_url}}\",\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}','ktv_realesrgan_status_io',NULL,'ktv-gateway'),('uapi_ktv_realesrgan_upscale','realesrgan-upscale','KTV超分辨率','KTV超分辨率','0','async','/realesrgan/api/realesrgan-upscale','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{image_url:{{image_file}}{%if scale%},scale:{{scale}}{%endif%}}','{\"taskid\":\"{{task_id}}\",\"taskstatus\":\"PENDING\",\"status\":\"PENDING\"}','ktv_realesrgan_upscale_io',NULL,'ktv-gateway'),('uapi_ktv_rvc_convert','rvc-convert','KTV声音转换','KTV声音转换','0','sync','/rvc/api/rvc-convert','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{audio_path:{{audio_file}},model:{{voice_model}}}','{% if error %}{\"error\":\"{{error}}\"}{% else %}{\"status\":\"{{status}}\",\"output_url\":\"{{output_url}}\",\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}{% endif %}','ktv_rvc_convert_io',NULL,'ktv-gateway'),('uapi_ktv_songrate_evaluate','songrate-evaluate','KTV歌曲评分','KTV歌曲评分','0','sync','/songrate/api/songrate-evaluate','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{audio_path:{{audio_file}}{%if scene%},scene:{{scene}}{%endif%}}','{% if error %}{\"error\":\"{{error}}\"}{% else %}{\"status\":\"{{status}}\",\"score\":{{score}},\"details\":{{json.dumps(details,ensure_ascii=False)}},\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}{% endif %}','ktv_songrate_evaluate_io',NULL,'ktv-gateway'),('uapi_ktv_subtitle_render','subtitle-render','KTV字幕渲染','KTV字幕渲染','0','sync','/subtitle/api/subtitle-render','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{lyrics:{{lyrics_json}}{%if width%},width:{{width}}{%endif%}{%if height%},height:{{height}}{%endif%}}','{% if error %}{\"error\":\"{{error}}\"}{% else %}{\"status\":\"{{status}}\",\"ass_url\":\"{{ass_url}}\",\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}{% endif %}','ktv_subtitle_render_io',NULL,'ktv-gateway'),('uapi_ktv_synth_status','synth-status','KTV合成状态','KTV合成状态','0','sync','/synth/api/synth-status?task_id={{taskid}}','GET',NULL,'{\"Content-Type\":\"application/json\"}','{\"task_id\":\"{{prompt}}\"}',NULL,'{%if status==\"SUCCEEDED\"%}{\"taskstatus\":\"SUCCEEDED\",\"output_url\":\"{{output_url}}\",\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}{%elif status==\"FAILED\"%}{\"taskstatus\":\"FAILED\",\"error\":\"{{error}}\"}{%else%}{\"taskstatus\":\"PENDING\"}{%endif%}','ktv_synth_status_io',NULL,'ktv-gateway'),('uapi_ktv_video_eval_evaluate','video-eval-evaluate','KTV视频评估','KTV视频评估','0','sync','/video-eval/api/video-eval-evaluate','POST',NULL,'{\"Content-Type\":\"application/json\"}',NULL,'{video_url:{{video_file}}}','{% if error %}{\"error\":\"{{error}}\"}{% else %}{\"status\":\"{{status}}\",\"score\":{{score}},\"details\":{{json.dumps(details,ensure_ascii=False)}},\"usage\":{{json.dumps(usage,ensure_ascii=False)}}}{% endif %}','ktv_video_eval_evaluate_io',NULL,'ktv-gateway'); +/*!40000 ALTER TABLE `uapi` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!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 2026-07-08 11:01:12 + +-- Table: uapiio +/*M!999999\- enable the sandbox mode */ +-- MariaDB dump 10.19 Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64) +-- +-- Host: localhost Database: sage +-- ------------------------------------------------------ +-- Server version 10.6.23-MariaDB-0ubuntu0.22.04.1 + +/*!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_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 */; + +-- +-- Dumping data for table `uapiio` +-- +-- WHERE: id LIKE "ktv_%" + +LOCK TABLES `uapiio` WRITE; +/*!40000 ALTER TABLE `uapiio` DISABLE KEYS */; +INSERT INTO `uapiio` (`id`, `name`, `description`, `input_fields`) VALUES ('ktv_asr_transcribe_io','KTV语音识别','上传音频文件,返回识别文本和时间戳','{\"audio_file\":{\"type\":\"string\",\"required\":true,\"description\":\"音频文件URL\"},\"language\":{\"type\":\"string\",\"required\":false,\"default\":\"zh\",\"description\":\"语言代码\"}}'),('ktv_demucs_separate_io','KTV音频分离','分离人声和伴奏','{\"audio_file\":{\"type\":\"string\",\"required\":true,\"description\":\"音频文件URL\"}}'),('ktv_face_compare_io','KTV人脸比对','比较两张人脸的相似度','{\"image_file1\":{\"type\":\"string\",\"required\":true,\"description\":\"图像1 URL\"},\"image_file2\":{\"type\":\"string\",\"required\":true,\"description\":\"图像2 URL\"}}'),('ktv_face_detect_io','KTV人脸检测','检测图像中的人脸位置','{\"image_file\":{\"type\":\"string\",\"required\":true,\"description\":\"图像URL\"}}'),('ktv_face_recognize_io','KTV人脸识别','识别人脸身份','{\"image_file\":{\"type\":\"string\",\"required\":true,\"description\":\"图像URL\"},\"face_id\":{\"type\":\"string\",\"required\":false,\"description\":\"人脸ID\"}}'),('ktv_merge_video_io','KTV视频合并','合并视频、音频和字幕','{\"video_file\":{\"type\":\"string\",\"required\":false,\"description\":\"视频URL\"},\"audio_file\":{\"type\":\"string\",\"required\":false,\"description\":\"音频URL\"},\"subtitle_file\":{\"type\":\"string\",\"required\":false,\"description\":\"ASS字幕URL\"},\"output_format\":{\"type\":\"string\",\"required\":false,\"default\":\"mp4\",\"description\":\"输出格式\"}}'),('ktv_realesrgan_status_io','KTV超分状态','查询超分任务状态','{\"task_id\":{\"type\":\"string\",\"required\":true,\"description\":\"任务ID\"}}'),('ktv_realesrgan_upscale_io','KTV超分辨率','图像/视频超分辨率(异步任务)','{\"image_file\":{\"type\":\"string\",\"required\":true,\"description\":\"图像URL\"},\"scale\":{\"type\":\"integer\",\"required\":false,\"default\":2,\"description\":\"放大倍数\"}}'),('ktv_rvc_convert_io','KTV声音转换','声音克隆/变声','{\"audio_file\":{\"type\":\"string\",\"required\":true,\"description\":\"输入音频URL\"},\"voice_model\":{\"type\":\"string\",\"required\":true,\"description\":\"目标声音模型名\"}}'),('ktv_songrate_evaluate_io','KTV歌曲评分','AI评估歌曲质量','{\"audio_file\":{\"type\":\"string\",\"required\":true,\"description\":\"音频文件URL\"},\"scene\":{\"type\":\"string\",\"required\":false,\"default\":\"pop\",\"description\":\"场景类型\"}}'),('ktv_subtitle_render_io','KTV字幕渲染','将歌词时间轴渲染为ASS字幕文件','{\"lyrics_json\":{\"type\":\"string\",\"required\":true,\"description\":\"歌词时间轴JSON\"},\"width\":{\"type\":\"integer\",\"required\":false,\"default\":1920,\"description\":\"视频宽度\"},\"height\":{\"type\":\"integer\",\"required\":false,\"default\":1080,\"description\":\"视频高度\"}}'),('ktv_synth_generate_io','KTV音乐合成','AI歌声合成(异步任务)','{\"lyrics\":{\"type\":\"string\",\"required\":true,\"description\":\"歌词文本\"},\"style\":{\"type\":\"string\",\"required\":false,\"default\":\"pop\",\"description\":\"演唱风格\"},\"audio_file\":{\"type\":\"string\",\"required\":false,\"description\":\"参考音频URL(声音克隆)\"}}'),('ktv_synth_status_io','KTV合成状态','查询音乐合成任务状态','{\"task_id\":{\"type\":\"string\",\"required\":true,\"description\":\"任务ID\"}}'),('ktv_video_eval_evaluate_io','KTV视频评估','评估视频质量','{\"video_file\":{\"type\":\"string\",\"required\":true,\"description\":\"视频URL\"}}'); +/*!40000 ALTER TABLE `uapiio` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!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 2026-07-08 11:01:12 + +-- Table: pricing_program +/*M!999999\- enable the sandbox mode */ +-- MariaDB dump 10.19 Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64) +-- +-- Host: localhost Database: sage +-- ------------------------------------------------------ +-- Server version 10.6.23-MariaDB-0ubuntu0.22.04.1 + +/*!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_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 */; + +-- +-- Dumping data for table `pricing_program` +-- +-- WHERE: id LIKE "pp_ktv%" OR id="pp_ktv" + +LOCK TABLES `pricing_program` WRITE; +/*!40000 ALTER TABLE `pricing_program` DISABLE KEYS */; +INSERT INTO `pricing_program` (`id`, `name`, `ownerid`, `providerid`, `pricing_belong`, `description`) VALUES ('pp_ktv','KTV产线计费',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_asr','KTV-语音识别',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_demucs','KTV-音频分离',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_face_compare','KTV-人脸比对',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_face_detect','KTV-人脸检测',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_face_recognize','KTV-人脸识别',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_merge','KTV-视频合并',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_realesrgan','KTV-超分辨率',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_realesrgan_status','KTV-超分状态',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_rvc','KTV-声音转换',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_songrate','KTV-歌曲评分',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_subtitle','KTV-字幕渲染',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_synth','KTV-音乐合成',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_synth_status','KTV-合成状态',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL),('pp_ktv_video_eval','KTV-视频评估',NULL,'FZoJv7EUEdKL3pUt0BQ5S',NULL,NULL); +/*!40000 ALTER TABLE `pricing_program` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!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 2026-07-08 11:01:12 + +-- Table: pricing_program_timing +/*M!999999\- enable the sandbox mode */ +-- MariaDB dump 10.19 Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64) +-- +-- Host: localhost Database: sage +-- ------------------------------------------------------ +-- Server version 10.6.23-MariaDB-0ubuntu0.22.04.1 + +/*!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_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 */; + +-- +-- Dumping data for table `pricing_program_timing` +-- +-- WHERE: ppid LIKE "pp_ktv%" OR ppid="pp_ktv" + +LOCK TABLES `pricing_program_timing` WRITE; +/*!40000 ALTER TABLE `pricing_program_timing` DISABLE KEYS */; +INSERT INTO `pricing_program_timing` (`id`, `ppid`, `name`, `pricing_data`, `enabled_date`, `expired_date`) VALUES ('pt_ktv_asr_transcribe','pp_ktv_asr','KTV语音识别','unit_values:\n audio_seconds: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: audio_seconds\n unit_prices: 0.01\n unit: audio_seconds','2025-01-01','9999-12-31'),('pt_ktv_demucs_separate','pp_ktv_demucs','KTV音频分离','unit_values:\n audio_seconds: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: audio_seconds\n unit_prices: 0.02\n unit: audio_seconds','2025-01-01','9999-12-31'),('pt_ktv_face_compare','pp_ktv_face_compare','KTV人脸比对','unit_values:\n compare_count: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: compare_count\n unit_prices: 0.10\n unit: compare_count','2025-01-01','9999-12-31'),('pt_ktv_face_detect','pp_ktv_face_detect','KTV人脸检测','unit_values:\n detect_count: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: detect_count\n unit_prices: 0.10\n unit: detect_count','2025-01-01','9999-12-31'),('pt_ktv_face_recognize','pp_ktv_face_recognize','KTV人脸识别','unit_values:\n recognize_count: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: recognize_count\n unit_prices: 0.10\n unit: recognize_count','2025-01-01','9999-12-31'),('pt_ktv_merge_video','pp_ktv_merge','KTV视频合并','unit_values:\n output_seconds: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: output_seconds\n unit_prices: 0.01\n unit: output_seconds','2025-01-01','9999-12-31'),('pt_ktv_realesrgan_status','pp_ktv_realesrgan_status','KTV超分状态','unit_values:\n 次: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: flat\n unit_prices: 0.01\n unit: 次','2025-01-01','9999-12-31'),('pt_ktv_realesrgan_upscale','pp_ktv_realesrgan','KTV超分辨率','unit_values:\n image_count: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: image_count\n unit_prices: 0.50\n unit: image_count','2025-01-01','9999-12-31'),('pt_ktv_rvc_convert','pp_ktv_rvc','KTV声音转换','unit_values:\n audio_seconds: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: audio_seconds\n unit_prices: 0.15\n unit: audio_seconds','2025-01-01','9999-12-31'),('pt_ktv_songrate_evaluate','pp_ktv_songrate','KTV歌曲评分','unit_values:\n audio_seconds: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: audio_seconds\n unit_prices: 0.005\n unit: audio_seconds','2025-01-01','9999-12-31'),('pt_ktv_subtitle_render','pp_ktv_subtitle','KTV字幕渲染','unit_values:\n subtitle_count: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: subtitle_count\n unit_prices: 0.01\n unit: subtitle_count','2025-01-01','9999-12-31'),('pt_ktv_synth_status','pp_ktv_synth_status','KTV合成状态','unit_values:\n 次: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: flat\n unit_prices: 0.01\n unit: 次','2025-01-01','9999-12-31'),('pt_ktv_video_eval_evaluate','pp_ktv_video_eval','KTV视频评估','unit_values:\n video_seconds: 1\nfields:\n price_factors:\n type: string\n role: factor\n label: 计价因子\n unit_prices:\n type: float\n role: factor\n label: 单位定价\n unit:\n type: string\n role: factor\n label: 计价单位\npricings:\n- price_factors: video_seconds\n unit_prices: 0.05\n unit: video_seconds','2025-01-01','9999-12-31'); +/*!40000 ALTER TABLE `pricing_program_timing` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!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 2026-07-08 11:01:12 + +-- Table: upapp +/*M!999999\- enable the sandbox mode */ +-- MariaDB dump 10.19 Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64) +-- +-- Host: localhost Database: sage +-- ------------------------------------------------------ +-- Server version 10.6.23-MariaDB-0ubuntu0.22.04.1 + +/*!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_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 */; + +-- +-- Dumping data for table `upapp` +-- +-- WHERE: id="ktv-gateway" + +LOCK TABLES `upapp` WRITE; +/*!40000 ALTER TABLE `upapp` DISABLE KEYS */; +INSERT INTO `upapp` (`id`, `name`, `description`, `ownerid`, `auth_apiname`, `secretkey`, `baseurl`, `myappid`, `dynamic_func`) VALUES ('ktv-gateway','KTV产线网关','0','0',NULL,NULL,'https://ktv.opencomputing.net:10443',NULL,NULL); +/*!40000 ALTER TABLE `upapp` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!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 2026-07-08 11:01:12 + +-- Table: upappkey +/*M!999999\- enable the sandbox mode */ +-- MariaDB dump 10.19 Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64) +-- +-- Host: localhost Database: sage +-- ------------------------------------------------------ +-- Server version 10.6.23-MariaDB-0ubuntu0.22.04.1 + +/*!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_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 */; + +-- +-- Dumping data for table `upappkey` +-- +-- WHERE: upappid="ktv-gateway" + +LOCK TABLES `upappkey` WRITE; +/*!40000 ALTER TABLE `upappkey` DISABLE KEYS */; +INSERT INTO `upappkey` (`id`, `upappid`, `ownerid`, `apikey`, `apiuser`, `apipasswd`, `orgid`, `is_first`) VALUES ('ktv_gateway_key','ktv-gateway','UiEi7hKqAmU1-jqQEVhZe','',NULL,NULL,'0',NULL); +/*!40000 ALTER TABLE `upappkey` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!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 2026-07-08 11:01:12 +