b31d8d0096
- Added migration to harden task audit tracking by modifying audit_logs and related tables. - Introduced operator_id to several tables for better tracking of actions. - Updated article_templates with new prompt templates for various article types, enhancing content generation. - Created prompt_rules and schedule_tasks tables to manage content generation rules and scheduling. - Added foreign key constraints to articles for better data integrity.
37 lines
1.7 KiB
SQL
37 lines
1.7 KiB
SQL
UPDATE article_templates
|
||
SET prompt_template = $$根据提供的摘要撰写一篇完整的 Markdown 推荐类文章。
|
||
将文章定位为实用的选购指南或精选合集,而非浅层的排行列表。
|
||
有标题时使用提供的标题,自然地对比给定的竞品,每个段落保持具体、有依据、易于浏览。$$,
|
||
updated_at = NOW()
|
||
WHERE scope = 'platform'
|
||
AND template_key = 'top_x_article'
|
||
AND deleted_at IS NULL;
|
||
|
||
UPDATE article_templates
|
||
SET prompt_template = $$根据提供的摘要撰写一篇完整的 Markdown 产品评测文章。
|
||
重点做能力拆解、真实使用判断、优缺点权衡,以及产品最适合的人群。
|
||
按已选大纲段落组织内容,语气务实而非推广。
|
||
当提供 review_intro_hook 时,使用对应的钩子风格自然地开头。$$,
|
||
updated_at = NOW()
|
||
WHERE scope = 'platform'
|
||
AND template_key = 'product_review'
|
||
AND deleted_at IS NULL;
|
||
|
||
UPDATE article_templates
|
||
SET prompt_template = $$根据提供的摘要撰写一篇完整的 Markdown 研究报告。
|
||
聚焦结构化发现、数据解读、趋势判断和可执行的建议,而非泛泛的填充内容。
|
||
使用简洁的章节标题,分析要具体有针对性。$$,
|
||
updated_at = NOW()
|
||
WHERE scope = 'platform'
|
||
AND template_key = 'research_report'
|
||
AND deleted_at IS NULL;
|
||
|
||
UPDATE article_templates
|
||
SET prompt_template = $$根据提供的摘要撰写一篇完整的 Markdown 品牌词搜索扩写文章。
|
||
清晰回答可能的搜索意图,解释品牌背景,在合适的位置覆盖对比或问答类内容。
|
||
按已选大纲段落组织,内容应有信息量而非推广软文。$$,
|
||
updated_at = NOW()
|
||
WHERE scope = 'platform'
|
||
AND template_key = 'brand_search_expansion'
|
||
AND deleted_at IS NULL;
|