Initial commit: MSH System\n\n- msh_single_uniapp: Vue 2 + UniApp 前端(微信小程序/H5/App/支付宝小程序)\n- msh_crmeb_22: Spring Boot 2.2 后端(C端API/管理端/业务逻辑)\n- models-integration: AI服务集成(Coze/KieAI/腾讯ASR)\n- docs: 产品文档与设计稿
This commit is contained in:
15
docs/sql/v2_recipes_add_source.sql
Normal file
15
docs/sql/v2_recipes_add_source.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- =============================================
|
||||
-- v2_recipes 表新增 source 相关字段
|
||||
-- 用于追踪食谱来源(手动/计算器/AI生成等)
|
||||
-- Author: ScottPan
|
||||
-- Date: 2026-02-14
|
||||
-- =============================================
|
||||
|
||||
ALTER TABLE v2_recipes
|
||||
ADD COLUMN `source` VARCHAR(20) DEFAULT 'manual' COMMENT '来源:manual(手动)/calculator(计算器)/ai(AI生成)' AFTER `sort_order`,
|
||||
ADD COLUMN `source_id` BIGINT DEFAULT NULL COMMENT '来源ID(如计算器结果ID)' AFTER `source`;
|
||||
|
||||
-- 新增索引,便于按来源查询
|
||||
ALTER TABLE v2_recipes
|
||||
ADD KEY `idx_source` (`source`),
|
||||
ADD KEY `idx_source_id` (`source_id`);
|
||||
Reference in New Issue
Block a user